Instructions to use csssss/com2ai-zimage-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Diffusers
How to use csssss/com2ai-zimage-gguf with Diffusers:
pip install -U diffusers transformers accelerate
import torch from diffusers import DiffusionPipeline # switch to "mps" for apple devices pipe = DiffusionPipeline.from_pretrained("csssss/com2ai-zimage-gguf", 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
Upload transformer/config.json
Browse files- transformer/config.json +63 -0
transformer/config.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_class_name": "ZImageTransformer2DModel",
|
| 3 |
+
"_diffusers_version": "0.36.0.dev0",
|
| 4 |
+
"_name_or_path": "Tongyi-MAI/Z-Image-Turbo",
|
| 5 |
+
"all_f_patch_size": [
|
| 6 |
+
1
|
| 7 |
+
],
|
| 8 |
+
"all_patch_size": [
|
| 9 |
+
2
|
| 10 |
+
],
|
| 11 |
+
"axes_dims": [
|
| 12 |
+
32,
|
| 13 |
+
48,
|
| 14 |
+
48
|
| 15 |
+
],
|
| 16 |
+
"axes_lens": [
|
| 17 |
+
1536,
|
| 18 |
+
512,
|
| 19 |
+
512
|
| 20 |
+
],
|
| 21 |
+
"cap_feat_dim": 2560,
|
| 22 |
+
"dim": 3840,
|
| 23 |
+
"in_channels": 16,
|
| 24 |
+
"n_heads": 30,
|
| 25 |
+
"n_kv_heads": 30,
|
| 26 |
+
"n_layers": 30,
|
| 27 |
+
"n_refiner_layers": 2,
|
| 28 |
+
"norm_eps": 1e-05,
|
| 29 |
+
"qk_norm": true,
|
| 30 |
+
"quantization_config": {
|
| 31 |
+
"add_skip_keys": true,
|
| 32 |
+
"dequantize_fp32": false,
|
| 33 |
+
"group_size": -1,
|
| 34 |
+
"is_integer": true,
|
| 35 |
+
"is_training": false,
|
| 36 |
+
"modules_dtype_dict": {},
|
| 37 |
+
"modules_to_not_convert": [
|
| 38 |
+
"layers.0.adaLN_modulation.0.weight",
|
| 39 |
+
"all_x_embedder",
|
| 40 |
+
"t_embedder",
|
| 41 |
+
"cap_embedder",
|
| 42 |
+
"all_final_layer"
|
| 43 |
+
],
|
| 44 |
+
"non_blocking": false,
|
| 45 |
+
"quant_conv": false,
|
| 46 |
+
"quant_method": "sdnq",
|
| 47 |
+
"quantization_device": "xpu",
|
| 48 |
+
"quantized_matmul_dtype": null,
|
| 49 |
+
"return_device": "cpu",
|
| 50 |
+
"sdnq_version": "0.1.2",
|
| 51 |
+
"svd_rank": 32,
|
| 52 |
+
"svd_steps": 8,
|
| 53 |
+
"use_grad_ckpt": true,
|
| 54 |
+
"use_quantized_matmul": false,
|
| 55 |
+
"use_quantized_matmul_conv": false,
|
| 56 |
+
"use_static_quantization": true,
|
| 57 |
+
"use_stochastic_rounding": false,
|
| 58 |
+
"use_svd": false,
|
| 59 |
+
"weights_dtype": "int8"
|
| 60 |
+
},
|
| 61 |
+
"rope_theta": 256.0,
|
| 62 |
+
"t_scale": 1000.0
|
| 63 |
+
}
|