Views
No views yet
Qwen/Qwen-Image-Edit-2509nunchaku-ai/nunchaku-qwen-image-edit-2509svdq-int4_r32-qwen-image-edit-2509.safetensorsquant_method: nunchaku_liteint46432720120quant_method: bitsandbytesload_in_4bit: truebnb_4bit_quant_type: nf4bnb_4bit_compute_dtype: bfloat16| Checkpoint | Latency | Max VRAM |
|---|---|---|
| Converted Diffusers Nunchaku Lite INT4 r32 + BNB4 text encoder | - | 21.20 GiB |
| Original Nunchaku INT4 r32 safetensors | - | - |
nunchaku-ai/nunchaku-qwen-image-edit-2509/svdq-int4_r32-qwen-image-edit-2509.safetensors loaded through the native Nunchaku transformer. It failed before inference on this runtime with an AssertionError in patch_scale_key while checking checkpoint dtype compatibility.
1import torch
2from PIL import Image
3from diffusers import QwenImageEditPlusPipeline
4
5model_path = "lite-infer/qwen-image-edit-2509-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=4.0,
20 negative_prompt=" ",
21 num_inference_steps=40,
22 guidance_scale=1.0,
23 num_images_per_prompt=1,
24)
25
26result.images[0].save(output_path)