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

[fix] DTensor + SHARD_GRAD_OP + use_orig_params #3175

Merged
merged 4 commits into from
Apr 3, 2024
Merged

Conversation

bigning
Copy link
Contributor

@bigning bigning commented Apr 3, 2024

What

issue: pytorch/pytorch#123272

test

4-1-ift-debug-DIBjG6

Copy link
Contributor

@dakinggg dakinggg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but will let Mihir approve

Copy link
Contributor

@b-chu b-chu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great find and fix! @mvpatel2000 can we add the issue links to the other monkeypatches (if applicable) like @bigning did? Would help with readability and future deprecation

composer/trainer/mosaic_fsdp.py Outdated Show resolved Hide resolved
bigning and others added 3 commits April 3, 2024 12:59
Co-authored-by: Brian <23239305+b-chu@users.noreply.github.com>
Copy link
Contributor

@mvpatel2000 mvpatel2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@bigning bigning merged commit 63a6219 into dev Apr 3, 2024
14 checks passed
@bigning bigning deleted the fix_SHARD_GRAD_OP branch April 3, 2024 21:49
j316chuck pushed a commit that referenced this pull request May 16, 2024
* up

* Update composer/trainer/mosaic_fsdp.py

Co-authored-by: Brian <23239305+b-chu@users.noreply.github.com>

* format

---------

Co-authored-by: Brian <23239305+b-chu@users.noreply.github.com>
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