Instructions to use Rin247/Z-Image with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use Rin247/Z-Image with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("Rin247/Z-Image", 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 README.md from Rin247/Z-Image: direct link, hf CLI and curl.
- Browser
- Download file 1.94 kB
-
https://huggingface.co/Rin247/Z-Image/resolve/main/README.md
- Command line
-
hf download hf://Rin247/Z-Image/README.md
-
curl -L -o README.md https://huggingface.co/Rin247/Z-Image/resolve/main/README.md
1.94 kB
| tags: | |
| - quantized | |
| - safetensors | |
| - diffusers | |
| - mecha | |
| - weight-only | |
| - image | |
| - text-to-image | |
| library_name: diffusers | |
| # Z-Image | |
| Quantised media packages of [Tongyi-MAI/Z-Image](https://huggingface.co/Tongyi-MAI/Z-Image). | |
| ## MECHA Forge | |
| MECHA — Model Engineering & Contextual Hearth Assembly | |
| These media packages have been forged and optimized in the MECHA Forge. | |
| Each one holds the Denoiser, Text Encoder, and VAE components packaged together for easier deployment. | |
| ## Description | |
| Z-Image: undistilled foundation image model. Supports CFG (4.0), negative prompts, LoRA/ControlNet. 28-50 steps. | |
| ## Available quantizations | |
| | Quant | Denoiser | Text encoder | VAE | | |
| |---|---|---|---| | |
| | FP4 | FP4 | FP4 | FP8 | | |
| | FP8 | FP8 | FP8 | FP8 | | |
| | INT4 | INT4 | INT4 | INT8 | | |
| | INT8 | INT8 | INT8 | INT8 | | |
| ## Recommended settings | |
| From the source model card (adjust to taste): | |
| | Parameter | Value | | |
| |---|---| | |
| | Steps | 28-50 | | |
| | CFG / Guidance scale | 3.0-5.0 | | |
| | Resolution | 512-2048 (total pixels) | | |
| | Notes | Supports CFG and negative prompts; good for LoRA/ControlNet | | |
| ## Example prompts | |
| Caught in the moment (candid, slice of life): | |
| ``` | |
| masterpiece, best quality, highres, absurdres, very aesthetic, safe, 1woman, | |
| solo, candid moment, natural lighting. A garden bench under a blooming cherry | |
| tree, petals falling, soft spring light. A 33-year-old woman with an oval face | |
| and brown eyes. She has a graceful build and a gentle smile. She wears a floral | |
| dress and a sun hat, holding a book, mid-read, candid and relaxed. | |
| ``` | |
| Fashion photography (magazine cover style): | |
| ``` | |
| Fashion photography, magazine cover style: a 33-year-old woman with oval face, | |
| brown eyes, and soft lips; wearing a floral maxi dress, straw hat, sandals; | |
| garden backlight, elegant typography, 8K, sharp focus. | |
| ``` | |
| Scenery: | |
| ``` | |
| Scenery: a lavender field in Provence at golden hour, purple rows, stone | |
| farmhouse, soft light, bees, photorealistic, 8K. | |
| ``` | |