Instructions to use INCModel/Z-Image-tiny-for-testing with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use INCModel/Z-Image-tiny-for-testing with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("INCModel/Z-Image-tiny-for-testing", 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 text_encoder/config.json from INCModel/Z-Image-tiny-for-testing: direct link, hf CLI and curl.
- Browser
- Download file 812 Bytes
-
https://huggingface.co/INCModel/Z-Image-tiny-for-testing/resolve/7ea4e3dd973685afb1107794666bae64678bd211/text_encoder/config.json
- Command line
-
hf download hf://INCModel/Z-Image-tiny-for-testing@7ea4e3dd973685afb1107794666bae64678bd211/text_encoder/config.json
-
curl -L -o config.json https://huggingface.co/INCModel/Z-Image-tiny-for-testing/resolve/7ea4e3dd973685afb1107794666bae64678bd211/text_encoder/config.json
812 Bytes
| { | |
| "architectures": [ | |
| "Qwen3Model" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 151643, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 151645, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 512, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 256, | |
| "layer_types": [ | |
| "full_attention" | |
| ], | |
| "max_position_embeddings": 32768, | |
| "max_window_layers": 36, | |
| "model_type": "qwen3", | |
| "num_attention_heads": 2, | |
| "num_hidden_layers": 1, | |
| "num_key_value_heads": 2, | |
| "pad_token_id": null, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "rope_theta": 1000000, | |
| "rope_type": "default" | |
| }, | |
| "sliding_window": null, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.6.0", | |
| "use_cache": true, | |
| "use_sliding_window": false, | |
| "vocab_size": 151936 | |
| } | |