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 Han9aa93db23c83
diff --git a/unsloth/models/llama.py b/unsloth/models/llama.pyindex e415e50cdc8..a96b435b585 100644--- a/unsloth/models/llama.py+++ b/unsloth/models/llama.py@@ -1562,7 +1562,9 @@ def unsloth_fast_generate(# For newer HFkwargs["cache_implementation"] = "dynamic"# For num_logits_to_keep- if "num_logits_to_keep" not in kwargs or "logits_to_keep" not in kwargs:+ num_logits_to_keep = kwargs.get("num_logits_to_keep", None)+ logits_to_keep = kwargs.get("logits_to_keep", None)+ if num_logits_to_keep is None and logits_to_keep is None:kwargs["num_logits_to_keep"] = 1# Remove token_type_ids