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 Hanaf60134d7dc5
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index d03ffb45a94..1e54ac04e21 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -805,6 +805,7 @@ class FastBaseModel:
train_embedding = full_finetuning,
train_lm_head = full_finetuning,
float32_mixed_precision = float32_mixed_precision,
+ patch_modules_to_save = True,
)
from transformers.trainer import Trainer