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 granite.py
Daniel Hanf3b54692132e
diff --git a/unsloth/models/granite.py b/unsloth/models/granite.pyindex b268d744aa5..df498d18bad 100644--- a/unsloth/models/granite.py+++ b/unsloth/models/granite.py@@ -279,7 +279,7 @@ def GraniteAttention_fast_forward_inference(# Prefill phase# if not hasattr(self, "paged_attention"):if do_prefill:- self.paged_attention = torch.empty((KV_CACHE_INCREMENT+seq_len+1, 2, bsz, n_kv_heads, head_dim), dtype = dtype, device = device))+ self.paged_attention = torch.empty((KV_CACHE_INCREMENT+seq_len+1, 2, bsz, n_kv_heads, head_dim), dtype = dtype, device = device)self.paged_attention_K = self.paged_attention[:,0]self.paged_attention_V = self.paged_attention[:,1]self.paged_attention_K[:seq_len] = K1.permute(2, 0, 1, 3)