Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Update llama.py

Daniel Han1d07d4ded2af
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py
index bb2c7569d80..4a7f4f06246 100644
--- a/unsloth/models/llama.py
+++ b/unsloth/models/llama.py
@@ -2019,7 +2019,7 @@ class FastLlamaModel:
**kwargs,
):
if os.environ.get("UNSLOTH_USE_NEW_MODEL", "0") == "1":
- return FastBaseModel.get_model(
+ return FastBaseModel.get_peft_model(
model = model,
r = r,
target_modules = target_modules,