Skip to content
Merged
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 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