Skip to content

Commit

Permalink
Fix crash if gaudi_config is not passed to GaudiTrainer (#613)
Browse files Browse the repository at this point in the history
  • Loading branch information
sywangyi authored Dec 29, 2023
1 parent a5d7dec commit 0152688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion optimum/habana/transformers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def __init__(
)

if self.use_hpu_amp and "LOWER_LIST" not in os.environ:
gaudi_config.declare_autocast_bf16_fp32_ops()
self.gaudi_config.declare_autocast_bf16_fp32_ops()

if self.args.use_lazy_mode:
try:
Expand Down

0 comments on commit 0152688

Please sign in to comment.