Update loader.py

This commit is contained in:
Daniel Han 2024-09-29 01:42:58 -07:00
commit e694d3541f

View file

@ -192,7 +192,7 @@ class FastLanguageModel(FastLlamaModel):
pass
# Cannot be both!
if is_model and is_peft:
if (is_model and is_peft) and not SUPPORTS_LLAMA32:
raise RuntimeError(
"Unsloth: Your repo has a LoRA adapter and a base model.\n"\
"You have 2 files `config.json` and `adapter_config.json`.\n"\