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 Han0597d535bb15
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex f9b96fae4d4..8ba7c453687 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -2644,7 +2644,7 @@ class FastLlamaModel:@staticmethoddef for_training(model, use_gradient_checkpointing = True):if not hasattr(model, "parameters"):- raise TypeError("Unsloth: I think you're passing a tokenizer, not the model to for_inference!")+ raise TypeError("Unsloth: I think you're passing a tokenizer, not the model to for_training!")# Delete all fast inference lorasfor param in model.parameters():