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
| """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')) | |