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

Etherll49d75674f4a6
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index 2436db4ff47..246e5d5671b 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -608,7 +608,7 @@ class FastBaseModel:
finetune_mlp_modules = finetune_mlp_modules,
)
else:
- assert(type(target_modules) in (list, tuple,))
+ assert(type(target_modules) in (list, tuple, str,))
pass
# Clear deleted GPU items