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 vision.py
Daniel Han10d27a517954
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex 10618c1a84f..677c7f8744f 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -116,8 +116,8 @@ def unsloth_base_fast_generate(is_vlm = is_vlm or hasattr(self.config, "vision_config")arch = self.config.architectures[0]- # Remove token_type_ids- kwargs.pop("token_type_ids", None)+ # Remove token_type_ids - WRONG for Gemma 3 since bidirectional attention+ # kwargs.pop("token_type_ids", None)# VLMs do not allow logits_to_keepglobal NUM_LOGITS_TO_KEEP