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 Han633221f8c9de
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index 1fe05bbf863..a712f4a40b9 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -320,7 +320,6 @@ class FastBaseModel:
dtype = torch.float32
bnb_compute_dtype = eval(bnb_compute_dtype)
pass
- print("bnb_compute_dtype", bnb_compute_dtype)
# Stop SDPA for some archs like Pixtral / Mistral3
if not ("attn_implementation" in kwargs):
@@ -388,9 +387,8 @@ class FastBaseModel:
# Edit data-types
if custom_datatype is not None:
- with torch.inference_mode():
- for name, module in model.named_modules():
- exec(custom_datatype)
+ for name, module in model.named_modules():
+ exec(custom_datatype)
pass
# Counteract saved tokenizers