Skip to content

Commit

Permalink
deprecated wandb.save
Browse files Browse the repository at this point in the history
  • Loading branch information
tcapelle authored Apr 5, 2024
1 parent bf4cd67 commit 8414bb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/axolotl/utils/callbacks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,9 @@ def on_train_begin(
mode="w", delete=False, suffix=".yml", prefix="axolotl_config_"
) as temp_file:
copyfile(self.axolotl_config_path, temp_file.name)
wandb.save(temp_file.name)
at = wandb.Artifact(f"config-{wandb.run.id}", type="axolotl-config")
at.add_file(temp_file.name)
wandb.log_artifact(at)
LOG.info(
"The Axolotl config has been saved to the WandB run under files."
)
Expand Down

0 comments on commit 8414bb0

Please sign in to comment.