Skip to content

Commit

Permalink
fix test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Oct 1, 2024
1 parent fec2827 commit eafb09e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/training/default_settings/safety_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def safety_check(args, accelerator):

if (
(args.base_model_precision in ["fp8-quanto", "int4-quanto"] or (args.base_model_precision != "no_change" and args.quantize_activations))
and accelerator.state.dynamo_plugin.backend.lower() == "inductor"
and (accelerator is not None and accelerator.state.dynamo_plugin.backend.lower() == "inductor")
):
logger.warning(
f"{args.base_model_precision} is not supported with Dynamo backend. Disabling Dynamo."
Expand Down

0 comments on commit eafb09e

Please sign in to comment.