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 Han6ef73397f2c7
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index dfcb9964fe8..eb284a4a838 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -948,6 +948,7 @@ class FastBaseModel:
if type(float32_mixed_precision) is bool:
# Respect whatever it was set before
+ pass
else:
float32_mixed_precision = True
if _get_dtype(dtype_from_config(model.config)) == torch.bfloat16 and full_finetuning: