Skip to content

Add id and resume support for SwanLab integration#43788

Closed
LynchXLQ wants to merge 1 commit intohuggingface:mainfrom
LynchXLQ:swanlab-resume-support
Closed

Add id and resume support for SwanLab integration#43788
LynchXLQ wants to merge 1 commit intohuggingface:mainfrom
LynchXLQ:swanlab-resume-support

Conversation

@LynchXLQ
Copy link
Copy Markdown

@LynchXLQ LynchXLQ commented Feb 6, 2026

What does this PR do?

Fixes #43698

This PR adds support for id and resume parameters in SwanLabCallback, enabling experiment continuation when resuming training.

Changes

  • Added SWANLAB_RUN_ID environment variable support for specifying experiment ID
  • Added SWANLAB_RESUME environment variable support with options: must, allow, never
  • Updated docstring with documentation for the new environment variables

Usage

To resume an experiment:

export SWANLAB_RUN_ID="your-experiment-id"
export SWANLAB_RESUME="allow"

This allows users to continue logging to an existing SwanLab experiment when resuming training from a checkpoint.

@LynchXLQ LynchXLQ force-pushed the swanlab-resume-support branch from 426f7ee to aa35dda Compare February 7, 2026 00:47
@LynchXLQ LynchXLQ force-pushed the swanlab-resume-support branch from aa35dda to 2a4fd9b Compare February 7, 2026 18:21
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 @LynchXLQ ! sorry this pr is superseded by #43719

@LynchXLQ
Copy link
Copy Markdown
Author

LynchXLQ commented Feb 9, 2026

Closing as this has been superseded by #43719. Thanks for the review!

@LynchXLQ
Copy link
Copy Markdown
Author

LynchXLQ commented Feb 9, 2026

Closing as this has been superseded by #43719. Thanks!

@LynchXLQ
Copy link
Copy Markdown
Author

LynchXLQ commented Feb 9, 2026

Closing as this has been superseded by #43719. Thanks for the feedback!

@LynchXLQ
Copy link
Copy Markdown
Author

LynchXLQ commented Feb 9, 2026

Closing — superseded by #43719.

@LynchXLQ
Copy link
Copy Markdown
Author

LynchXLQ commented Feb 9, 2026

Closing — superseded by #43719. Thanks for the review!

@LynchXLQ
Copy link
Copy Markdown
Author

LynchXLQ commented Feb 9, 2026

Closing as superseded by #43719. Thanks!

This pull request was closed.
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