Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions comfy/model_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,9 @@ def offloaded_memory(loaded_models, device):
EXTRA_RESERVED_VRAM = args.reserve_vram * 1024 * 1024 * 1024
logging.debug("Reserving {}MB vram for other applications.".format(EXTRA_RESERVED_VRAM / (1024 * 1024)))

if is_nvidia() and not args.disable_cuda_malloc:
EXTRA_RESERVED_VRAM += 32 * 1024 * 1024

def extra_reserved_memory():
return EXTRA_RESERVED_VRAM

Expand Down