stable-diffusion.cpp/docs/taesd.md
leejet 2988060a43
Some checks failed
CI / ubuntu-latest-cmake (push) Has been cancelled
CI / ubuntu-latest-cmake-vulkan (push) Has been cancelled
CI / Build and push container images (push) Has been cancelled
CI / macOS-latest-cmake (push) Has been cancelled
CI / windows-latest-cmake (cpu, -DGGML_NATIVE=OFF -DSD_BUILD_SHARED_LIBS=ON -DSD_BUILD_SHARED_GGML_LIB=ON -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON) (push) Has been cancelled
CI / windows-latest-cmake (cuda12, -DSD_CUDA=ON -DSD_BUILD_SHARED_LIBS=ON -DCMAKE_CUDA_ARCHITECTURES='61;70;75;80;86;89;90;100;120' -DCMAKE_CUDA_FLAGS='-Xcudafe "--diag_suppress=177" -Xcudafe "--diag_suppress=550"' -DGGML_NATIVE=OFF -DSD_BUILD_SHARED_GGML_L… (push) Has been cancelled
CI / windows-latest-cmake (vulkan, -DSD_VULKAN=ON -DSD_BUILD_SHARED_LIBS=ON -DGGML_NATIVE=OFF -DSD_BUILD_SHARED_GGML_LIB=ON -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON) (push) Has been cancelled
CI / windows-latest-rocm (push) Has been cancelled
CI / ubuntu-latest-rocm (10.1.0, x64, gfx900;gfx906;gfx908;gfx90a;gfx90c;gfx942;gfx950;gfx1010;gfx1011;gfx1012;gfx1030;gfx1031;gfx1032;gfx1033;gfx1034;gfx1035;gfx1036;gfx1100;gfx1101;gfx1102;gfx1103;gfx1150;gfx1151;gfx1152;gfx1153;gfx1200;gfx1201) (push) Has been cancelled
CI / release (push) Has been cancelled
feat: add TAEQI2.1 support for Qwen Image 2.1 (#2123)
2026-10-11 00:01:18 +08:00

2.2 KiB

Using TAESD to faster decoding

You can use TAESD to accelerate the decoding of latent images by following these steps:

Or curl

curl -L -O https://huggingface.co/madebyollin/taesd/resolve/main/diffusion_pytorch_model.safetensors
  • Specify the model path using the --taesd PATH parameter. example:
sd-cli -m ../models/v1-5-pruned-emaonly.safetensors -p "a lovely cat" --taesd ../models/diffusion_pytorch_model.safetensors

Qwen-Image and wan (TAEHV)

sd.cpp also supports TAEHV (#937), which can be used for Qwen-Image and wan.

  • For Qwen-Image and wan2.1 and wan2.2-A14B, download the wan2.1 tae safetensors weights

    Or curl

    curl -L -O https://github.com/madebyollin/taehv/raw/refs/heads/main/safetensors/taew2_1.safetensors
    
  • For wan2.2-TI2V-5B, use the wan2.2 tae safetensors weights

    Or curl

    curl -L -O https://github.com/madebyollin/taehv/raw/refs/heads/main/safetensors/taew2_2.safetensors
    

Then simply replace the --vae xxx.safetensors with --tae xxx.safetensors in the commands. If it still out of VRAM, add --vae-conv-direct to your command though might be slower.

Qwen Image 2.1 (TAEQI2.1)

For Qwen Image 2.1, use taeqi2_1, which supports 64-channel latents, 16x spatial scaling, and RGBA images.

Download the official safetensors weights directly; no conversion is needed:

curl -L -o taeqi2_1.safetensors https://huggingface.co/madebyollin/taeqi2_1/resolve/main/taeqi2_1.safetensors

Replace --vae PATH with --taesd taeqi2_1.safetensors in the Qwen Image 2.1 examples to use it for encoding and decoding. For previews only, keep --vae PATH and add --taesd taeqi2_1.safetensors --taesd-preview-only --preview tae.