Instructions to use KazumaSensei/ZImage with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use KazumaSensei/ZImage with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf KazumaSensei/ZImage:Q8_0 # Run inference directly in the terminal: llama cli -hf KazumaSensei/ZImage:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf KazumaSensei/ZImage:Q8_0 # Run inference directly in the terminal: llama cli -hf KazumaSensei/ZImage:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf KazumaSensei/ZImage:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf KazumaSensei/ZImage:Q8_0
Use Docker
docker model run hf.co/KazumaSensei/ZImage:Q8_0
- Llama new
- LM Studio
- Jan
- Ollama
How to use KazumaSensei/ZImage with Ollama:
ollama run hf.co/KazumaSensei/ZImage:Q8_0
- Unsloth Desktop
- Pi
How to use KazumaSensei/ZImage with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KazumaSensei/ZImage:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "KazumaSensei/ZImage:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use KazumaSensei/ZImage with Docker Model Runner:
docker model run hf.co/KazumaSensei/ZImage:Q8_0
- Lemonade
How to use KazumaSensei/ZImage with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull KazumaSensei/ZImage:Q8_0
Run and chat with the model
lemonade run user.ZImage-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use KazumaSensei/ZImage with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KazumaSensei/ZImage:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default KazumaSensei/ZImage:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use KazumaSensei/ZImage with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf KazumaSensei/ZImage:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "KazumaSensei/ZImage:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Add files using upload-large-folder tool
Browse files
loras/ZIT_D351_L1ght_V1.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c1ef949a89411c824fd9bb8be0c0748943d07871d7f9743333c943af180cac06
|
| 3 |
+
size 170128232
|
loras/ZIT_D351_L1ght_V1.safetensors.txt
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
| 27 |
+
0
|
| 28 |
+
1
|
| 29 |
+
2
|
| 30 |
+
3
|
| 31 |
+
4
|
| 32 |
+
5
|
| 33 |
+
6
|
| 34 |
+
7
|
| 35 |
+
8
|
| 36 |
+
9
|
| 37 |
+
|
| 38 |
+
381
|
| 39 |
+
0
|
| 40 |
+
1
|
| 41 |
+
2
|
| 42 |
+
3
|
| 43 |
+
4
|
| 44 |
+
5
|
| 45 |
+
6
|
| 46 |
+
7
|
| 47 |
+
8
|
| 48 |
+
9
|
| 49 |
+
0
|
| 50 |
+
1
|
| 51 |
+
2
|
| 52 |
+
3
|
| 53 |
+
4
|
| 54 |
+
5
|
| 55 |
+
6
|
| 56 |
+
7
|
| 57 |
+
8
|
| 58 |
+
9
|
| 59 |
+
0
|
| 60 |
+
1
|
| 61 |
+
2
|
| 62 |
+
3
|
| 63 |
+
4
|
| 64 |
+
5
|
| 65 |
+
6
|
| 66 |
+
7
|
| 67 |
+
8
|
| 68 |
+
9
|
| 69 |
+
|
| 70 |
+
774
|
| 71 |
+
0
|
| 72 |
+
1
|
| 73 |
+
2
|
| 74 |
+
3
|
| 75 |
+
4
|
| 76 |
+
5
|
| 77 |
+
6
|
| 78 |
+
7
|
| 79 |
+
8
|
| 80 |
+
9
|
| 81 |
+
0
|
| 82 |
+
1
|
| 83 |
+
2
|
| 84 |
+
3
|
| 85 |
+
4
|
| 86 |
+
5
|
| 87 |
+
6
|
| 88 |
+
7
|
| 89 |
+
8
|
| 90 |
+
9
|
| 91 |
+
0
|
| 92 |
+
1
|
| 93 |
+
2
|
| 94 |
+
3
|
| 95 |
+
4
|
| 96 |
+
5
|
| 97 |
+
6
|
| 98 |
+
7
|
| 99 |
+
8
|
| 100 |
+
9
|
| 101 |
+
|
| 102 |
+
Generation
|
| 103 |
+
Not loaded
|
| 104 |
+
|
| 105 |
+
Reviews
|
| 106 |
+
Positive
|
| 107 |
+
(28)
|
| 108 |
+
|
| 109 |
+
Published
|
| 110 |
+
Jan 30, 2026
|
| 111 |
+
|
| 112 |
+
Base Model
|
| 113 |
+
ZImageTurbo
|
| 114 |
+
|
| 115 |
+
Training
|
| 116 |
+
Steps: 1,500
|
| 117 |
+
Epochs: 35
|
| 118 |
+
Usage Tips
|
| 119 |
+
Clip Skip: 2
|
| 120 |
+
Strength: 0.6
|
| 121 |
+
Hash
|
| 122 |
+
Trigger Words
|
| 123 |
+
d351 l1ght
|
| 124 |
+
AIR
|
| 125 |
+
civitai:
|
| 126 |
+
2349412
|
| 127 |
+
@
|
| 128 |
+
2642504
|
| 129 |
+
+
|
| 130 |
+
3065524
|
| 131 |
+
This model was trained on Z-Image Turbo which otherwise creates 'standard' South Asian faces and skintones.
|
| 132 |
+
|
| 133 |
+
Trigger word:
|
| 134 |
+
|
| 135 |
+
d351 l1ght - lighter skintones
|
| 136 |
+
|
| 137 |
+
Would love to see someone test this out!
|
| 138 |
+
|
loras/zit_stage1_masked_dpo_11100.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4395632e6ed627f7e89a102cf5a6cfbb0ce9f2605994de593ee50e301126d4f7
|
| 3 |
+
size 42662256
|
loras/zit_stage1_masked_dpo_11100.safetensors.txt
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
https://huggingface.co/F16/z-image-turbo-masked-dpo/tree/main?not-for-all-audiences=true
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
Gated model
|
| 5 |
+
|
| 6 |
+
You have been granted access to this model
|
| 7 |
+
|
| 8 |
+
Masked Flow-DPO: Region-Aware Preference Optimization for Flow Matching Models
|
| 9 |
+
|
| 10 |
+
Telegram
|
| 11 |
+
Released Weights (Stage 1)
|
| 12 |
+
|
| 13 |
+
The published LoKR adapter corrects the human anatomy of the Z-Image-Turbo base model. After applying this adapter:
|
| 14 |
+
|
| 15 |
+
Correct body proportions and shapes — limbs, torso, and extremities now have anatomically plausible geometry instead of the deformed outputs the base model produces
|
| 16 |
+
Improved fine details — localized anatomical structures and intimate details are rendered with correct morphology
|
| 17 |
+
No style or composition regression — corrections are spatially masked to the body region; background, lighting, and overall composition remain largely unchanged from the base model
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
Format LoKR (Kronecker low-rank adapter), .safetensors
|
| 21 |
+
Base model Z-Image-Turbo (8-step distilled DiT)
|
| 22 |
+
|
| 23 |
+
Load this adapter on top of Z-Image-Turbo using any LoRA-compatible inference pipeline. No other changes to the base model or sampling config are needed.
|
| 24 |
+
|
| 25 |
+
Masked Flow-DPO is a training framework that extends Flow-DPO (arXiv:2501.13918) with spatial masking, enabling preference optimization to focus on specific image regions rather than optimizing the entire frame globally. This is particularly effective when win/lose image pairs differ only in a localized area (e.g., anatomical correctness, facial details, object quality) while sharing identical backgrounds and composition.
|
| 26 |
+
The Problem: Signal Dilution in Localized Corrections
|
| 27 |
+
|
| 28 |
+
Standard DPO computes MSE loss over the entire latent space. When a win/lose pair differs only in a small region (~5-10% of pixels), the gradient signal from the meaningful difference is overwhelmed by noise from the vast identical area. The optimizer sees a weak, noisy preference signal and struggles to learn the intended correction.
|