From afbb140a793cdcd29b207069c64097bb940bbe83 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Sun, 29 Sep 2024 01:42:58 -0700 Subject: [PATCH] Update loader.py --- unsloth/models/loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/models/loader.py b/unsloth/models/loader.py index cb03088b64..0ac9b02743 100644 --- a/unsloth/models/loader.py +++ b/unsloth/models/loader.py @@ -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"\