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 Han702f85bd5411
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex f564c30a9ff..490938ae564 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -30,7 +30,9 @@ from ..kernels import ()from ._utils import __version__from ._utils import *+from ..save import patch_saving_functionsfrom peft import LoraConfig, TaskType, get_peft_model as _get_peft_model+from peft import PeftModelForCausalLMfrom transformers import set_seed as transformers_set_seedfrom unsloth_zoo.peft_utils import (get_peft_regex,@@ -48,7 +50,7 @@ import gcimport mathimport functoolsfrom typing import Optional, Tuple, List, Union-import re, os, inspect, math, sys+import re, inspect, sysimport typestry:from huggingface_hub.utils import get_token