From 33f56fd41d903770aed37ed1a995b15be7d7985b Mon Sep 17 00:00:00 2001 From: FartyPants Date: Mon, 3 Jul 2023 16:39:06 -0400 Subject: [PATCH] Update models.py to clear LORA names after unload (#2951) --- modules/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/models.py b/modules/models.py index f12e700c..4b47e649 100644 --- a/modules/models.py +++ b/modules/models.py @@ -326,6 +326,7 @@ def clear_torch_cache(): def unload_model(): shared.model = shared.tokenizer = None + shared.lora_names = [] clear_torch_cache()