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:
- Try a bigger machine, 16GB VRAM → 24GB VRAM → 48GB VRAM → 80GB VRAM
- Reduce input image/video resolution
- 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?).