Uh oh!
There was an error while loading. Please reload this page.
Amax reduction interval - #154
Conversation
Signed-off-by: Sangkug Lym <slym@nvidia.com> Skip TP-domain only AMAX reduction when TP-group is not initialized Signed-off-by: Sangkug Lym <slym@nvidia.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com> Signed-off-by: Sangkug Lym <slym@nvidia.com>
timmoon10
left a comment
There was a problem hiding this comment.
I think we should explicitly pass in self.tp_group_initialized since group=None refers to the world process group in torch.distributed.
erhoo82
commented
Apr 17, 2023
Isn't it either TP group or AMAX reduction group provided by a user? |
ksivaman
commented
Apr 17, 2023
The user provides the |
Uh oh!
There was an error while loading. Please reload this page.
timmoon10
left a comment
There was a problem hiding this comment.
LGTM once the tests are green.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
erhoo82
commented
Apr 17, 2023
Thanks for the comment. I haven't tested this yet. Will reflect feedback. |
Signed-off-by: Sangkug Lym <slym@nvidia.com> fix Signed-off-by: Sangkug Lym <slym@nvidia.com>
f44b26d to
dd4b8f6Compareksivaman
commented
Apr 18, 2023
/te-ci |
* amax reduction internval Signed-off-by: Sangkug Lym <slym@nvidia.com> Skip TP-domain only AMAX reduction when TP-group is not initialized Signed-off-by: Sangkug Lym <slym@nvidia.com> * Update transformer_engine/pytorch/fp8.py Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com> Signed-off-by: Sangkug Lym <slym@nvidia.com> * check TP group initialized Signed-off-by: Sangkug Lym <slym@nvidia.com> fix Signed-off-by: Sangkug Lym <slym@nvidia.com> --------- Signed-off-by: Sangkug Lym <slym@nvidia.com> Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com>
Set the DP-domain AMAX reduction interval by setting an integer value to NVTE_DP_AMAX_REDUCE_INTERVAL.
For example, when setting NVTE_DP_AMAX_REDUCE_INTERVAL=8, 7/8 instances do the reduction in TP-domain only and 1/8 does a reduction in both TP and DP domain.