Skip to content

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.

Update llama.py

Daniel Hand360225a845d
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py
index 364c0444bd9..4dfe214cf08 100644
--- a/unsloth/models/llama.py
+++ b/unsloth/models/llama.py
@@ -422,6 +422,7 @@ def LlamaAttention_fast_forward(
V = torch.cat([past_key_value[1], V], dim = 2)
pass
past_key_value = (K, V) if use_cache else None
+ print(bsz, q_len, past_key_value[0].shape, past_key_value[1].shape)
# Attention module
if (not HAS_FLASH_ATTENTION and HAS_XFORMERS and attention_mask is None):