Skip to content

Add id and resume support for SwanLab integration#43788

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

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

@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
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

1 participant