Skip to content

Commit

Permalink
[deepspeed] fix typo, adjust config name (#16597)
Browse files Browse the repository at this point in the history
  • Loading branch information
stas00 authored Apr 5, 2022
1 parent 367558b commit 9fd5e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/deepspeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def trainer_config_process(self, args):
self.fill_match("bf16.enabled", (args.bf16 or args.bf16_full_eval), "bf16|bf16_full_eval")

# deepspeed's default mode is fp16 unless there is a config that says differently
if self.is_true("bfoat16.enabled"):
if self.is_true("bf16.enabled"):
self._dtype = torch.bfloat16
elif self.is_false("fp16.enabled"):
self._dtype = torch.float32
Expand Down

0 comments on commit 9fd5e6b

Please sign in to comment.