Text Generation
Transformers
Safetensors
English
qwen3
prompt-engineering
image-generation
z-image
z-image-turbo
text-encoder
comfyui
lm-studio
conversational
text-generation-inference
Instructions to use BennyDaBall/Z-Image-Engineer-V6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BennyDaBall/Z-Image-Engineer-V6 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BennyDaBall/Z-Image-Engineer-V6") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BennyDaBall/Z-Image-Engineer-V6") model = AutoModelForCausalLM.from_pretrained("BennyDaBall/Z-Image-Engineer-V6") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use BennyDaBall/Z-Image-Engineer-V6 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BennyDaBall/Z-Image-Engineer-V6" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BennyDaBall/Z-Image-Engineer-V6", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BennyDaBall/Z-Image-Engineer-V6
- SGLang
How to use BennyDaBall/Z-Image-Engineer-V6 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "BennyDaBall/Z-Image-Engineer-V6" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BennyDaBall/Z-Image-Engineer-V6", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "BennyDaBall/Z-Image-Engineer-V6" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BennyDaBall/Z-Image-Engineer-V6", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use BennyDaBall/Z-Image-Engineer-V6 with Docker Model Runner:
docker model run hf.co/BennyDaBall/Z-Image-Engineer-V6
| { | |
| "status": "upload_ready_user_approved", | |
| "public_model_name": "Z-Image-Engineer-V6", | |
| "repo_id": "BennyDaBall/Z-Image-Engineer-V6", | |
| "package_kind": "merged_hf_safetensors", | |
| "base_model": "Tongyi-MAI/Z-Image-Turbo/text_encoder", | |
| "tokenizer": "Tongyi-MAI/Z-Image-Turbo/tokenizer", | |
| "files": [ | |
| { | |
| "path": "chat_template.jinja", | |
| "size_bytes": 4256, | |
| "size_gib": 0, | |
| "sha256": "51FA65C79BB57F058DC7EF8734884BD325FE9D45BB03A61BFEF59785D3BC2DA9", | |
| "last_write_time": "2026-06-05T13:35:46" | |
| }, | |
| { | |
| "path": "config.json", | |
| "size_bytes": 1662, | |
| "size_gib": 0, | |
| "sha256": "FABBE298983E905E68B64645E76712189C07776F6D4124648B09C66FA8F6E9CB", | |
| "last_write_time": "2026-06-05T13:35:41" | |
| }, | |
| { | |
| "path": "evidence/gallery_z_image_engineer_v6_simple_ab_with_rewrites_CONTACT.png", | |
| "size_bytes": 6174098, | |
| "size_gib": 0.006, | |
| "sha256": "D8AD1C43FD8C76F1EBDAD11C85D494A474F9CFE9F83AF5F72F590AE3852315A2", | |
| "last_write_time": "2026-06-05T23:31:26" | |
| }, | |
| { | |
| "path": "generation_config.json", | |
| "size_bytes": 199, | |
| "size_gib": 0, | |
| "sha256": "4667A99763A8A867921429B113A4BDC0E9942D878A51C95F673CCD12355C471D", | |
| "last_write_time": "2026-06-05T13:35:46" | |
| }, | |
| { | |
| "path": "model.safetensors.index.json", | |
| "size_bytes": 33261, | |
| "size_gib": 0, | |
| "sha256": "646973887378A236D3CF81292DE5CD631218B940EC0AECF03A16F57890572EFC", | |
| "last_write_time": "2026-06-05T13:35:46" | |
| }, | |
| { | |
| "path": "model-00001-of-00003.safetensors", | |
| "size_bytes": 3981503976, | |
| "size_gib": 3.708, | |
| "sha256": "C4D12692AE5CEFA9B7E61C2A581062F6B4B06183165EB2BCEEE9E11F26B82308", | |
| "last_write_time": "2026-06-05T13:35:43" | |
| }, | |
| { | |
| "path": "model-00002-of-00003.safetensors", | |
| "size_bytes": 3961229704, | |
| "size_gib": 3.689, | |
| "sha256": "93A4CAF2F35B815178DB5CE43C9FD5E06E3EF836F5CBEEE7C690961D95DA653B", | |
| "last_write_time": "2026-06-05T13:35:46" | |
| }, | |
| { | |
| "path": "model-00003-of-00003.safetensors", | |
| "size_bytes": 102247928, | |
| "size_gib": 0.095, | |
| "sha256": "4B3EF3D52BCAD649213FD2035D94DF48CBF2FD670250EC1FD8E1748072ECDBF2", | |
| "last_write_time": "2026-06-05T13:35:46" | |
| }, | |
| { | |
| "path": "README.md", | |
| "size_bytes": 6895, | |
| "size_gib": 0, | |
| "sha256": "AF0D74388A53EF4A9B37CF98B05922F1D5D3A888C1C6BBB95D883D89AC423760", | |
| "last_write_time": "2026-06-06T01:54:57" | |
| }, | |
| { | |
| "path": "tokenizer.json", | |
| "size_bytes": 11422650, | |
| "size_gib": 0.011, | |
| "sha256": "BE75606093DB2094D7CD20F3C2F385C212750648BD6EA4FB2BF507A6A4C55506", | |
| "last_write_time": "2026-06-05T13:35:46" | |
| }, | |
| { | |
| "path": "tokenizer_config.json", | |
| "size_bytes": 724, | |
| "size_gib": 0, | |
| "sha256": "154E5FF1E7C152D964EDF30DA854EA62465C767719AC8E97E58BABF2D4FA9079", | |
| "last_write_time": "2026-06-05T13:35:46" | |
| }, | |
| { | |
| "path": "V6_SYSTEM_PROMPT.md", | |
| "size_bytes": 1617, | |
| "size_gib": 0, | |
| "sha256": "34126E2486E389F28C11693C2E51641199FB5B53E3E7D6BFA75A6E967C11D3CF", | |
| "last_write_time": "2026-05-30T07:33:27" | |
| } | |
| ], | |
| "ggufs": [ | |
| ], | |
| "evidence": [ | |
| { | |
| "path": "evidence/gallery_z_image_engineer_v6_simple_ab_with_rewrites_CONTACT.png", | |
| "size_bytes": 6174098, | |
| "size_gib": 0.006, | |
| "sha256": "D8AD1C43FD8C76F1EBDAD11C85D494A474F9CFE9F83AF5F72F590AE3852315A2", | |
| "last_write_time": "2026-06-05T23:31:26" | |
| } | |
| ], | |
| "generated_at_local": "2026-06-06T01:55:59", | |
| "upload_approved_by_user": true | |
| } | |