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 Han3cc9c2410e06
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex f5dc02704ee..bae6d5b80df 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -1387,7 +1387,8 @@ def _wrap_fast_inference(generate, device_type, dtype, model):# For newer HFif SUPPORTS_LLAMA32:- kwargs["cache_implementation"] = "hybrid"+ # kwargs["cache_implementation"] = "hybrid"+ passelse:kwargs["cache_implementation"] = "dynamic"# For num_logits_to_keep