Text-to-Image
Pruna AI
English
qwen
qwen-image
image-generation
image-editing
decoder-free
vae-free
dwd
Run this model with HF Jobs
Run PrunaAI/P-Q-Image-2.1-DWD on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use PrunaAI/P-Q-Image-2.1-DWD with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Pruna AI
How to use PrunaAI/P-Q-Image-2.1-DWD with Pruna AI:
from pruna import PrunaModel model = PrunaModel.from_pretrained("PrunaAI/P-Q-Image-2.1-DWD") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files65 unmodified lines66676869707172184 unmodified lines25725825926026126226317 unmodified lines28128228328428528628728828929029129229329429529665 unmodified lines**Built with Qwen.****P-Q-Image-2.1-DWD** is a decoder-free pixel head for[`Qwen/Qwen-Image-2.1-Turbo`](https://huggingface.co/Qwen/Qwen-Image-2.1-Turbo). At the last of the model's 8sampling steps, a fine-tuned copy of the transformer's last 4 blocks and a small linear head write the image's pixelsdirectly, so the last Euler step and the VAE decode never run. Steps 1 to 7 are the stock model, unchanged. It is ourreplication of DWD, *Decoding Without a Decoder* by Chen et al.184 unmodified lines- **Steps 1 to 7** run on the stock Qwen-Image-2.1-Turbo, unchanged: the same noise, sigmas, prefix KV cache andEuler updates as the stock pipeline, so every latent up to the last step is the stock one.- **Last step.** The stock input embeddings and first 28 blocks run as usual. A fine-tuned copy of the last 4 blocks,with its own time embedding, modulation and output norm, takes over on the whole sequence (text and condition-imagetokens included).- **Head.** A `Linear(4096 → 768)` turns each image token into a 16 × 16 pixel tile in normalized Oklab, which isconverted to sRGB. No output projection, no last Euler step, no VAE decode.17 unmodified lines- **LoRAs are untested.** A LoRA on the last 4 blocks, the time embedding, the modulation or the output norm will notcarry over to the last step.- **Benchmarked on one B200** with bf16 and batch size 1; speed and memory vary with hardware, resolution, batchsize and software.## What this is not- Not a standalone model. It needs the `Qwen/Qwen-Image-2.1-Turbo` base weights.- Not a faster transformer. All 8 steps still run through the transformer; the saving is mainly the VAE decode.- Not a VAE decoder for other models or for arbitrary latents.- Not a drop-in for the stock diffusers `QwenImage21Pipeline`; use `DWDPipeline` from this repository, or the[ComfyUI version](https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD-Comfy), whose images are close to, butnot identical with, this package's.## License65 unmodified lines66676869707172184 unmodified lines25725825926026126226317 unmodified lines28128228328428528628765 unmodified lines**Built with Qwen.****P-Q-Image-2.1-DWD** is a decoder-free pixel head for[`Qwen/Qwen-Image-2.1-Turbo`](https://huggingface.co/Qwen/Qwen-Image-2.1-Turbo). At the end of the model's 8sampling steps, a fine-tuned copy of the transformer's last 4 blocks and a small linear head write the image's pixelsdirectly, so the last Euler step and the VAE decode never run. Steps 1 to 7 are the stock model, unchanged. It is ourreplication of DWD, *Decoding Without a Decoder* by Chen et al.184 unmodified lines- **Steps 1 to 7** run on the stock Qwen-Image-2.1-Turbo, unchanged: the same noise, sigmas, prefix KV cache andEuler updates as the stock pipeline, so every latent up to the last step is the stock one.- **Last step.** The stock input embeddings and first 28 blocks run as usual. A fine-tuned copy of the last 4 blocks,with its own time embedding, modulation, and output norm, takes over on the whole sequence (text and condition-imagetokens included).- **Head.** A `Linear(4096 → 768)` turns each image token into a 16 × 16 pixel tile in normalized Oklab, which isconverted to sRGB. No output projection, no last Euler step, no VAE decode.17 unmodified lines- **LoRAs are untested.** A LoRA on the last 4 blocks, the time embedding, the modulation or the output norm will notcarry over to the last step.- **Benchmarked on one B200** with bf16 and batch size 1; speed and memory vary with hardware, resolution, batchsize, and software.## License
README.md+3-12