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 Han-Chen808211931d80
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 7d0acab52e6..3e6aa36099d 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -712,6 +712,9 @@ class FastLlamaModel:internal_model = internal_model.modelpassinternal_model.max_seq_length = max_position_embeddings++ # We check the tokenizer first for errors+ check_tokenizer(model, tokenizer)return model, tokenizerpass@@ -756,9 +759,6 @@ class FastLlamaModel:# Clear deleted GPU itemsgc.collect()torch.cuda.empty_cache()-- # We check the tokenizer first for errors- check_tokenizer(model, tokenizer)return modelpass