You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
), f"Peft config not found: {train_config.peft_method}"
51
-
52
-
assert (
53
-
train_config.peft_method!="prefix"
54
-
), "PrefixTuning is currently not supported (see https://github.com/meta-llama/llama-recipes/issues/359#issuecomment-2089350811)"
55
-
iftrain_config.enable_fsdp:
56
-
assert (
57
-
train_config.peft_method!="llama_adapter"
58
-
), "Llama_adapter is currently not supported in combination with FSDP (see https://github.com/meta-llama/llama-recipes/issues/359#issuecomment-2089274425)"
48
+
iftrain_config.peft_methodnotinnames:
49
+
raiseRuntimeError(f"Peft config not found: {train_config.peft_method}")
50
+
51
+
iftrain_config.peft_method=="prefix":
52
+
raiseRuntimeError("PrefixTuning is currently not supported (see https://github.com/meta-llama/llama-recipes/issues/359#issuecomment-2089350811)")
raiseRuntimeError("Llama_adapter is currently not supported in combination with FSDP (see https://github.com/meta-llama/llama-recipes/issues/359#issuecomment-2089274425)")
0 commit comments