Update models.py to clear LORA names after unload (#2951)

This commit is contained in:
FartyPants 2023-07-03 16:39:06 -04:00 committed by GitHub
parent 48b11f9c5b
commit 33f56fd41d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -326,6 +326,7 @@ def clear_torch_cache():
def unload_model():
shared.model = shared.tokenizer = None
shared.lora_names = []
clear_torch_cache()