Skip to content

Commit 52e118b

Browse files
committed
fix
Signed-off-by: Alexandros Koumparoulis <akoumparouli@nvidia.com>
1 parent f888ddc commit 52e118b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

nemo_automodel/components/distributed/parallelizer.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ def megatron_fsdp_strategy_parallelize(
11001100
return model, optimizer
11011101

11021102
# Wrap model with MegatronFSDP.
1103-
fsdp_kwargs = dict(
1103+
model, optimizer = megatron_fsdp_fully_shard(
11041104
module=model,
11051105
optimizer=optimizer,
11061106
fsdp_unit_modules=megatron_fsdp_unit_modules,
@@ -1122,7 +1122,6 @@ def megatron_fsdp_strategy_parallelize(
11221122
fsdp_double_buffer=fsdp_double_buffer,
11231123
)
11241124

1125-
model, optimizer = megatron_fsdp_fully_shard(**fsdp_kwargs)
11261125
return model, optimizer
11271126

11281127

0 commit comments

Comments
 (0)