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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Update llama.py
Daniel Hanba944d6ef8f8
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex fd1f16e30bb..fa37fc34bfb 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -2657,9 +2657,9 @@ class FastLlamaModel:passm = modelwhile 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 NEFTuneif hasattr(model, "get_input_embeddings"):