Comfy-Org / Comfy-Org/ComfyUI

torch.cuda.OutOfMemoryError: Allocation on device 0 would exceed allowed memory. (out of memory)

Open
#1,918 17 comments 1 reaction 0 assignees View on GitHub
User Support
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

Getting this error message repeatedly on my ksampler. My workflow is really simple so im not trying to do anything crazy. I tried deleting and reinstalling comfyui. i deleted all unnecessary custom nodes. I am using shadowtech pro so I have a pretty good gpu and cpu.

torch.cuda.OutOfMemoryError: Allocation on device 0 would exceed allowed memory. (out of memory)
Currently allocated : 18.38 GiB
Requested : 6.09 GiB
Device limit : 16.00 GiB
Free (according to CUDA): 0 bytes
PyTorch limit (set by user-supplied memory fraction)
: 17179869184.00 GiB

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.