mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-22 22:02:51 +08:00
tiny fix
Former-commit-id: 8c41a0aa6db8bf31200c83b14819d474927268a1
This commit is contained in:
parent
54e786346e
commit
de4de5b5ab
@ -35,7 +35,7 @@ def configure_attn_implementation(
|
||||
if model_args.flash_attn == "auto":
|
||||
logger.warning("Gemma-2 models should use eager attention in training, change `flash_attn` to disabled.")
|
||||
model_args.flash_attn = "disabled"
|
||||
else:
|
||||
elif model_args.flash_attn != "disabled":
|
||||
logger.warning(
|
||||
"Gemma-2 models should use eager attention in training, but you set `flash_attn: {}`. "
|
||||
"Will proceed at your own risk.".format(model_args.flash_attn)
|
||||
|
Loading…
x
Reference in New Issue
Block a user