Skip to content

Commit

Permalink
Correct typo in checking on bf16 unit test support (#5317)
Browse files Browse the repository at this point in the history
Co-Authored-By: Du Li <[email protected]>
  • Loading branch information
loadams and duli2012 authored Apr 1, 2024
1 parent ffb53c2 commit 014576a
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 014576a

Please sign in to comment.