feat(integrations): add Axolotl plugin for Dreadnode Strikes logging#296
Open
SJCaldwell wants to merge 5 commits intomainfrom
Open
feat(integrations): add Axolotl plugin for Dreadnode Strikes logging#296SJCaldwell wants to merge 5 commits intomainfrom
SJCaldwell wants to merge 5 commits intomainfrom
Conversation
Add a new integration for Axolotl that enables automatic logging of
training metrics to Dreadnode Strikes during fine-tuning jobs.
The plugin:
- Reuses the existing DreadnodeCallback from the transformers integration
- Follows Axolotl's plugin system conventions (BasePlugin interface)
- Supports distributed training (only logs on rank 0)
- Adds config args: dreadnode_project, dreadnode_run_name, dreadnode_tags
Usage in axolotl config:
plugins:
- dreadnode.integrations.axolotl.DreadnodePlugin
dreadnode_project: "my-project"
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…rface - Add dreadnode_workspace field to Axolotl args for YAML configuration - Implement all required Axolotl plugin interface methods (stubs) - Configure workspace via dn.configure() when provided in config - Change epoch logging from metric to param for x-axis display in Strikes Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The epoch metric->param change belongs in a separate PR for the main transformers callback, not the Axolotl integration. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add ruff noqa for ARG002, FBT001, FBT002 (plugin interface requires these) - Remove explicit return None and unnecessary pass statements - Use % formatting instead of f-strings in logging - Add type annotation to dict parameter - Add type: ignore for axolotl import (optional dependency) - Add axolotl integration to mypy overrides for import handling Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Torch was accidentally added to main dependencies during testing. It should only be required via the [training] optional extra. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DreadnodeCallbackfrom the transformers integrationdreadnode_project,dreadnode_workspace,dreadnode_run_name,dreadnode_tagsUsage
In the config you supply to axolotl, for example
test_dreadnode_config.yamlRun with axolotl like
axolotl train test_dreadnode_config.yamlTest plan
🤖 Generated with Claude Code
Generated Summary:
DreadnodePluginfor integrating Dreadnode logging with Axolotl's training metrics.__init__.pythat contains the primary plugin implementation.register: Logs project registration.pre_model_load: Validates project configuration before model loading.add_callbacks_post_trainer: InjectsDreadnodeCallbackafter trainer creation, essential for logging metrics.args.pyfor Pydantic schema validation of the integration configuration.dreadnode_project: Defines the Dreadnode project.dreadnode_workspace: Specifies workspace configuration.dreadnode_run_name: Name of the training run.dreadnode_tags: Tags to associate with Strikes logging.This summary was generated with ❤️ by rigging