From 3f90d0268b5debcd55cf2fa41a339529da42d494 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Wed, 19 Mar 2025 03:27:49 -0700 Subject: [PATCH] Update vision.py --- unsloth/models/vision.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unsloth/models/vision.py b/unsloth/models/vision.py index 7ac5f2edd6..042281a1e8 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)