Image-to-Image
Diffusers
Safetensors
ZenImageEditPipeline
text-to-image
image-editing
qwen-image
text-encoder
adapter
Instructions to use AiArtLab/zen-image-edit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use AiArtLab/zen-image-edit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline from diffusers.utils import load_image # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("AiArtLab/zen-image-edit", dtype=torch.bfloat16, device_map="cuda") prompt = "Turn this cat into a dog" input_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png") image = pipe(image=input_image, prompt=prompt).images[0] - Notebooks
- Google Colab
- Kaggle
Commit History
-
load the VAE in fp16 instead of fp32
Verified signature0031670 -
default true_cfg_scale 2.0 -> 1.5
Verified signatureb074c3f -
finetuned VAE decoder: phase-pattern lattice penalty, 5300 steps
Verified signaturea3f1736
-
Support DiffusionPipeline.from_pretrained(repo, trust_remote_code=True)
model_index.json uses the [file, class] form, pipeline.py imports transformer.py relatively so the dynamic-module loader fetches it too, and the transformer class is published on the diffusers module (the stock component loader has no auto_map/trust_remote_code path). Tokenizer resolved from the processor before register_modules, VAE pinned to fp32 on every entry point.8165e1e -
Zen Image Edit: Qwen-Image-2.1 on Qwen3.5-0.8B with a text-fusion adapter inside the DiT
Text encoder replaced (Qwen3-VL-8B -> Qwen3.5-0.8B + 158M adapter), adapter embedded in the transformer as text_fusion before txt_in. Weights fp16 (VAE fp32, 13 files via LFS), 8 example images generated by this pipeline, NOTICE/LICENSE included per the Qwen Research License.3a93d0e