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 Han8831d1d440af
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index 89234912582..acf999faffc 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -89,7 +89,6 @@ def unsloth_base_fast_generate(
raise TypeError("Unsloth: You need to pass in input_ids to .generate!")
assert(type(x) is torch.Tensor)
bsz = x.shape[0]
- print(kwargs)
FastBaseModel.for_inference(self)
dtype = _get_dtype(self.config.torch_dtype)
@@ -147,8 +146,6 @@ def unsloth_base_fast_generate(
try: kwargs["pixel_values"] = kwargs["pixel_values"].to(dtype)
except: pass
- if "use_cache" not in kwargs: kwargs["use_cache"] = True
-
# Mixed precision autocast
if os.environ.get("UNSLOTH_FORCE_FLOAT32", "0") == "1":
autocaster = torch.autocast(device_type = "cuda", dtype = dtype)