Skip to content

Commit

Permalink
apple review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
statelesshz committed Oct 24, 2023
1 parent b72e64c commit ddf2dc0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/transformers/training_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -1376,10 +1376,7 @@ def __post_init__(self):

if self.bf16:
if self.half_precision_backend == "apex":
raise ValueError(
" `--half_precision_backend apex`: GPU bf16 is not supported by apex. Use"
" `--half_precision_backend auto` instead"
)
raise ValueError(" `--half_precision_backend apex`: GPU bf16 is not supported by apex.")

if self.lr_scheduler_type == SchedulerType.REDUCE_ON_PLATEAU:
if self.evaluation_strategy == IntervalStrategy.NO:
Expand Down

0 comments on commit ddf2dc0

Please sign in to comment.