-
Notifications
You must be signed in to change notification settings - Fork 974
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
Explicit check for step
when loading the state
#2992
Conversation
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For my understanding, if a user loads an older checkpoint, they won't have step
, so override_attributes
will just be an empty dict, right? Would this now fail?
Yes indeed, thanks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this.
Just wanted to comment on this since I believe this PR has a bug [or can cause a bug/unexpected behavior in some cases]. I tried this exact fix on a local fork and found that this caused issue where the master rank had the step saved but other ranks didn't. I have a suspicion it is because I was gating my
|
Oh that's very interesting. Would you like to make a follow-up with this solution @alexanderswerdlow ? (Interesting they got out of sync like that). Otherwise I can do so shortly |
@muellerzr Apologies, I don't have a ton of bandwidth atm, but happy to test it. It unexpected to say the least and took a sec to find because steps being out of sync doesn't always matter! Not sure how problematic a silent internal gather is inside accelerate [or if this is common in accelerate], but I think a warning would also suffice if the step isn't found [since this gather behavior may not be the most robust in all cases]. |
Has this PR already been released in a new version? I am using 0.33.0 and I get |
@muellerzr How exactly do PR work if I need this fix? Since this was a simple change in two scripts I changed them manually. Is there a way to automatically do this from the command line? I'm on a Windows 11 system |
What does this PR do?
To not break prior releases, checks if
step
exists in our checkpoint to try and load it in.Fixes #2923
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@BenjaminBossan