Skip to content

fix: add id and resume parameters to SwanLab integration#43816

Open
thecaptain789 wants to merge 1 commit intohuggingface:mainfrom
thecaptain789:fix/swanlab-resume
Open

fix: add id and resume parameters to SwanLab integration#43816
thecaptain789 wants to merge 1 commit intohuggingface:mainfrom
thecaptain789:fix/swanlab-resume

Conversation

@thecaptain789
Copy link
Copy Markdown
Contributor

Fixes #43698

Adds support for run resumption in the SwanLab integration via two new environment variables:

  • SWANLAB_RUN_ID: Unique identifier for the run
  • SWANLAB_RESUME: Controls resumption behavior (must, allow, never, auto)

This allows users to resume training runs when using Trainer.train(resume_from_checkpoint=...) without SwanLab creating a new experiment.

Example usage:

export SWANLAB_RUN_ID="my-run-id"
export SWANLAB_RESUME="allow"
python train.py --resume_from_checkpoint=./checkpoint

Copy link
Copy Markdown
Contributor

@MekkCyber MekkCyber left a comment

Choose a reason for hiding this comment

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

Thank you @thecaptain789 ! sorry this pr is superseded by #43719

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.

SwanLab integration uses outdated swanlab.init() signature

2 participants