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

Unit tests for MiCS #4792

Merged
merged 7 commits into from
Jan 8, 2024
Merged

Unit tests for MiCS #4792

merged 7 commits into from
Jan 8, 2024

Conversation

zarzen
Copy link
Contributor

@zarzen zarzen commented Dec 9, 2023

In response to the ask from #2964 (comment), I added three more unit tests related to MiCS.

There are two knowledge issues:

  • Testing on Torch 2.1.0 triggers _IllegalWorker in coalesced all gather. I made changes to ignore this condition. and Currently, I don't know the reason.
  • The MiCS implementation is not working with offloading, so the failure in TestZeroPartialOffloadConfigSweep is expected.

@tjruwase
Copy link
Contributor

@zarzen, thanks!

Copy link
Contributor

@mrwyattii mrwyattii left a comment

Choose a reason for hiding this comment

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

I think it will be more clear if we parameterize a mics_enabled variable rather than use zero_stage to switch it on/off. Please update the other test with similar changes. Thanks!

tests/unit/runtime/zero/test_zero.py Outdated Show resolved Hide resolved
tests/unit/runtime/zero/test_zero.py Outdated Show resolved Hide resolved
tests/unit/runtime/zero/test_zero.py Outdated Show resolved Hide resolved
@zarzen zarzen requested a review from loadams as a code owner December 27, 2023 19:33
@zarzen
Copy link
Contributor Author

zarzen commented Dec 27, 2023

@mrwyattii thanks for suggestions, I updated the implementation accordingly. Besides, as the mics implementation currently is not compatible with offloading, I removed the unittest for test_zero_offloadpp.py

@loadams loadams enabled auto-merge January 8, 2024 17:39
@loadams loadams disabled auto-merge January 8, 2024 17:54
@mrwyattii mrwyattii added this pull request to the merge queue Jan 8, 2024
Merged via the queue into microsoft:master with commit d7b764e Jan 8, 2024
14 checks passed
mauryaavinash95 pushed a commit to mauryaavinash95/DeepSpeed that referenced this pull request Feb 17, 2024
In response to the ask from
microsoft#2964 (comment),
I added three more unit tests related to MiCS.

There are two knowledge issues:
- Testing on Torch 2.1.0 triggers `_IllegalWorker` in coalesced all
gather. I made changes to ignore this condition. and Currently, I don't
know the reason.
- The MiCS implementation is not working with offloading, so the failure
in `TestZeroPartialOffloadConfigSweep` is expected.

---------

Co-authored-by: Logan Adams <[email protected]>
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