Skip to content

Commit 6cf59fa

Browse files
authored
add the mcore interface for optim arg; average_in_collective (#10010)
Signed-off-by: Sangkug Lym <slym@nvidia.com>
1 parent 7cae5c4 commit 6cf59fa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nemo/collections/nlp/models/language_modeling/megatron_gpt_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ def setup_mcore_distributed_parallel(self):
545545
# mcore bucket_size is based on num of parameters, therefore not
546546
# using bucket_cap_mb to configure bucket_size here
547547
bucket_size=self.cfg.optim.get('ddp_bucket_size', None),
548+
average_in_collective=self.cfg.optim.get('average_in_collective', True),
548549
)
549550
self.model = [
550551
McoreDDP(

0 commit comments

Comments
 (0)