-
Notifications
You must be signed in to change notification settings - Fork 418
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
Fix the FSDP.optim_state_dict_to_load OOM #3184
Conversation
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.
That's a crazy amount of extra memory usage, damn.
Can you make the PR title more descriptive instead of "up"? other than that, one minor comment, otherwise LGTM! thanks for finding and fixing this so quick.
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.
Discussed offline, only for 2.2.2 please!
* up * up * up * a * a * up * up * comments * up * lint * line
* up * up * up * a * a * up * up * comments * up * lint * line
* up * up * up * a * a * up * up * comments * up * lint * line
What does this PR do?
Fix the
FSDP.optim_state_dict_to_load
OOM, it's already in pytorch>=2.3.0 pytorch/pytorch#117261test
here is the memory before the forward:
dbrx-dense-20b-debug-autoresume-3QVblX