ComfyUI out of memory: make it fit your graphics card
Big models and pictures that finish instead of crashing.
Download StellaFree with the plan you already have.
Runs on
- ClaudeRecommended
- Gemini
- ChatGPT
The short answer.
Out of memory means the model, picture size or batch is bigger than your graphics card holds. Stella (stella.sh) switches to a smaller copy of the model, turns on ComfyUI's low VRAM mode and splits big steps so it finishes.
Stella does this on Windows, Mac and Linux.
What you get.
- The step that runs out named plainly
- Smaller model copies that look nearly the same
- Low VRAM mode set to start every time
Just ask.
ComfyUI crashes with torch.OutOfMemoryError: Allocation on device on 1536-pixel pictures. 8 GB card.
Paste it into Stella and press Enter.
Questions.
Will more computer memory (RAM) help ComfyUI out of memory?
Sometimes. Low VRAM mode moves parts of the model into normal memory, so 32 GB helps a lot with big models.
Is Stella free?
Yes. Free with the ChatGPT, Claude or Gemini plan you already have.
Can I do it without Stella?
- Lower the size and batch in Empty Latent Image first. Close games and browsers that hold graphics memory.
- Start ComfyUI with --lowvram (add it to run_nvidia_gpu.bat on portable).
- Use fp8 or GGUF versions of big models (the ComfyUI-GGUF node loads GGUF).
- Replace VAE Decode with VAE Decode (Tiled) for large pictures and video.