Free | No tracking | Every fact with a source|German and English

Error / Memory

Wan2GP: CUDA out of memory

When loading or generating a video, there isn’t enough VRAM or RAM.

The message

torch.OutOfMemoryError: CUDA out of memory. Tried to allocate … (Wan2GP / WanGP)

Affects: Wan2GP (WanGP)

Why is this happening?

Video models like Wan are very large, and every additional second and every pixel needs more memory. Depending on the memory profile, Wan2GP offloads model parts to RAM. A profile that is too generous, a high resolution, or a browser that uses VRAM itself can quickly lead to this error.

How to fix it

  1. Use memory profile 4 (default, loads model parts only when needed). You can force it at startup with --profile 4, for example via a file args.txt in the scripts folder.
  2. Reduce the resolution and number of frames (shorter video) and try again.
  3. Instead of the 14B model, try a smaller or quantized variant, for example the 1.3B model.
  4. Free up VRAM: Close other programs that use the graphics card. Wan2GP includes scripts\start-chrome-no-gpu.bat to start Chrome without the graphics card. According to the guide, this saves 1 to 5 GB of VRAM.
  5. If RAM is the bottleneck, use --profile 5 (minimal RAM usage) or limit the reserved RAM with --perc-reserved-mem-max 0.3.
  6. If SageAttention causes problems, start with --attention sdpa for testing.

Better not: Profile 3 loads the entire model into VRAM and needs 24 GB VRAM for 14B models; don’t use it on normal gaming cards.

Set up from scratch again

If it still doesn’t work after that, a fresh setup step by step often helps:

Terms for this

Similar errors

Sources

Checked on Oct 21, 2026. Didn't help? Ask in the forum and name the graphics card, program, and the full message.