Skip to content

Commit

Permalink
Correct typo in checking on bf16 unit test support (microsoft#5317)
Browse files Browse the repository at this point in the history
Co-Authored-By: Du Li <[email protected]>
  • Loading branch information
2 people authored and dbyoung18 committed Jun 11, 2024
1 parent ec4266b commit a58a3b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unit/checkpoint/test_lr_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_checkpoint_lr_scheduler(self, tmpdir, zero_stage, use_cpu_offload):
}
if get_accelerator().is_fp16_supported():
config_dict["fp16"] = {"enabled": True}
elif get_accelerator().is_fp16_supported():
elif get_accelerator().is_bf16_supported():
config_dict["bf16"] = {"enabled": True}
hidden_dim = 10

Expand Down

0 comments on commit a58a3b3

Please sign in to comment.