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 Han93487dbf819f
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index ed9b7be6207..289d667ddab 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -562,7 +562,7 @@ class FastBaseModel:
finetune_mlp_modules = True,
layers_to_transform = None,
layers_pattern = None,
- use_gradient_checkpointing = True,
+ use_gradient_checkpointing = "unsloth",
random_state = 3407,
max_seq_length = 2048, # not used anymore
use_rslora = False,