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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Update vision.py
Daniel Han633221f8c9de
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex 1fe05bbf863..a712f4a40b9 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -320,7 +320,6 @@ class FastBaseModel:dtype = torch.float32bnb_compute_dtype = eval(bnb_compute_dtype)pass- print("bnb_compute_dtype", bnb_compute_dtype)# Stop SDPA for some archs like Pixtral / Mistral3if not ("attn_implementation" in kwargs):@@ -388,9 +387,8 @@ class FastBaseModel:# Edit data-typesif 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