Text-to-Image
Diffusers
English
image-editing
SVDQuant
Qwen-Image-Edit
Diffusion
Quantization
ICLR2025
Instructions to use nunchaku-ai/nunchaku-qwen-image-edit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use nunchaku-ai/nunchaku-qwen-image-edit with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("nunchaku-ai/nunchaku-qwen-image-edit", dtype=torch.bfloat16, device_map="cuda") prompt = "Astronaut in a jungle, cold color palette, muted colors, detailed, 8k" image = pipe(prompt).images[0] - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Draw Things
- DiffusionBee
Upload ./README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -46,18 +46,59 @@ No recent news. Stay tuned for updates!
|
|
| 46 |
|
| 47 |
### Model Files
|
| 48 |
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
### Model Sources
|
|
@@ -65,7 +106,7 @@ No recent news. Stay tuned for updates!
|
|
| 65 |
- **Inference Engine:** [nunchaku](https://github.com/nunchaku-tech/nunchaku)
|
| 66 |
- **Quantization Library:** [deepcompressor](https://github.com/nunchaku-tech/deepcompressor)
|
| 67 |
- **Paper:** [SVDQuant: Absorbing Outliers by Low-Rank Components for 4-Bit Diffusion Models](http://arxiv.org/abs/2411.05007)
|
| 68 |
-
- **Demo:** [
|
| 69 |
|
| 70 |
## Usage
|
| 71 |
|
|
|
|
| 46 |
|
| 47 |
### Model Files
|
| 48 |
|
| 49 |
+
**Data Type**: `INT4` for non-Blackwell GPUs (pre-50-series), `NVFP4` for Blackwell GPUs (50-series).
|
| 50 |
+
**Rank**: `r32` for faster inference, `r128` for better quality but slower inference.
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
### Base Models
|
| 57 |
+
|
| 58 |
+
Standard inference speed models for general use
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
| Data Type | Rank | Model Name | Comment |
|
| 62 |
+
|-----------|------|----------|---------|
|
| 63 |
+
| INT4 | r32 | [`svdq-int4_r32-qwen-image-edit.safetensors`](./svdq-int4_r32-qwen-image-edit.safetensors) | |
|
| 64 |
+
| | r128 | [`svdq-int4_r128-qwen-image-edit.safetensors`](./svdq-int4_r128-qwen-image-edit.safetensors) | |
|
| 65 |
+
| NVFP4 | r32 | [`svdq-fp4_r32-qwen-image-edit.safetensors`](./svdq-fp4_r32-qwen-image-edit.safetensors) | |
|
| 66 |
+
| | r128 | [`svdq-fp4_r128-qwen-image-edit.safetensors`](./svdq-fp4_r128-qwen-image-edit.safetensors) | |
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
### 4-Step Distilled Models
|
| 73 |
+
|
| 74 |
+
4-step distilled models fused with [Qwen-Image-Edit-Lightning-4steps-V1.0 LoRA](https://huggingface.co/lightx2v/Qwen-Image-Lightning/blob/main/Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors) using LoRA strength = 1.0
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
| Data Type | Rank | Model Name | Comment |
|
| 78 |
+
|-----------|------|----------|---------|
|
| 79 |
+
| INT4 | r32 | [`svdq-int4_r32-qwen-image-edit-lightningv1.0-4steps.safetensors`](./svdq-int4_r32-qwen-image-edit-lightningv1.0-4steps.safetensors) | Fused with [Qwen-Image-Edit-Lightning-4steps-V1.0 LoRA](https://huggingface.co/lightx2v/Qwen-Image-Lightning/blob/main/Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors) |
|
| 80 |
+
| | r128 | [`svdq-int4_r128-qwen-image-edit-lightningv1.0-4steps.safetensors`](./svdq-int4_r128-qwen-image-edit-lightningv1.0-4steps.safetensors) | Fused with [Qwen-Image-Edit-Lightning-4steps-V1.0 LoRA](https://huggingface.co/lightx2v/Qwen-Image-Lightning/blob/main/Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors). Better quality, slower inference |
|
| 81 |
+
| NVFP4 | r32 | [`svdq-fp4_r32-qwen-image-edit-lightningv1.0-4steps.safetensors`](./svdq-fp4_r32-qwen-image-edit-lightningv1.0-4steps.safetensors) | Fused with [Qwen-Image-Edit-Lightning-4steps-V1.0 LoRA](https://huggingface.co/lightx2v/Qwen-Image-Lightning/blob/main/Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors) |
|
| 82 |
+
| | r128 | [`svdq-fp4_r128-qwen-image-edit-lightningv1.0-4steps.safetensors`](./svdq-fp4_r128-qwen-image-edit-lightningv1.0-4steps.safetensors) | Fused with [Qwen-Image-Edit-Lightning-4steps-V1.0 LoRA](https://huggingface.co/lightx2v/Qwen-Image-Lightning/blob/main/Qwen-Image-Edit-Lightning-4steps-V1.0-bf16.safetensors). Better quality, slower inference |
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
### 8-Step Distilled Models
|
| 89 |
+
|
| 90 |
+
8-step distilled models fused with [Qwen-Image-Edit-Lightning-8steps-V1.0 LoRA](https://huggingface.co/lightx2v/Qwen-Image-Lightning/blob/main/Qwen-Image-Edit-Lightning-8steps-V1.0-bf16.safetensors) using LoRA strength = 1.0
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
| Data Type | Rank | Model Name | Comment |
|
| 94 |
+
|-----------|------|----------|---------|
|
| 95 |
+
| INT4 | r32 | [`svdq-int4_r32-qwen-image-edit-lightningv1.0-8steps.safetensors`](./svdq-int4_r32-qwen-image-edit-lightningv1.0-8steps.safetensors) | Fused with [Qwen-Image-Edit-Lightning-8steps-V1.0 LoRA](https://huggingface.co/lightx2v/Qwen-Image-Lightning/blob/main/Qwen-Image-Edit-Lightning-8steps-V1.0-bf16.safetensors) |
|
| 96 |
+
| | r128 | [`svdq-int4_r128-qwen-image-edit-lightningv1.0-8steps.safetensors`](./svdq-int4_r128-qwen-image-edit-lightningv1.0-8steps.safetensors) | Fused with [Qwen-Image-Edit-Lightning-8steps-V1.0 LoRA](https://huggingface.co/lightx2v/Qwen-Image-Lightning/blob/main/Qwen-Image-Edit-Lightning-8steps-V1.0-bf16.safetensors). Better quality, slower inference |
|
| 97 |
+
| NVFP4 | r32 | [`svdq-fp4_r32-qwen-image-edit-lightningv1.0-8steps.safetensors`](./svdq-fp4_r32-qwen-image-edit-lightningv1.0-8steps.safetensors) | Fused with [Qwen-Image-Edit-Lightning-8steps-V1.0 LoRA](https://huggingface.co/lightx2v/Qwen-Image-Lightning/blob/main/Qwen-Image-Edit-Lightning-8steps-V1.0-bf16.safetensors) |
|
| 98 |
+
| | r128 | [`svdq-fp4_r128-qwen-image-edit-lightningv1.0-8steps.safetensors`](./svdq-fp4_r128-qwen-image-edit-lightningv1.0-8steps.safetensors) | Fused with [Qwen-Image-Edit-Lightning-8steps-V1.0 LoRA](https://huggingface.co/lightx2v/Qwen-Image-Lightning/blob/main/Qwen-Image-Edit-Lightning-8steps-V1.0-bf16.safetensors). Better quality, slower inference |
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
|
| 102 |
|
| 103 |
|
| 104 |
### Model Sources
|
|
|
|
| 106 |
- **Inference Engine:** [nunchaku](https://github.com/nunchaku-tech/nunchaku)
|
| 107 |
- **Quantization Library:** [deepcompressor](https://github.com/nunchaku-tech/deepcompressor)
|
| 108 |
- **Paper:** [SVDQuant: Absorbing Outliers by Low-Rank Components for 4-Bit Diffusion Models](http://arxiv.org/abs/2411.05007)
|
| 109 |
+
- **Demo:** [demo.nunchaku.tech](https://demo.nunchaku.tech)
|
| 110 |
|
| 111 |
## Usage
|
| 112 |
|