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 Hana3c2856977a7
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex 31d0acf62a4..77774393c9c 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -58,7 +58,10 @@ def unsloth_base_fast_generate(dtype = _get_dtype(self.config.torch_dtype)# Check if VLM- is_vlm = (x.endswith("ForConditionalGeneration") for x in self.config.architectures)+ is_vlm = (+ x.endswith(("ForConditionalGeneration", "ForVisionText2Text"))+ for x in self.config.architectures+ )is_vlm = is_vlm or hasattr(self.config, "vision_config")# Remove token_type_ids