Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Try to improve inference speed on some machines.

comfyanonymous037c38eb0fff
diff --git a/comfy/model_management.py b/comfy/model_management.py
index b7aff9f5e..7fbb42824 100644
--- a/comfy/model_management.py
+++ b/comfy/model_management.py
@@ -432,11 +432,11 @@ def load_models_gpu(models, memory_required=0, force_patch_weights=False, minimu
global vram_state
inference_memory = minimum_inference_memory()
- extra_mem = max(inference_memory, memory_required)
+ extra_mem = max(inference_memory, memory_required) + 100 * 1024 * 1024
if minimum_memory_required is None:
minimum_memory_required = extra_mem
else:
- minimum_memory_required = max(inference_memory, minimum_memory_required)
+ minimum_memory_required = max(inference_memory, minimum_memory_required) + 100 * 1024 * 1024
models = set(models)