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

Add SHARD_GRAD_OP to device mesh error check #3058

Merged
merged 3 commits into from
Feb 26, 2024

Conversation

mvpatel2000
Copy link
Contributor

What does this PR do?

Add SHARD_GRAD_OP to device mesh error check. Avoids nasty torch error if user incorrectly specifies mesh shard combo

composer/trainer/dist_strategy.py Show resolved Hide resolved
tests/trainer/test_fsdp.py Show resolved Hide resolved
@mvpatel2000 mvpatel2000 force-pushed the mvpatel2000/raise-error branch from 954c21a to 54171a5 Compare February 26, 2024 20:05
@mvpatel2000 mvpatel2000 merged commit 1c52d47 into mosaicml:dev Feb 26, 2024
27 checks passed
@mvpatel2000 mvpatel2000 deleted the mvpatel2000/raise-error branch February 26, 2024 21:13
j316chuck pushed a commit that referenced this pull request Mar 29, 2024
j316chuck pushed a commit that referenced this pull request May 16, 2024
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.

2 participants