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 Hane666023a5e72
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex 88494df3d23..c2c278ec224 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -929,6 +929,8 @@ def LlamaModel_fast_forward_inference(temp_mlp = torch.empty((2, bsz, 1, mlp_size), dtype = X.dtype, device = "cuda:0")temp_gate, temp_up = temp_mlp[0], temp_mlp[1]+ print(type(past_key_values), len(past_key_values))+seq_len = past_key_values[0][0].shape[-2]if bsz != 1:attention_mask = _prepare_4d_causal_attention_mask_for_sdpa(