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 Hanb9b68c9ee370
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex fc9519cb64b..b214ecec846 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -245,22 +245,22 @@ class FastBaseModel:auto_processor = AutoProcessor if auto_model is AutoModelForVision2Seq else AutoTokenizertokenizer = auto_processor.from_pretrained(tokenizer_name,- padding_side = "right",+ padding_side = "left",token = token,)# Add padding side as wellif hasattr(tokenizer, "tokenizer"):- tokenizer.tokenizer.padding_side = "right"+ tokenizer.tokenizer.padding_side = "left"- model, tokenizer = patch_tokenizer(model, tokenizer)- model = post_patch_loss_function(model)+ # model, tokenizer = patch_tokenizer(model, tokenizer)+ # model = post_patch_loss_function(model)# Fix other stuff like BnB compute data types- model, tokenizer = patch_model_and_tokenizer(- model,- tokenizer,- downcast_rope = False,- fix_embeddings = False,- )+ # model, tokenizer = patch_model_and_tokenizer(+ # model,+ # tokenizer,+ # downcast_rope = False,+ # fix_embeddings = False,+ # )# Log Unsloth version for future fastpaths for inferenceif hasattr(model, "config"):