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 Han826e7775d8ea
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.py
index 9f685937c3f..6f954bf9a2f 100644
--- a/unsloth/models/llama.py
+++ b/unsloth/models/llama.py
@@ -1018,6 +1018,7 @@ def CausalLM_fast_forward(fast_forward_inference):
*args, **kwargs,
) -> Union[Tuple, CausalLMOutputWithPast]:
# Check for uninitialized DynamicCache
+ print(past_key_values, len(past_key_values))
if past_key_values is not None and len(past_key_values) != 0:
outputs = fast_forward_inference(
self,