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 Hana8f24ea882ef
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex 9e53176d520..acf999faffc 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -126,8 +126,8 @@ def unsloth_base_fast_generate(passpasskey = NUM_LOGITS_TO_KEEP[arch]- # if key is not None and key not in kwargs:- # kwargs[key] = 1+ if key is not None and key not in kwargs:+ kwargs[key] = 1global PROMPT_LOOPKUPif arch not in PROMPT_LOOPKUP:PROMPT_LOOPKUP[arch] = True@@ -146,8 +146,6 @@ def unsloth_base_fast_generate(try: kwargs["pixel_values"] = kwargs["pixel_values"].to(dtype)except: pass- print(args, kwargs, self._old_generate)-# Mixed precision autocastif os.environ.get("UNSLOTH_FORCE_FLOAT32", "0") == "1":autocaster = torch.autocast(device_type = "cuda", dtype = dtype)