Views
No views yet
Qwen/Qwen-Image-Edit-2509nunchaku-ai/nunchaku-qwen-image-edit-2509lightning-251115/svdq-int4_r32-qwen-image-edit-2509-lightning-4steps-251115.safetensorsQwen-Image-Edit-2509-Lightning-4steps-V1.0quant_method: nunchaku_liteint46432720120quant_method: bitsandbytesload_in_4bit: truebnb_4bit_quant_type: nf4bnb_4bit_compute_dtype: bfloat16base_shift = max_shift = log(3).| Checkpoint | Latency | Max VRAM |
|---|---|---|
| Converted Diffusers Nunchaku Lite INT4 r32 + BNB4 text encoder | 12.60 s | 21.21 GiB |
| Original Nunchaku INT4 r32 safetensors | 11.27 s | 35.13 GiB |
nunchaku-ai/nunchaku-qwen-image-edit-2509/lightning-251115/svdq-int4_r32-qwen-image-edit-2509-lightning-4steps-251115.safetensors loaded through the native Nunchaku transformer after patching native precision selection to use the checkpoint filename.
1import torch
2from PIL import Image
3from diffusers import QwenImageEditPlusPipeline
4
5model_path = "lite-infer/qwen-image-edit-2509-lightning-4steps-nunchaku-lite-int4_r32-bnb4-text-encoder"
6image_path = "input.png"
7output_path = "output.png"
8
9pipe = QwenImageEditPlusPipeline.from_pretrained(model_path, torch_dtype=torch.bfloat16)
10pipe.to("cuda")
11
12image = Image.open(image_path).convert("RGB")
13prompt = "Change the image to watercolor style."
14
15result = pipe(
16 image=image,
17 prompt=prompt,
18 generator=torch.Generator(device="cuda").manual_seed(1),
19 true_cfg_scale=1.0,
20 num_inference_steps=4,
21 num_images_per_prompt=1,
22)
23
24result.images[0].save(output_path)