mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
fixed LoRA loading issue (#1865)
This commit is contained in:
parent
8818967d37
commit
79ac94cc2f
@ -28,6 +28,7 @@ def add_lora_to_model(lora_names):
|
|||||||
# If any LoRA needs to be removed, start over
|
# If any LoRA needs to be removed, start over
|
||||||
if len(removed_set) > 0:
|
if len(removed_set) > 0:
|
||||||
shared.model.disable_adapter()
|
shared.model.disable_adapter()
|
||||||
|
shared.model = shared.model.base_model.model
|
||||||
|
|
||||||
if len(lora_names) > 0:
|
if len(lora_names) > 0:
|
||||||
logging.info("Applying the following LoRAs to {}: {}".format(shared.model_name, ', '.join(lora_names)))
|
logging.info("Applying the following LoRAs to {}: {}".format(shared.model_name, ', '.join(lora_names)))
|
||||||
|
Loading…
Reference in New Issue
Block a user