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

Fetching arguments for FSDP #2710

Merged
merged 16 commits into from
Nov 14, 2023

Conversation

mvpatel2000
Copy link
Contributor

@mvpatel2000 mvpatel2000 commented Nov 13, 2023

What does this PR do?

Adds arguments for FSDP fetching. Safe after discussion with torch folks

GRT-2569

@vchiley
Copy link
Contributor

vchiley commented Nov 13, 2023

Modifying torch private variables == ❤️‍🔥 😍

Does this need to be gated by torch version?

@mvpatel2000
Copy link
Contributor Author

Does this need to be gated by torch version?

Ah good point. The code is the same and static since torch 1.13 so it should be fine. I have added a unit test to verify it doesn't crash as well

@mvpatel2000 mvpatel2000 requested a review from dakinggg November 13, 2023 18:29
@mvpatel2000 mvpatel2000 merged commit c6a6216 into mosaicml:dev Nov 14, 2023
16 checks passed
@mvpatel2000 mvpatel2000 deleted the mvpatel2000/add-fsdp-args branch November 14, 2023 23:56
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.

3 participants