Bug Fix: off is parsed as False in yaml file, changed to disabled to avoid this.

This commit is contained in:
stceum committed 2024-06-24 20:39:31 +08:00
1 parent 5b897e7c35
commit 3ed063f281
3 files changed
+6 -2

No files matched your search

@@ -32,7 +32,7 @@ def configure_attn_implementation(config: "PretrainedConfig", model_args: "Model
if model_args.flash_attn == "auto":
return
elif model_args.flash_attn == "off":
elif model_args.flash_attn == "disabled":
requested_attn_implementation = "eager"
elif model_args.flash_attn == "sdpa":