Add logging for model unloading. (#10692)

This commit is contained in:
comfyanonymous 2025-11-09 15:06:39 -08:00 committed by GitHub
parent 2abd2b5c20
commit e632e5de28
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -909,6 +909,7 @@ class ModelPatcher:
self.model.model_lowvram = True
self.model.lowvram_patch_counter += patch_counter
self.model.model_loaded_weight_memory -= memory_freed
logging.info("loaded partially: {:.2f} MB loaded, lowvram patches: {}".format(self.model.model_loaded_weight_memory / (1024 * 1024), self.model.lowvram_patch_counter))
return memory_freed
def partially_load(self, device_to, extra_memory=0, force_patch_weights=False):