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