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 Hanba944d6ef8f8
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py
index fd1f16e30bb..fa37fc34bfb 100644
--- a/unsloth/models/llama.py
+++ b/unsloth/models/llama.py
@@ -2657,9 +2657,9 @@ class FastLlamaModel:
pass
m = model
while hasattr(m, "model"):
- _for_inference(m)
+ _for_training(m)
m = m.model
- _for_inference(m)
+ _for_training(m)
# Also re-enable training for embeddings for NEFTune
if hasattr(model, "get_input_embeddings"):