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 Han0922ec554402
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 21078ca2faa..c83de8f9443 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -1133,7 +1133,6 @@ def CausalLM_fast_forward(fast_forward_inference):if os.environ.get("UNSLOTH_RETURN_HIDDEN_STATES", "0") == "1":if num_logits_to_keep != 0:hidden_states = hidden_states[:, -num_logits_to_keep:, :]- hidden_states.__is_hidden_state = Truereturn CausalLMOutputWithPast(loss = None,logits = hidden_states,