Skip to content

Commit

Permalink
disable nf4 + sageattention
Browse files Browse the repository at this point in the history
  • Loading branch information
bghira committed Dec 2, 2024
1 parent 8719e73 commit 964e065
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helpers/training/default_settings/safety_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,3 +126,9 @@ def safety_check(args, accelerator):
f"--enable_xformers_memory_efficient_attention is only compatible with --attention_mechanism=diffusers. Please set --attention_mechanism=diffusers to enable this feature or disable xformers to use alternative attention mechanisms."
)
sys.exit(1)

if "nf4" in args.base_model_precision:
logger.error(
f"{args.base_model_precision} is not supported with SageAttention. Please select from int8 or fp8, or, disable quantisation to use SageAttention."
)
sys.exit(1)

0 comments on commit 964e065

Please sign in to comment.