Run this model with HF Jobs
Run INCModel/Z-Image-tiny-for-testing-W4A16-AutoRound on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/INCModel/Z-Image-tiny-for-testing-W4A16-AutoRound. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/INCModel/Z-Image-tiny-for-testing-W4A16-AutoRound on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use INCModel/Z-Image-tiny-for-testing-W4A16-AutoRound 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-W4A16-AutoRound 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-W4A16-AutoRound", 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 folder using huggingface_hub
Browse filesFiles changed (13)
- .gitattributes+1
- model_index.jsonAdded+25
- scheduler/scheduler_config.jsonAdded+18
- text_encoder/config.jsonAdded+36
- text_encoder/model.safetensorsAdded+3
- tokenizer/chat_template.jinjaAdded+89
- tokenizer/tokenizer.jsonAdded+3
- tokenizer/tokenizer_config.jsonAdded+30
- transformer/config.jsonAdded+84
- transformer/diffusion_pytorch_model-00001-of-00001.safetensorsAdded+3
- transformer/quantization_config.jsonAdded+51
- vae/config.jsonAdded+38
- vae/diffusion_pytorch_model.safetensorsAdded+3
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -texttokenizer/tokenizer.json filter=lfs diff=lfs merge=lfs -text
12345678910111213141516171819202122232425{ "_class_name": "ZImagePipeline", "_diffusers_version": "0.38.0.dev0", "_name_or_path": "/workspace/auto-round-tmp/test/tmp/tiny_z_image_model_path", "scheduler": [ "diffusers", "FlowMatchEulerDiscreteScheduler" ], "text_encoder": [ "transformers", "Qwen3Model" ], "tokenizer": [ "transformers", "Qwen2Tokenizer" ], "transformer": [ "diffusers", "ZImageTransformer2DModel" ], "vae": [ "diffusers", "AutoencoderKL" ]}123456789101112131415161718{ "_class_name": "FlowMatchEulerDiscreteScheduler", "_diffusers_version": "0.38.0.dev0", "base_image_seq_len": 256, "base_shift": 0.5, "invert_sigmas": false, "max_image_seq_len": 4096, "max_shift": 1.15, "num_train_timesteps": 1000, "shift": 6.0, "shift_terminal": null, "stochastic_sampling": false, "time_shift_type": "exponential", "use_beta_sigmas": false, "use_dynamic_shifting": false, "use_exponential_sigmas": false, "use_karras_sigmas": false}123456789101112131415161718192021222324252627282930313233343536{ "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}123version https://git-lfs.github.com/spec/v1oid sha256:c06973c797f57275f0d23c191c548ccda69e52ace37072a43e7ca7f0c090d60bsize 1574224241234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{%- if tools %} {{- '<|im_start|>system\n' }} {%- if messages[0].role == 'system' %} {{- messages[0].content + '\n\n' }} {%- endif %} {{- "# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }} {%- for tool in tools %} {{- "\n" }} {{- tool | tojson }} {%- endfor %} {{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}{%- else %} {%- if messages[0].role == 'system' %} {{- '<|im_start|>system\n' + messages[0].content + '<|im_end|>\n' }} {%- endif %}{%- endif %}{%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}{%- for message in messages[::-1] %} {%- set index = (messages|length - 1) - loop.index0 %} {%- if ns.multi_step_tool and message.role == "user" and message.content is string and not(message.content.startswith('<tool_response>') and message.content.endswith('</tool_response>')) %} {%- set ns.multi_step_tool = false %} {%- set ns.last_query_index = index %} {%- endif %}{%- endfor %}{%- for message in messages %} {%- if message.content is string %} {%- set content = message.content %} {%- else %} {%- set content = '' %} {%- endif %} {%- if (message.role == "user") or (message.role == "system" and not loop.first) %} {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }} {%- elif message.role == "assistant" %} {%- set reasoning_content = '' %} {%- if message.reasoning_content is string %} {%- set reasoning_content = message.reasoning_content %} {%- else %} {%- if '</think>' in content %} {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %} {%- set content = content.split('</think>')[-1].lstrip('\n') %} {%- endif %} {%- endif %} {%- if loop.index0 > ns.last_query_index %} {%- if loop.last or (not loop.last and reasoning_content) %} {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content.strip('\n') + '\n</think>\n\n' + content.lstrip('\n') }} {%- else %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- endif %} {%- else %} {{- '<|im_start|>' + message.role + '\n' + content }} {%- endif %} {%- if message.tool_calls %} {%- for tool_call in message.tool_calls %} {%- if (loop.first and content) or (not loop.first) %} {{- '\n' }} {%- endif %} {%- if tool_call.function %} {%- set tool_call = tool_call.function %} {%- endif %} {{- '<tool_call>\n{"name": "' }} {{- tool_call.name }} {{- '", "arguments": ' }} {%- if tool_call.arguments is string %} {{- tool_call.arguments }} {%- else %} {{- tool_call.arguments | tojson }} {%- endif %} {{- '}\n</tool_call>' }} {%- endfor %} {%- endif %} {{- '<|im_end|>\n' }} {%- elif message.role == "tool" %} {%- if loop.first or (messages[loop.index0 - 1].role != "tool") %} {{- '<|im_start|>user' }} {%- endif %} {{- '\n<tool_response>\n' }} {{- content }} {{- '\n</tool_response>' }} {%- if loop.last or (messages[loop.index0 + 1].role != "tool") %} {{- '<|im_end|>\n' }} {%- endif %} {%- endif %}{%- endfor %}{%- if add_generation_prompt %} {{- '<|im_start|>assistant\n' }} {%- if enable_thinking is defined and enable_thinking is false %} {{- '<think>\n\n</think>\n\n' }} {%- endif %}{%- endif %}123version https://git-lfs.github.com/spec/v1oid sha256:7029094cd70eca33e2f5d6837051bd1b63789ebde3c05bcce93b0fb31c094a85size 11422928123456789101112131415161718192021222324252627282930{ "add_prefix_space": false, "backend": "tokenizers", "bos_token": null, "clean_up_tokenization_spaces": false, "eos_token": "<|im_end|>", "errors": "replace", "extra_special_tokens": [ "<|im_start|>", "<|im_end|>", "<|object_ref_start|>", "<|object_ref_end|>", "<|box_start|>", "<|box_end|>", "<|quad_start|>", "<|quad_end|>", "<|vision_start|>", "<|vision_end|>", "<|vision_pad|>", "<|image_pad|>", "<|video_pad|>" ], "is_local": true, "local_files_only": false, "model_max_length": 131072, "pad_token": "<|endoftext|>", "split_special_tokens": false, "tokenizer_class": "Qwen2Tokenizer", "unk_token": null}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ "_class_name": "ZImageTransformer2DModel", "_diffusers_version": "0.38.0.dev0", "_name_or_path": "/workspace/auto-round-tmp/test/tmp/tiny_z_image_model_path/transformer", "all_f_patch_size": [ 1 ], "all_patch_size": [ 2 ], "axes_dims": [ 32, 48, 48 ], "axes_lens": [ 1536, 512, 512 ], "cap_feat_dim": 512, "dim": 256, "in_channels": 16, "n_heads": 2, "n_kv_heads": 2, "n_layers": 1, "n_refiner_layers": 1, "norm_eps": 1e-05, "qk_norm": true, "quantization_config": { "autoround_version": "0.13.0", "batch_size": 1, "bits": 4, "block_name_to_quantize": "noise_refiner.0,context_refiner.0,layers.0", "data_type": "int", "extra_config": { "context_refiner.0.feed_forward.w1": { "bits": 16, "data_type": "fp" }, "context_refiner.0.feed_forward.w2": { "bits": 16, "data_type": "fp" }, "context_refiner.0.feed_forward.w3": { "bits": 16, "data_type": "fp" }, "layers.0.feed_forward.w1": { "bits": 16, "data_type": "fp" }, "layers.0.feed_forward.w2": { "bits": 16, "data_type": "fp" }, "layers.0.feed_forward.w3": { "bits": 16, "data_type": "fp" }, "noise_refiner.0.feed_forward.w1": { "bits": 16, "data_type": "fp" }, "noise_refiner.0.feed_forward.w2": { "bits": 16, "data_type": "fp" }, "noise_refiner.0.feed_forward.w3": { "bits": 16, "data_type": "fp" } }, "group_size": 128, "iters": 1, "nsamples": 1, "packing_format": "auto_round:auto_gptq", "quant_method": "auto-round", "sym": true }, "rope_theta": 256.0, "siglip_feat_dim": null, "t_scale": 1000.0}123version https://git-lfs.github.com/spec/v1oid sha256:abbb4cd14e8ad0a30819ab0162682454102aa09d20f15a0149073655b88d7b10size 5357728123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "bits": 4, "data_type": "int", "group_size": 128, "sym": true, "batch_size": 1, "iters": 1, "nsamples": 1, "autoround_version": "0.13.0", "block_name_to_quantize": "noise_refiner.0,context_refiner.0,layers.0", "quant_method": "auto-round", "packing_format": "auto_round:auto_gptq", "extra_config": { "noise_refiner.0.feed_forward.w1": { "bits": 16, "data_type": "fp" }, "noise_refiner.0.feed_forward.w2": { "bits": 16, "data_type": "fp" }, "noise_refiner.0.feed_forward.w3": { "bits": 16, "data_type": "fp" }, "context_refiner.0.feed_forward.w1": { "bits": 16, "data_type": "fp" }, "context_refiner.0.feed_forward.w2": { "bits": 16, "data_type": "fp" }, "context_refiner.0.feed_forward.w3": { "bits": 16, "data_type": "fp" }, "layers.0.feed_forward.w1": { "bits": 16, "data_type": "fp" }, "layers.0.feed_forward.w2": { "bits": 16, "data_type": "fp" }, "layers.0.feed_forward.w3": { "bits": 16, "data_type": "fp" } }}1234567891011121314151617181920212223242526272829303132333435363738{ "_class_name": "AutoencoderKL", "_diffusers_version": "0.38.0.dev0", "_name_or_path": "/workspace/auto-round-tmp/test/tmp/tiny_z_image_model_path/vae", "act_fn": "silu", "block_out_channels": [ 128, 256, 512, 512 ], "down_block_types": [ "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D", "DownEncoderBlock2D" ], "force_upcast": true, "in_channels": 16, "latent_channels": 16, "latents_mean": null, "latents_std": null, "layers_per_block": 2, "mid_block_add_attention": true, "norm_num_groups": 32, "out_channels": 3, "sample_size": 1024, "scaling_factor": 0.3611, "shift_factor": 0.1159, "up_block_types": [ "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D", "UpDecoderBlock2D" ], "use_post_quant_conv": false, "use_quant_conv": false}123version https://git-lfs.github.com/spec/v1oid sha256:b0a0038b481c6d3325e344eb8aca90e9363ee4dff56c8141296496c98f9bedf3size 167696854.gitattributes+1
model_index.jsonAdded+25
scheduler/scheduler_config.jsonAdded+18
text_encoder/config.jsonAdded+36
text_encoder/model.safetensorsAdded+3
tokenizer/chat_template.jinjaAdded+89
tokenizer/tokenizer.jsonAdded+3
tokenizer/tokenizer_config.jsonAdded+30
transformer/config.jsonAdded+84
transformer/diffusion_pytorch_model-00001-of-00001.safetensorsAdded+3
transformer/quantization_config.jsonAdded+51
vae/config.jsonAdded+38
vae/diffusion_pytorch_model.safetensorsAdded+3