Reference only

VAE out of memory after sampling finishes: diagnose decoding separately

Completed sampling still leaves latent data that must be decoded into pixels. A VAE failure after sampling therefore differs from memory exhaustion at the start of sampling.

Symptoms and scope

Completed sampling still leaves latent data that must be decoded into pixels. A VAE failure after sampling therefore differs from memory exhaustion at the start of sampling.

Error fragments for search; IDs, values and filenames may vary:

VAEDecode
VAE decode
out of memory

Source-supported context

Official basic workflows separate KSampler and VAE Decode; video workflows also have their own VAE dependencies. There is no documented universal tile setting for all image and video VAEs. Source 1 Source 2 Source 3

Cases to distinguish

1. Spatial dimensions, frame count or decode batch size creates a peak while latents expand into images.

2. Other models or image branches remain resident during decoding.

3. The final error is actually a VAE compatibility, channel or dtype problem rather than OOM.

Diagnostic sequence

The sequence below is an editorial procedure based on the cited context, not a diagnosis already confirmed for your environment.

Step 1. Keep sampling settings and the report. Confirm that the traceback names VAE decoding rather than upscaling, preview or video encoding.

Step 2. Only if the specific workflow and model support smaller dimensions, fewer frames or a single-image decode, test one supported reduction at a time while keeping the same compatible VAE/model pairing.

Step 3. Try tiled decoding only where this version and VAE support it. Record tile size, overlap and temporal constraints; do not force an image decoder onto unsupported video latents.

Step 4. Inspect unnecessary parallel branches and model residency. If using an author-supported CPU/offload path, also monitor system RAM.

Completion check

Decoding produces valid pixels and the save stage succeeds. Inspect tile boundaries and temporal artifacts as well as process completion.

Limitations and cautions

Tiled and CPU decoding can affect speed, memory and numerical output. No minimum-VRAM benchmark is claimed here.

Original sources

Localization prepared: 2026-09-22. The source-check dates above were inherited from the existing article; this translation does not claim they were all rechecked today. No GPU run, minimum-memory measurement or runtime guarantee is supplied.

Didn't solve it?

Check the next possible cause

The same symptom can come from a different cause. Work through these related entries in order.

  1. CUDA out of memory: separate model loading, sampling and VAE decodingCUDA out of memoryIdentify the stage that requested GPU memory before reducing the workload. Advertised VRAM, weight-file size and the memory available to this particular task are different quantities.
  2. VAE and latent channel mismatch: verify the exact variant, not just its family nameexpected inputAn unexpected channel count or latent dimension calls for checking the model, VAE and latent-construction nodes together. Image and video latents do not all share the same structure.
  3. Black images or invalid colors: separate sampling, VAE and display failuresinvalid value encountered in castCompare the saved artifact with the preview before diagnosing a black image. A black preview and genuinely invalid output pixels are different observations.
Paste your full log into the error finder

Was this page helpful?

Anonymous. Only a yes/no counter is stored; no account, IP address or device details.

Sources & references

Source-reviewed against current official ComfyUI troubleshooting, text-to-image and Wan2.2 workflow pages on 2026-09-25. The diagnostic sequence is editorial guidance, not a site-run GPU test or repair guarantee; the older source-check dates in the body remain historical.

01ComfyUI troubleshooting overviewSource checked: 2026-09-2102Text-to-image workflowSource checked: 2026-09-2103Wan2.2 native workflowsSource checked: 2026-09-21

Report an issue · ce1752c9-6d7d-5411-8e26-eb3f1523e6a6