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 Han7dc1ce9eb381
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 0cdd51733bb..9db8abdd430 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -1130,9 +1130,7 @@ def CausalLM_fast_forward(fast_forward_inference):# Output last hidden states without logits if askedif os.environ.get("UNSLOTH_RETURN_HIDDEN_STATES", "0") == "1":if num_logits_to_keep != 0:- print("llama 1133 hidden_states", hidden_states.shape)hidden_states = hidden_states[:, -num_logits_to_keep:, :]- print("llama 1133 hidden_states", hidden_states.shape)return CausalLMOutputWithPast(loss = None,logits = hidden_states,