Skip to content
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

Allow training to resume even if RNG states are not properly loaded #14994

Merged
merged 2 commits into from
Dec 30, 2021

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Dec 30, 2021

What does this PR do?

This PR allows training to resume even if the loading of the RNG state fail in multi-GPU DataParallel mode because less GPUs are used than during the original training.

Fixes #14554

@sgugger sgugger requested a review from LysandreJik December 30, 2021 21:40
@sgugger sgugger merged commit e68c375 into master Dec 30, 2021
@sgugger sgugger deleted the fix_rng_multigpu branch December 30, 2021 22:03
stevhliu pushed a commit to stevhliu/transformers that referenced this pull request Jan 6, 2022
…uggingface#14994)

* Allow training to resume even if RNG states are not properly loaded

* Proper f-string
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.

Loading from checkpoint without skipping requires the same number of GPUs
1 participant