"CUDA out of memory" (or "HIP out of memory" on AMD) means the model plus its working memory did not fit on your GPU. Try these in order; most people are sorted by step 2 or 3.
1. Close what else is using the GPU
Browsers with hardware acceleration, games left running in the tray, a second ComfyUI window, video players. On Windows, Task Manager → Performance → GPU shows "Dedicated GPU memory" in use before you even start.
2. Use a smaller file of the same model
This is the big one. If you were on the 16-bit file, switch to the FP8 or INT8 file, or a Q8_0 GGUF. If 8-bit does not fit either, take a Q5 or Q4 GGUF and load it with Unet Loader (GGUF) from the ComfyUI-GGUF node pack. Which quant to pick →
3. Shrink the text encoder too
Text encoders like T5-XXL, UMT5 or Qwen-VL are several GB each. Use the FP8 or a GGUF version, or let the encoder run on the CPU. It only runs once per prompt, so on the CPU a T5-class encoder costs seconds; the 24–32B encoders of FLUX.2 [dev] and MiniMax H3 can take a minute or more.
4. Decode with the tiled VAE
If the error comes at the very end, the VAE decode is the problem, especially for video and big images. Replace VAE Decode with VAE Decode (Tiled).
5. Lower the resolution or the number of frames
Working memory grows with the number of pixels, and for video with the number of frames. Going from 1280×720 to 832×480, or from 121 frames to 81, frees a lot. Why video needs so much →
6. Update ComfyUI, and leave room for other apps
Since March 2026 ComfyUI's Dynamic VRAM is on by default for NVIDIA: it streams whatever does not fit from system RAM on its own, so an up-to-date install fixes many out-of-memory errors by itself. If other programs need GPU memory, start ComfyUI with --reserve-vram 1.5 to keep 1.5 GB free. The old --lowvram option does nothing when Dynamic VRAM is on; without it, it only moves the text encoder to the CPU.
7. Check your system RAM and page file
When VRAM runs out, the overflow goes to system RAM. If that is full too, older ComfyUI versions and non-NVIDIA setups fall back to the Windows page file and everything crawls, or crashes. (With Dynamic VRAM on NVIDIA, ComfyUI maps model files from disk instead and leans on the page file much less.) Big models want 32 GB of RAM; Wan 2.2 14B, FLUX.2 [dev] and MiniMax H3 want 64 GB or more. How much RAM →