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 Hanbd9c7d353e6f
diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py
index 7ac5f2edd63..042281a1e8a 100644
--- a/unsloth/models/vision.py
+++ b/unsloth/models/vision.py
@@ -169,7 +169,7 @@ def unsloth_base_fast_generate(
autocaster = torch.autocast(device_type = "cuda", dtype = dtype)
# Prepare LoRA
- state_dict = convert_lora_modules(self, dtype = dtype)
+ # state_dict = convert_lora_modules(self, dtype = dtype)
# Set compile dynamic shapes
torch._dynamo.mark_static(input_ids, 0)
@@ -211,7 +211,7 @@ def unsloth_base_fast_generate(
output = self._old_generate(*args, **kwargs)
finally:
pass
- return_lora_modules(self, state_dict, torch.float32)
+ # return_lora_modules(self, state_dict, torch.float32)
pass
FastBaseModel.for_training(self)