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, AutoModelForMultimodalLM tokenizer = AutoTokenizer.from_pretrained("BennyDaBall/Z-Image-Engineer-V6") model = AutoModelForMultimodalLM.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
File size: 1,127 Bytes
c8fcd3f 496b168 c8fcd3f | 1 2 3 4 5 6 7 8 9 10 11 12 13 | 51FA65C79BB57F058DC7EF8734884BD325FE9D45BB03A61BFEF59785D3BC2DA9 chat_template.jinja
FABBE298983E905E68B64645E76712189C07776F6D4124648B09C66FA8F6E9CB config.json
D8AD1C43FD8C76F1EBDAD11C85D494A474F9CFE9F83AF5F72F590AE3852315A2 evidence/gallery_z_image_engineer_v6_simple_ab_with_rewrites_CONTACT.png
4667A99763A8A867921429B113A4BDC0E9942D878A51C95F673CCD12355C471D generation_config.json
646973887378A236D3CF81292DE5CD631218B940EC0AECF03A16F57890572EFC model.safetensors.index.json
C4D12692AE5CEFA9B7E61C2A581062F6B4B06183165EB2BCEEE9E11F26B82308 model-00001-of-00003.safetensors
93A4CAF2F35B815178DB5CE43C9FD5E06E3EF836F5CBEEE7C690961D95DA653B model-00002-of-00003.safetensors
4B3EF3D52BCAD649213FD2035D94DF48CBF2FD670250EC1FD8E1748072ECDBF2 model-00003-of-00003.safetensors
AF0D74388A53EF4A9B37CF98B05922F1D5D3A888C1C6BBB95D883D89AC423760 README.md
BE75606093DB2094D7CD20F3C2F385C212750648BD6EA4FB2BF507A6A4C55506 tokenizer.json
154E5FF1E7C152D964EDF30DA854EA62465C767719AC8E97E58BABF2D4FA9079 tokenizer_config.json
34126E2486E389F28C11693C2E51641199FB5B53E3E7D6BFA75A6E967C11D3CF V6_SYSTEM_PROMPT.md
|