Update models.py to clear LORA names after unload (#2951)
This commit is contained in:
parent
48b11f9c5b
commit
33f56fd41d
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue