Text-to-Image
Diffusers
Safetensors
English
Chinese
QwenImage21Pipeline
sdnq
int4
uint4
image-generation
image-editing
apple-silicon
8-bit precision
Instructions to use ixim/Image21-INT4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ixim/Image21-INT4 with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("ixim/Image21-INT4", 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
Download conversion.json from ixim/Image21-INT4: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/ixim/Image21-INT4/resolve/main/conversion.json
- Command line
-
hf download hf://ixim/Image21-INT4/conversion.json
-
curl -L -o conversion.json https://huggingface.co/ixim/Image21-INT4/resolve/main/conversion.json
1.08 kB
| { | |
| "base_model": "Qwen/Qwen-Image-2.1", | |
| "base_revision": "b3179ad355be050328e483a9dfdd9e60cd62adfa", | |
| "diffusers_commit": "80c7ed262aeffbeb43ef13ae04baeb9b84515a69", | |
| "method": "sdnq", | |
| "weights_dtype": "uint4", | |
| "use_svd": true, | |
| "svd_rank": 32, | |
| "use_quantized_matmul": false, | |
| "weight_files": [ | |
| { | |
| "path": "text_encoder/model-00001-of-00002.safetensors", | |
| "size": 4986732760, | |
| "sha256": "eb7c22e8c9b5597dbcee68d83f2e44f2eca29e5c942bbd22b4ff1743f293d30d" | |
| }, | |
| { | |
| "path": "text_encoder/model-00002-of-00002.safetensors", | |
| "size": 2737783200, | |
| "sha256": "e586e01002cc266f9794fdb7cfb1ea290a603f45a704ce08058ec15461532b4e" | |
| }, | |
| { | |
| "path": "transformer/diffusion_pytorch_model.safetensors", | |
| "size": 4365385520, | |
| "sha256": "5c83319d84f2f985b289b5c69f0f98fd0a7b68a0b60b25550c36c24c33f32f5a" | |
| }, | |
| { | |
| "path": "vae/diffusion_pytorch_model.safetensors", | |
| "size": 1350989512, | |
| "sha256": "a07a1b7c4ee2966a1b3bdc37de9b4f983d56937e46619f709a80b6e490675417" | |
| } | |
| ] | |
| } |