The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Clear cache as often on AMD as Nvidia.
comfyanonymous9e9c8a1c6476
diff --git a/comfy/model_management.py b/comfy/model_management.pyindex 731fb5845..15800a8e1 100644--- a/comfy/model_management.py+++ b/comfy/model_management.py@@ -1121,9 +1121,8 @@ def soft_empty_cache(force=False):elif is_ascend_npu():torch.npu.empty_cache()elif torch.cuda.is_available():- if force or is_nvidia(): #This seems to make things worse on ROCm so I only do it for cuda- torch.cuda.empty_cache()- torch.cuda.ipc_collect()+ torch.cuda.empty_cache()+ torch.cuda.ipc_collect()def unload_all_models():free_memory(1e30, get_torch_device())