Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save Axolotl config as WandB artifact #716

Merged
merged 5 commits into from
Oct 11, 2023

Conversation

jphme
Copy link
Contributor

@jphme jphme commented Oct 11, 2023

As discussed on discord, tested it and works fine for me (but happy for suggestions/improvements, im not a WandB expert).

src/axolotl/utils/trainer.py Outdated Show resolved Hide resolved
artifact = wandb.Artifact(name="axolotl-config", type="config")
artifact.add_file(local_path=self.cfg.axolotl_config_path)
wandb.run.log_artifact(artifact)
LOG.info("Axolotl config has been saved to WandB as an artifact.")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe log.debug is enough

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im indifferent, we log/print 20+ lines of Wandb initialization (and hundreds of lines on training begin) anyway, wouldn't it make sense to leave it at info to make people aware that their config is archived - how should anyone (except us) ever find/know it otherwise?
With an explicit (short) statement after successful archivation in the log, people then know that they can e.g safely overwrite their config.yml for a new experiment.

But happy to change that as well, whats your opinion @winglian ?

@winglian winglian merged commit 490923f into axolotl-ai-cloud:main Oct 11, 2023
4 checks passed
mkeoliya pushed a commit to mkeoliya/axolotl that referenced this pull request Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants