[Feature] Auto scaling factor tuning for FP8 collective communication #140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Support for auto scaling factor tuning #41
Related Example: Azure/MS-AMP-Examples#21
Performance (model: GPT-345M, https://github.com/Azure/MS-AMP-Examples/blob/main/gpt3/pretrain_345m_megatron.sh):
msamp w/o auto scaling
validation loss at iteration 5000 | lm loss value: 3.531525E+00 | lm loss PPL: 3.417605E+01 |
samples per second: 519.524 | TFLOPs: 155.99 |
msamp w/ auto scaling (Add the argument
--wgrad-auto-scaling):validation loss at iteration 5000 | lm loss value: 3.529646E+00 | lm loss PPL: 3.411188E+01 |
samples per second: 516.702 | TFLOPs: 155.14 |
Major Revision
pre_scalein ScalingMetapre_scalesupport inArithmetic.add_to_fp8