VRAM & CUDA Tuning
VAE Tiling for 1536x1536+ Flux & Wan2.2 3D Video OOM Guard
Eliminate end-of-workflow CUDA OOM crashes during high-resolution Flux VAE decode and Wan2.2 81-frame 3D VAE decoding using 512px tiles.
Un-tiled 1536px Spike: ~6.4 GB · 512px Tiled: ~1.7 GB (-73%)
The 99% Progress Bar Crash Pattern
Denoising 20 steps at 1536x1536 fits comfortably in 24 GB VRAM, only to crash at the final VAE Decode node because spatial convolutions materialize full-resolution FP32 feature maps.
Optimal Overlap & Tile Size
Use VAE Decode (Tiled) with tile_size=512 and overlap=64 (plus temporal_size=32 for Wan2.2) to eliminate visible seam artifacts while capping decode VRAM.
Measured Thresholds & ComfyUI Configuration Matrix
| Canvas / Video Target | Un-Tiled VAE Peak | 512px Tiled VAE Peak |
|---|---|---|
| 1024x1536 Flux Image | ~2.6 GB VRAM spike | ~1.3 GB VRAM spike |
| 1536x1536 Flux Upscale | ~6.4 GB VRAM spike (OOM risk) | ~1.7 GB VRAM spike |
| Wan2.2 720p 81f 3D VAE | ~9.2 GB VRAM spike (OOM on L4) | ~3.3 GB VRAM spike (Fits L4) |