Update vision.py
This commit is contained in:
parent
b9d6b5bc68
commit
3f90d0268b
1 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue