Skip to content

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.

Update vision.py

Daniel Han79b59cc8a6e3
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index 490938ae564..8bfb9a119a7 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -39,6 +39,7 @@ from unsloth_zoo.peft_utils import (
SKIP_QUANTIZATION_MODULES,
requires_grad_for_gradient_checkpointing,
)
+from transformers import __version__ as transformers_version
from triton import __version__ as triton_version
from unsloth_zoo.utils import _get_dtype
from unsloth_zoo.patching_utils import patch_model_and_tokenizer