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 Han00c947798dd0
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index 525e562abb1..39ff1fd2bb2 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -366,7 +366,9 @@ class FastBaseModel:
# Execute code as well
if len(execute_code.strip()) != 0:
exec(execute_code)
- pass
+ else:
+ custom_datatype = None
+ correct_dtype = None
pass
# Stop SDPA for some archs like Pixtral / Mistral3