generating 4k images in 8GB of VRAM. Tiled VAE decoder splits the image into overlapping tiles, decodes the tiles, and blends the outputs to make the final image.
You want to couple this with enable_attention_slicing() or enable_xformers_memory_efficient_attention() to further minimize memory use.
To use tiled VAE processing, invoke enable_vae_tiling() in your pipeline before inference. For example:


	Copied
import torch
from diffusers import 