π Model Description
license: apache-2.0 base_model:
- Qwen/Qwen-Image-Edit
- gguf-connector
- gguf-node
- text: >-
- text: >-
- text: >-
qwen-image-edit-gguf
- use 8-step (lite-lora auto applied); save up to 70% loading time
- run it with
gguf-connector; simply execute the command below in console/terminal
ggc q6
>
>GGUF file(s) available. Select which one to use:
>
>1. qwen-image-edit-iq4_nl.gguf
>2. qwen-image-edit-q2_k.gguf
>3. qwen-image-edit-q4_0.gguf
>4. qwen-image-edit-q8_0.gguf
>
>Enter your choice (1 to 4): _
>
- opt a
gguffile in your current directory to interact with; nothing else
run it with gguf-node via comfyui
- drag qwen-image-edit to >
./ComfyUI/models/diffusionmodels - *anyone below, drag it to >
./ComfyUI/models/textencoders
- drag pig [254MB] to >
./ComfyUI/models/vae
*note: option 1 (pig quant) is an all-in-one choice; for option 2 (llama.cpp quant), you need to prepare both text-model and mmproj-clip; option 3 (llama.cpp quant) is an experimental attempt, a merge (text+mmproj), similar to option 1, an all-in-one choice also but pig x llama.cpp crossover
run it with diffusers
- might need the most updated diffusers; for i quant support, should after this commit; install the updated git version diffusers by:
pip install git+https://github.com/huggingface/diffusers.git
- see example inference below (edit it if needed):
import torch, os
from diffusers import QwenImageTransformer2DModel, GGUFQuantizationConfig, QwenImageEditPipeline
from diffusers.utils import load_image
modelpath = "https://huggingface.co/calcuis/qwen-image-edit-gguf/blob/main/qwen-image-edit-iq4nl.gguf"
transformer = QwenImageTransformer2DModel.fromsinglefile(
model_path,
quantizationconfig=GGUFQuantizationConfig(computedtype=torch.bfloat16),
torch_dtype=torch.bfloat16,
config="callgg/image-edit-decoder",
subfolder="transformer"
)
pipeline = QwenImageEditPipeline.frompretrained("callgg/image-edit-decoder", transformer=transformer, torchdtype=torch.bfloat16)
print("pipeline loaded")
pipeline.enablemodelcpu_offload()
image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
prompt = "Add a hat to the cat"
inputs = {
"image": image,
"prompt": prompt,
"generator": torch.manual_seed(0),
"truecfgscale": 2.5,
"negative_prompt": " ",
"numinferencesteps": 20,
}
with torch.inference_mode():
output = pipeline(inputs)
output_image = output.images[0]
output_image.save("output.png")
print("image saved at", os.path.abspath("output.png"))
reference
- base model from qwen
- diffusers from huggingface
- comfyui from comfyanonymous
- gguf-node (pypi|repo|pack)
- gguf-connector (pypi)
π GGUF File List
| π Filename | π¦ Size | β‘ Download |
|---|---|---|
|
qwen-image-edit-bf16.gguf
LFS
FP16
|
38.09 GB | Download |
|
qwen-image-edit-f16.gguf
LFS
FP16
|
38.05 GB | Download |
|
qwen-image-edit-iq2_s.gguf
LFS
Q2
|
6.55 GB | Download |
|
qwen-image-edit-iq3_s.gguf
LFS
Q3
|
8.36 GB | Download |
|
qwen-image-edit-iq3_xxs.gguf
LFS
Q3
|
8.36 GB | Download |
|
qwen-image-edit-iq4_nl.gguf
LFS
Q4
|
10.8 GB | Download |
|
qwen-image-edit-iq4_xs.gguf
LFS
Q4
|
10.2 GB | Download |
|
qwen-image-edit-mxfp4_moe.gguf
LFS
|
20.26 GB | Download |
|
qwen-image-edit-q2_k.gguf
LFS
Q2
|
6.59 GB | Download |
|
qwen-image-edit-q2_k_s.gguf
LFS
Q2
|
6.55 GB | Download |
|
qwen-image-edit-q3_k_l.gguf
LFS
Q3
|
8.53 GB | Download |
|
qwen-image-edit-q3_k_m.gguf
LFS
Q3
|
8.47 GB | Download |
|
qwen-image-edit-q3_k_s.gguf
LFS
Q3
|
8.4 GB | Download |
|
qwen-image-edit-q4_0.gguf
Recommended
LFS
Q4
|
11.04 GB | Download |
|
qwen-image-edit-q4_1.gguf
LFS
Q4
|
11.98 GB | Download |
|
qwen-image-edit-q4_k_m.gguf
LFS
Q4
|
10.93 GB | Download |
|
qwen-image-edit-q4_k_s.gguf
LFS
Q4
|
10.8 GB | Download |
|
qwen-image-edit-q5_0.gguf
LFS
Q5
|
13.17 GB | Download |
|
qwen-image-edit-q5_1.gguf
LFS
Q5
|
14.36 GB | Download |
|
qwen-image-edit-q5_k_m.gguf
LFS
Q5
|
13.24 GB | Download |
|
qwen-image-edit-q5_k_s.gguf
LFS
Q5
|
13.17 GB | Download |
|
qwen-image-edit-q6_k.gguf
LFS
Q6
|
15.69 GB | Download |
|
qwen-image-edit-q8_0.gguf
LFS
Q8
|
20.27 GB | Download |
|
qwen-image-edit-tq2_0.gguf
LFS
Q2
|
6.55 GB | Download |
|
qwen2.5-vl-7b-test-q4_0.gguf
LFS
Q4
|
4.69 GB | Download |