All stories

Pruna AI drops the VAE decoder from image models

Pruna AI open-sourced two image models that output pixels directly from the transformer's final step, skipping the VAE decode to make FLUX.2 [klein] faster and to sharply cut Qwen-Image memory use.

Pruna AI has released P-Flux-2-Klein-4B-DWD and P-Q-Image-2.1-DWD as open source. Both replicate DWD ("Decoding Without a Decoder," Chen et al., 2026). In this method the diffusion transformer predicts pixels instead of a latent at the last sampling step, so the VAE decoder never runs.

The recipe keeps the base model's text encoder, early transformer blocks and sampling schedule. It fine-tunes a copy of the last four transformer blocks for the final step and adds a single linear head. That head maps each token to a 16×16 pixel tile in Oklab color space, which is then converted to sRGB. On FLUX.2 [klein] 4B, the head and color conversion take about 0.5 ms. The VAE decode they replace takes 81 ms.

On one B200 at 1024×1024, the Klein variant runs end to end in 234 ms instead of 316 ms in eager mode (1.35x faster), and in 155 ms instead of 186 ms with torch.compile. It adds 0.55B parameters and is released under Apache 2.0. The Qwen-Image-2.1-Turbo variant is mainly about memory. At 2048×2048 in eager mode, peak activation memory falls from 28.19 GB to 2.71 GB. It is 1.09–1.16x faster, supports image editing, and is released under the Qwen Research License.

The two models differ on quality. Pruna reports 34.8–36.5 dB PSNR against stock VAE output for the Qwen model, but only 25.5 dB for Klein, which was trained on real photos rather than on the base model's outputs. Fine textures such as fur and foliage are where both models differ most from the VAE.

Neither model works on its own. Both were trained at about 1 MP with fixed step counts, and LoRA compatibility has not been tested.

Sources