On a 12 GB or 16 GB card, the denoising loop often finishes and the job then fails at the last step, when the latent is decoded back into pixels. Video VAEs are 3D convolutional networks, so their activations grow with height, width and frame count at the same time. Tiled decoding works around this by splitting the latent into overlapping spatial (and sometimes temporal) blocks, decoding each block separately and blending the seams. This update covers how the main open-weight video VAEs implement tiling today, what the default values are, and what you give up in exchange. Every default below is taken from public source code. We did not run memory tests of our own.
Why the decoder is the step that runs out of memory
Modern video VAEs are causal in time. Each output frame depends only on current and earlier latent frames, which is how Wan’s README can say its 3D causal VAE encodes and decodes “unlimited-length 1080P videos”. In the diffusers implementation of the Wan VAE, decoding already walks the latent one frame at a time and keeps a small convolution cache (CACHE_T = 2). Temporal memory is therefore bounded by design. What is not bounded is the spatial footprint: every decoder block runs at full frame width and height, and the activations at the last upsampling stages are much larger than the 3-channel output.
The output tensor alone is not small either. For 81 frames at 1280×720 with 3 channels, it is about 448 MB in BF16 and about 896 MB in FP32 (our arithmetic). It stays on the GPU while frames are concatenated.
Default tiling parameters by VAE
| Implementation | Spatial tile / stride (px) | Temporal tile / stride | Notes |
|---|---|---|---|
diffusers AutoencoderKLWan |
256 / 192 | None (frame-by-frame causal loop) | 64 px linear blend between tiles |
diffusers AutoencoderKLHunyuanVideo |
256 / 192 | 16 / 12 frames | Frame-wise decoding on by default |
diffusers AutoencoderKLLTXVideo |
512 / 448 | 16 / 8 frames | Frame-wise decoding off by default |
diffusers AutoencoderKLCogVideoX |
Half the sample size | Batches of 2 latent frames | Overlap factors 1/6 (height), 1/5 (width) |
| ComfyUI VAE Decode (Tiled) | 512, overlap 64 | 64 frames, overlap 8 | Applies to any VAE ComfyUI loads |
ComfyUI also has a fallback built into comfy/sd.py. If a regular decode raises out-of-memory, it logs “Ran out of memory when regular VAE decoding, retrying with tiled VAE decoding” and tries again. If you see that warning, the run was saved by tiling but paid for one failed full-frame attempt first.
Short on VRAM and patience?
Hosted generators decode on data-centre GPUs, so tile sizes and OOM retries are not your problem.
Try a hosted generator →What tiling costs
Extra compute from overlap
With the diffusers Wan defaults, a 1280×720 frame splits into 4 rows by 7 columns, which is 28 tiles. Each 256 px tile advances by only 192 px, so interior pixels are decoded up to (256/192)² ≈ 1.78 times (our arithmetic). Each tile also re-runs the full temporal loop with its own fresh causal cache. Decode time therefore grows with tile count, even though peak memory falls.
Seams and texture discontinuities
The blend is a linear crossfade across the 64 px overlap. It hides hard edges well, but the decoder in each tile sees a different receptive field. Large flat gradients such as skies and walls can show faint banding where tiles meet, and fine repeating texture can shift slightly. Larger overlaps reduce this. Smaller tiles make it worse.
Temporal tiling is riskier than spatial
For VAEs that tile in time (HunyuanVideo, LTX, and ComfyUI’s generic node), each temporal chunk starts with less history. Too small a temporal_overlap can cause a visible pulse at chunk boundaries. If a clip “breathes” every 2–3 seconds, look at the temporal overlap before anything else.
A starting configuration for 12–16 GB cards
- Keep the models apart: unload or offload the diffusion transformer and text encoder before decoding. On small cards that frees more memory than any tile setting.
- Spatial first: on a Wan-family VAE, enable spatial tiling and keep the 256/192 defaults. Only lower the tile size if you still hit OOM.
- Overlap at least a quarter of the tile: ComfyUI’s node already caps overlap at tile_size/4. Stay near that ratio to avoid seams.
- Temporal tiles as large as fit: for HunyuanVideo or LTX, raise the temporal tile before shrinking the spatial tile.
- Decode in BF16: it halves activation and output memory compared with FP32. ComfyUI’s loader lists BF16 among the working dtypes for its video VAEs.
For context on how far optimizations can go, CogVideo’s README says that with CPU offload, VAE slicing and VAE tiling enabled, CogVideoX-5B runs “from 5GB” in diffusers. Disabling these optimizations raises peak memory to about three times the table value. That figure covers all the optimizations combined, not tiling alone. Wan’s README lists 8.19 GB for the 1.3B text-to-video model, which shows that small checkpoints plus a causal VAE are workable on mainstream cards.
Pros & Cons of tiled VAE decoding
Pros
- It removes the most common last-step OOM on 12–16 GB GPUs.
- It is built into diffusers (
vae.enable_tiling()) and ComfyUI, with no retraining. - Causal VAEs such as Wan’s already bound temporal memory, so spatial tiling alone is often enough.
Cons
- Overlap means repeated work. Decode time grows with tile count.
- Faint seams can appear in flat gradients and fine textures.
- Temporal tiling can add periodic pulsing if the overlap is too small.
- Defaults differ between libraries, so results do not carry over directly between ComfyUI and diffusers.
FAQ
Does tiling reduce quality?
Slightly, at tile boundaries. With overlaps of about 25% of the tile size, most seams are not visible in motion. Flat gradients are the most sensitive area.
Why does my job OOM at decode when sampling worked?
The transformer works on a compressed latent. The decoder rebuilds full-resolution activations for every frame. Wan 2.2’s TI2V-5B VAE compresses 4×16×16 and LTX-Video’s 32×32×8, so the decoder expands the data by the same factors.
Is VAE slicing the same as tiling?
No. In diffusers, slicing splits a batch of videos and decodes one at a time. It does not help with a single video. Tiling splits each frame spatially.
What tile size should I use on 12 GB?
Start with the library default (256 px for Wan and HunyuanVideo in diffusers, 512 px in ComfyUI). Lower it in 64 px steps only after offloading the transformer and switching to BF16.
Can I tile encoding too?
Yes. diffusers and ComfyUI both support tiled encoding for image-to-video and video-to-video inputs, with the same seam trade-offs.
Let the server handle the decode
If your card is spending more time retrying than rendering, a hosted studio gets you finished clips without the memory tuning.
See the hosted option →