mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-29 19:09:32 +01:00
Update models.py to clear LORA names after unload (#2951)
This commit is contained in:
parent
48b11f9c5b
commit
33f56fd41d
@ -326,6 +326,7 @@ def clear_torch_cache():
|
|||||||
|
|
||||||
def unload_model():
|
def unload_model():
|
||||||
shared.model = shared.tokenizer = None
|
shared.model = shared.tokenizer = None
|
||||||
|
shared.lora_names = []
|
||||||
clear_torch_cache()
|
clear_torch_cache()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user