Text-to-Image
Pruna AI
English
qwen
qwen-image
image-generation
image-editing
decoder-free
vae-free
dwd
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 pyproject.toml 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/pyproject.toml
- Command line
-
hf download hf://PrunaAI/P-Q-Image-2.1-DWD/pyproject.toml
-
curl -L -o pyproject.toml https://huggingface.co/PrunaAI/P-Q-Image-2.1-DWD/resolve/main/pyproject.toml
1.47 kB
| [build-system] | |
| requires = ["setuptools>=77"] | |
| build-backend = "setuptools.build_meta" | |
| [project] | |
| name = "p-q-image-2-1-dwd" | |
| version = "0.1.0" | |
| description = "Decoding Without a Decoder (DWD) for Qwen-Image-2.1-Turbo: a pixel head that replaces the last step and the VAE decode" | |
| readme = "README.md" | |
| # the code (src/, scripts/, tests/) is Apache-2.0; the weights in this repository are under the Qwen RESEARCH | |
| # LICENSE AGREEMENT (LICENSE). See NOTICE. | |
| license = "Apache-2.0" | |
| license-files = ["LICENSE-APACHE", "NOTICE"] | |
| authors = [{ name = "Pruna AI" }] | |
| requires-python = ">=3.10" | |
| keywords = ["diffusion", "qwen-image", "text-to-image", "image-editing", "vae-free", "dwd"] | |
| classifiers = [ | |
| "Programming Language :: Python :: 3", | |
| "Operating System :: OS Independent", | |
| "Intended Audience :: Science/Research", | |
| "Topic :: Scientific/Engineering :: Artificial Intelligence", | |
| ] | |
| dependencies = [ | |
| "torch>=2.6", | |
| "diffusers==0.41.0", # the tail and the prefix forward use QwenImage21Transformer2DModel internals | |
| "transformers==5.23.0", # Qwen3-VL prompt encoder, as tested | |
| "accelerate", | |
| "safetensors", | |
| "huggingface-hub", | |
| "pillow", | |
| "numpy", | |
| ] | |
| [project.optional-dependencies] | |
| dev = ["pytest"] | |
| [project.urls] | |
| Paper = "https://arxiv.org/abs/2611.22287" | |
| "Base model" = "https://huggingface.co/Qwen/Qwen-Image-2.1-Turbo" | |
| [tool.setuptools.packages.find] | |
| where = ["src"] | |
| [tool.pytest.ini_options] | |
| testpaths = ["tests"] | |
| pythonpath = ["src"] | |