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
Download src/pq_image_dwd/__init__.py from PrunaAI/P-Q-Image-2.1-DWD: direct link, hf CLI and curl.
- Browser
- Download file 1.47 kB
-
https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD/resolve/main/src/pq_image_dwd/__init__.py
- Command line
-
hf download hf://PrunaAI/P-Q-Image-2.1-DWD/src/pq_image_dwd/__init__.py
-
curl -L -o __init__.py https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD/resolve/main/src/pq_image_dwd/__init__.py
1.47 kB
| """DWD ("Decoding Without a Decoder", arXiv 2611.22287) for Qwen-Image-2.1-Turbo: a fine-tuned copy of the | |
| transformer's last 4 blocks plus a Linear(4096 -> 768) pixel head that replaces the last sampler step and the VAE | |
| decode. | |
| Modules: | |
| pipeline DWDPipeline: text-to-image and image editing without the VAE decode | |
| model the trained tail (DWDTail) and the stock-prefix forward it reads | |
| weights tail file reading, checking and export | |
| color normalized Oklab -> sRGB, head patch layout | |
| schedule the turbo checkpoint's 8 sampler sigmas, timestep rounding | |
| encoders Qwen3-VL prompt encoder and VAE wrappers, model download | |
| """ | |
| __version__ = "0.1.0" | |
| from .color import OKLAB_MEAN, OKLAB_STD, head_to_srgb, oklab_norm_to_srgb, patchify, srgb_to_oklab_norm, to_uint8, unpatchify # noqa: E402,E501 | |
| from .model import HEAD_OUT, Cond, DWDTail # noqa: E402 | |
| from .pipeline import DEFAULT_TAIL, SIZES_1MP, SIZES_2K, DWDPipeline # noqa: E402 | |
| from .schedule import SIGMAS, model_timestep # noqa: E402 | |
| from .weights import BASE_REPO, TAIL_FILENAME, export_tail, load_tail, load_tail_file # noqa: E402 | |
| __all__ = [ | |
| "__version__", "OKLAB_MEAN", "OKLAB_STD", "head_to_srgb", "oklab_norm_to_srgb", "patchify", "srgb_to_oklab_norm", | |
| "to_uint8", "unpatchify", "HEAD_OUT", "Cond", "DWDTail", "DEFAULT_TAIL", "SIZES_1MP", "SIZES_2K", "DWDPipeline", | |
| "SIGMAS", "model_timestep", "BASE_REPO", "TAIL_FILENAME", "export_tail", "load_tail", "load_tail_file", | |
| ] | |