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 Han67b48d9db47a
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex 699a26a051e..c5cd57de97e 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -177,7 +177,11 @@ def unsloth_base_fast_generate(if "attention_mask" in kwargs:torch._dynamo.mark_static(kwargs["attention_mask"], 0)torch._dynamo.mark_dynamic(kwargs["attention_mask"], 1)- pass+ if "pixel_values" in kwargs:+ print(kwargs["pixel_values"].shape)+ if "token_type_ids" in kwargs:+ torch._dynamo.mark_static(kwargs["token_type_ids"], 0)+ torch._dynamo.mark_dynamic(kwargs["token_type_ids"], 1)# Fix generation_configcache_implementation = getattr(self.config, "cache_implementation", "static")