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 Hanadf8fb9b80fc
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.pyindex 6e1c9963041..a566f023b5c 100644--- a/unsloth/models/vision.py+++ b/unsloth/models/vision.py@@ -145,8 +145,11 @@ def unsloth_base_fast_generate(kwargs[key] = 1global PROMPT_LOOPKUPif arch not in PROMPT_LOOPKUP:- PROMPT_LOOPKUP[arch] = True-+ # Only works for VLMs and not LLMs!+ if is_vlm:+ PROMPT_LOOPKUP[arch] = False+ else:+ PROMPT_LOOPKUP[arch] = Trueif bsz == 1 and PROMPT_LOOPKUP[arch]:kwargs["prompt_lookup_num_tokens"] = 3@@ -201,8 +204,6 @@ def unsloth_base_fast_generate(kwargs["cache_implementation"] = cache_implementationkwargs["compile_config"] = _compile_configpass- import pprint- pprint.pprint(args, kwargs)try:with torch.inference_mode(), autocaster: