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 Han4d49983b8b75
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex efb1bcdb63e..dbeb487e0df 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -113,7 +113,7 @@ def unsloth_base_fast_generate(except: pass# Mixed precision autocast- # if os.environ.get("UNSLOTH_FORCE_FLOAT32", "0") == "1": dtype = torch.float32+ if os.environ.get("UNSLOTH_FORCE_FLOAT32", "0") == "1": dtype = torch.float32with torch.inference_mode(), torch.autocast(device_type = "cuda", dtype = dtype):output = self._old_generate(*args, **kwargs)pass