RunComfy

Search

ComfyUI Workflows

ComfyUI Online

Try RunComfy, we help you focus on ART instead of red errors

RC ComfyUI Versions

RunComfy System Status

ComfyUI How-tos

ComfyUI
ComfyUI

How to fix: Allocation on device 0 would exceed allowed memory. (out of memory)

A lot of times when you encounter something like this,

Error occurred when executing KSampler:

Allocation on device 0 would exceed allowed memory. (out of memory)
Currently allocated : 13.15 GiB
Requested : 1.24 GiB
Device limit : 15.73 GiB
Free (according to CUDA): 23.75 MiB
PyTorch limit (set by user-supplied memory fraction)
: 17179869184.00 GiB

Solutions:

  1. Try a bigger machine, 16GB VRAM → 24GB VRAM → 48GB VRAM → 80GB VRAM
  2. Reduce input image/video resolution
  3. Reduce upscale factors

P.S.

If you are working with Flux, please consider using RunComfy machine here (We have all the large VRAM GPUs you need, 80GB VRAM anyone?).

RunComfy

ComfyUI

ComfyUI Online

ComfyUI Web

ComfyUI Workflows

ComfyUI Cloud