Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion megatron/core/optimizer/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ def step(self):
or (
# Megatron-FSDP always uses decoupled_grad with FusedAdam.
self.config.use_precision_aware_optimizer
and getattr(params[0], "__fsdp_param__", False)
and getattr(parameters[0], "__fsdp_param__", False)
)
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,6 @@ def _training_loop(seed=42, **kwargs):

return outputs

@pytest.mark.flaky_in_dev
@pytest.mark.skipif(
not is_torch_min_version("2.4.0"), reason="Test needs to be updated for torch >= 2.4.0"
)
Expand Down Expand Up @@ -816,6 +815,7 @@ def _training_loop(seed=42, **kwargs):
data_parallel_sharding_strategy="optim_grads_params",
megatron_fsdp_main_params_dtype=torch.float32,
use_precision_aware_optimizer=True,
fp8="hybrid",
fp8_recipe="delayed",
fp8_param_gather=True,
bf16=True,
Expand Down
Loading