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 Han34464fa4367d
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index 39ff1fd2bb2..ed9b7be6207 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -364,8 +364,8 @@ class FastBaseModel:
correct_dtype = bnb_compute_dtype
custom_datatype = _custom_datatype
# Execute code as well
- if len(execute_code.strip()) != 0:
- exec(execute_code)
+ # if len(execute_code.strip()) != 0:
+ # exec(execute_code)
else:
custom_datatype = None
correct_dtype = None