Skip to content

Commit 9a3e331

Browse files
akoumpako3n1g
authored andcommitted
ADLR/megatron-lm!2316 - respect perform_initialization
1 parent 19515ac commit 9a3e331

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
@@ -338,7 +338,7 @@ def __init__(
338338
input_size,
339339
output_size_per_partition,
340340
0,
341-
init_method,
341+
init_method=condition_init_method(config, init_method),
342342
stride=1,
343343
return_master_weight=False,
344344
rank=rank,
@@ -427,7 +427,7 @@ def __init__(
427427
input_size,
428428
output_size_per_partition,
429429
0,
430-
init_method,
430+
init_method=condition_init_method(config, init_method),
431431
stride=1,
432432
return_master_weight=False,
433433
rank=rank,
@@ -501,7 +501,7 @@ def __init__(
501501
input_size,
502502
input_size_per_partition,
503503
1,
504-
init_method,
504+
init_method=condition_init_method(config, init_method),
505505
stride=1,
506506
return_master_weight=False,
507507
params_dtype=config.params_dtype,

0 commit comments

Comments
 (0)