Skip to content

Commit cbbfa91

Browse files
committed
Merge branch 'akoumparouli/fix_te_skip_init' into 'main'
respect perform_initialization See merge request ADLR/megatron-lm!2316
2 parents 3a32fbc + 9a3e331 commit cbbfa91

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

megatron/core/extensions/transformer_engine.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ def __init__(
348348
input_size,
349349
output_size_per_partition,
350350
0,
351-
init_method,
351+
init_method=condition_init_method(config, init_method),
352352
stride=1,
353353
return_master_weight=False,
354354
rank=rank,
@@ -441,7 +441,7 @@ def __init__(
441441
input_size,
442442
output_size_per_partition,
443443
0,
444-
init_method,
444+
init_method=condition_init_method(config, init_method),
445445
stride=1,
446446
return_master_weight=False,
447447
rank=rank,
@@ -519,7 +519,7 @@ def __init__(
519519
input_size,
520520
input_size_per_partition,
521521
1,
522-
init_method,
522+
init_method=condition_init_method(config, init_method),
523523
stride=1,
524524
return_master_weight=False,
525525
params_dtype=config.params_dtype,

0 commit comments

Comments
 (0)