Skip to content

Add id and resume support to SwanLab integration#43719

Merged
SunMarc merged 5 commits intohuggingface:mainfrom
i-pj:fix-swanlab-resume-support
Feb 9, 2026
Merged

Add id and resume support to SwanLab integration#43719
SunMarc merged 5 commits intohuggingface:mainfrom
i-pj:fix-swanlab-resume-support

Conversation

@i-pj
Copy link
Copy Markdown
Contributor

@i-pj i-pj commented Feb 3, 2026

Fixes #43698

  • Add SWANLAB_RUN_ID env var to pass experiment ID for resumption
  • Add SWANLAB_RESUME env var to control resume mode
  • Default to resume='allow' when resume_from_checkpoint is set"

What does this PR do?

Fixes # (issue)

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

Anyone in the community is free to review the PR once the tests have passed.

Fixes #43698
- Add SWANLAB_RUN_ID env var to pass experiment ID for resumption
- Add SWANLAB_RESUME env var to control resume mode
- Default to resume='allow' when resume_from_checkpoint is set"
@Rocketknight1
Copy link
Copy Markdown
Member

cc @SunMarc

Copy link
Copy Markdown
Member

@SunMarc SunMarc left a comment

Choose a reason for hiding this comment

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

Can you check if this fixes your use case @TianjiaoTsao ?

@TianjiaoTsao
Copy link
Copy Markdown

Can you check if this fixes your use case @TianjiaoTsao ?

Thanks. Yes, this fixes my use case.

@SunMarc
Copy link
Copy Markdown
Member

SunMarc commented Feb 4, 2026

Thans @i-pj !

@HuggingFaceDocBuilderDev
Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@SunMarc SunMarc enabled auto-merge (squash) February 9, 2026 10:32
@SunMarc SunMarc merged commit 41833e3 into huggingface:main Feb 9, 2026
25 checks passed
jiosephlee pushed a commit to jiosephlee/transformers_latest that referenced this pull request Feb 11, 2026
Fixes huggingface#43698
- Add SWANLAB_RUN_ID env var to pass experiment ID for resumption
- Add SWANLAB_RESUME env var to control resume mode
- Default to resume='allow' when resume_from_checkpoint is set"

Co-authored-by: Marc Sun <57196510+SunMarc@users.noreply.github.com>
Co-authored-by: Mohamed Mekkouri <93391238+MekkCyber@users.noreply.github.com>
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

6 participants