Text-to-Image
Diffusers
Safetensors
English
Chinese
QwenImage21Pipeline
bitsandbytes
int8
image-generation
image-editing
rgba
8-bit precision
Instructions to use ixim/Image21-INT8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use ixim/Image21-INT8 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-INT8", 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 scripts/__init__.py from ixim/Image21-INT8: direct link, hf CLI and curl.
- Browser
- Download file 364 Bytes
-
https://huggingface.co/ixim/Image21-INT8/resolve/main/scripts/__init__.py
- Command line
-
hf download hf://ixim/Image21-INT8/scripts/__init__.py
-
curl -L -o __init__.py https://huggingface.co/ixim/Image21-INT8/resolve/main/scripts/__init__.py
364 Bytes
| """Reproducible local quantization and release tools.""" | |
| import os | |
| from pathlib import Path | |
| # Keep optional dependency caches writable under a restricted Windows workspace. | |
| ROOT = Path(__file__).resolve().parent.parent | |
| os.environ.setdefault('NUMBA_CACHE_DIR', str(ROOT / '.cache' / 'numba')) | |
| os.environ.setdefault('HF_HOME', str(ROOT / '.cache' / 'huggingface')) | |