From 1cdd90e2ae98285497cebee8feefeab3331d7ab4 Mon Sep 17 00:00:00 2001 From: db0 Date: Tue, 10 Dec 2024 00:32:21 +0100 Subject: [PATCH] fix: used wrong var --- hordelib/model_manager/lora.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hordelib/model_manager/lora.py b/hordelib/model_manager/lora.py index 8cb18e3..9a27c45 100644 --- a/hordelib/model_manager/lora.py +++ b/hordelib/model_manager/lora.py @@ -893,7 +893,7 @@ def amount_of_adhoc_loras_to_delete(self): if not self.is_adhoc_cache_full(): return 0 # If we have exceeded our cache, we delete 1 lora + 1 extra lora per 4G over our cache. - return 1 + ((self.calculate_adhoc_loras_cache() - self._max_top_disk) / 4096) + return 1 + int((self.calculate_adhoc_loras_cache() - self.max_adhoc_disk) / 4096) def calculate_download_queue(self): total_queue = 0