r/comfyui • u/sdiazlor • 1d ago
News New 'Decoding Without a Decoder' (DWD) implementation for Qwen-Image-2.1-Turbo and FLUX.2 [klein] 4B, 1.35x faster, ~24 GB less peak memory
Hey! We're open-sourcing two new image-generation models that produce images without decoders, inspired by "Decoding Without a Decoder" (DWD) by Chen et al.
ComfyUI: https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD-Comfy · https://huggingface.co/PrunaAI/P-Flux-2-Klein-4B-DWD-Comfy
- The flux version is 1.35x faster end-to-end, while the qwen version now needs about 24 GB less peak memory at 2K.
-With the same prompt and seed, you get almost the same image as with the VAE decode, with the color and tone unchanged; only the finest textures get slightly softer.
- Every step before the last one runs the stock model, unchanged. At the last step, a fine-tuned copy of the transformer's last 4 blocks and a small linear head write the pixels, so the VAE decode is skipped.
7
u/Time-Teaching1926 1d ago
Please can you make for Krea 2 Turbo
4
u/Next_Program90 1d ago
O M G - I HAVE TO CHECK THIS OUT!
If it works well, can you create a Version for H3 Image?
1
u/sci032 1d ago
Nice! Thank you! A tip: if you put an empty .png in the image loader, the edit workflow works as a T2I workflow. It ignores the image and just uses the prompt. 😄
1
u/Next_Program90 4h ago
UPDATE:
For editing it does NOT work as implied. The color shift (with and without color match) Is VERY noticeable (sharpening too).
Apparently Vae encoding already fks the image enough.