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
File size: 1,473 Bytes
baa0a0e 85e2c6a baa0a0e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | [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"]
|