Downloads · 30 days
43
38% of all-time downloads
milan33/Qwen-Image-Edit-2511-INT4-Diffusers
Qwen-Image-Edit-2511-INT4-Diffusers is a image-to-image model from milan33. Use it when you need one image transformed into another. It is set up for diffusers. The card lists the license as apache-2.0.
This repository contains a Diffusers-compatible NF4 (4-bit NormalFloat) quantized version of the Qwen/Qwen-Image-Edit-2511 model.
Downloads · 30 days
43
38% of all-time downloads
All-time downloads
113
Public
Repo size
27.4 GB
Likes
3
Public
Click a slice to open those files.
.safetensors16.6 GB · 60%
From the Hugging Face model README
This repository contains a Diffusers-compatible NF4 (4-bit NormalFloat) quantized version of the Qwen/Qwen-Image-Edit-2511 model.
torch.bfloat16 (weights stored in 4-bit, math done in BF16).QwenImageEditPlusPipeline)..bin (bitsandbytes NF4 tensors require pickle serialization).For detailed model architecture, training details, and evaluations, please refer to the official Qwen/Qwen-Image-Edit-2511 repository.
import torch
from diffusers import BitsAndBytesConfig, QwenImageEditPlusPipeline
from diffusers.utils import load_image
# Runtime NF4 quantization (recommended approach for best compatibility)
quant_config = BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True,
)
pipe = QwenImageEditPlusPipeline.from_pretrained(
"Qwen/Qwen-Image-Edit-2511",
quantization_config=quant_config,
torch_dtype=torch.bfloat16,
)
pipe.enable_model_cpu_offload()
input_image = load_image("https://example.com/input.jpg")
output_image = pipe(
prompt="A realistic tattoo on forearm",
image=[input_image],
num_inference_steps=20,
guidance_scale=4.5,
height=1024,
width=768,
).images[0]
output_image.save("output.png")
This model is released under the Apache License 2.0, consistent with the original Qwen/Qwen-Image-Edit-2511 release.