Skip to content

Fix load of rng state for resuming training from checkpoint #37162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

winglian
Copy link
Contributor

@winglian winglian commented Apr 1, 2025

What does this PR do?

Fixes a regression from #36991 whereby resuming training from a checkpoint would fail when attempting to load the rng state. The regression only affects torch versions < 2.6.0.

see https://github.com/axolotl-ai-cloud/axolotl/actions/runs/14185726834/job/39740935566

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?

@zach-huggingface and @SunMarc

Copy link
Contributor

github-actions bot commented Apr 1, 2025

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the Ready for review button (at the bottom of the PR page). This will assign reviewers and trigger CI.

@github-actions github-actions bot marked this pull request as draft April 1, 2025 03:41
winglian added a commit to axolotl-ai-cloud/axolotl that referenced this pull request Apr 1, 2025
@winglian winglian marked this pull request as ready for review April 1, 2025 03:54
Copy link
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.

Thanks !

@HuggingFaceDocBuilderDev

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.

winglian added a commit to axolotl-ai-cloud/axolotl that referenced this pull request Apr 1, 2025
* make torch 2.6.0 the default image

* fix tests against upstream main

* fix attribute access

* use fixture dataset

* fix dataset load

* correct the fixtures + tests

* more fixtures

* add accidentally removed shakespeare fixture

* fix conversion from unittest to pytest class

* nightly main ci caches

* build 12.6.3 cuda base image

* override for fix from huggingface/transformers#37162

* address PR feedback
@lucasjinreal
Copy link

Would consider fix this issue

@SunMarc SunMarc merged commit af000ce into huggingface:main Apr 24, 2025
20 checks passed
@SunMarc
Copy link
Member

SunMarc commented Apr 24, 2025

Would consider fix this issue

Thx for the reminder !

zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request May 14, 2025
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.

4 participants