-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bug Fixed] Support MS-AMP+TE+DDP and MS-AMP+TE+DeepSpeed (#144)
**Description** This PR supports MS-AMP+TE+DDP and MS-AMP+TE+DeepSpeed. **Major Revision** - In FP8 DeepSpeed ZeRO or FP8 DDP, when the type of a weight gradient is torch.Tensor, it will be converted to ScalingTensor. - unittests for MS-AMP+TE+DDP and MS-AMP+TE+DeepSpeed in [tests/te/test_replacer.py](https://github.com/Azure/MS-AMP/compare/main...wkcn:fix_wgrad_for_ds?expand=1#diff-9d0a56799e3844e780daf5b7bd565c4217659bd3f46748b7067aac46847b16b9). --------- Co-authored-by: Yuxiang Yang <[email protected]>
- Loading branch information
Showing
4 changed files
with
112 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters