SeaWolf-AI commited on
Commit
91c58e3
Β·
verified Β·
1 Parent(s): 52fbb11

Darwin-397B-ZTC: FP8 397B MoE with Zero-Token Confidence (GPQA Diamond 93.43)

Browse files
Files changed (1) hide show
  1. README.md +367 -1
README.md CHANGED
@@ -1,5 +1,371 @@
1
  ---
2
  license: apache-2.0
 
3
  library_name: transformers
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  ---
5
- # JGOS-398B-VID
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language: [en, ko, zh, ja, multilingual]
4
  library_name: transformers
5
+ pipeline_tag: text-generation
6
+ base_model:
7
+ - Qwen/Qwen3.5-397B-A17B
8
+ base_model_relation: quantized
9
+ tags:
10
+ - darwin
11
+ - darwin-v9
12
+ - darwin-jgos
13
+ - vidraft
14
+ - final-bench
15
+ - qwen
16
+ - qwen3.5
17
+ - qwen3_5_moe
18
+ - moe
19
+ - mixture-of-experts
20
+ - sparse-moe
21
+ - 397b
22
+ - a17b
23
+ - hybrid-attention
24
+ - linear-attention
25
+ - long-context
26
+ - 262k-context
27
+ - fp8
28
+ - w8a8
29
+ - compressed-tensors
30
+ - quantized
31
+ - reasoning
32
+ - reasoning-model
33
+ - thinking
34
+ - chain-of-thought
35
+ - cot
36
+ - math
37
+ - science
38
+ - stem
39
+ - code
40
+ - agentic
41
+ - tool-calling
42
+ - function-calling
43
+ - ztc
44
+ - zero-token-confidence
45
+ - confidence-estimation
46
+ - uncertainty-quantification
47
+ - hallucination-detection
48
+ - calibration
49
+ - self-verification
50
+ - selective-prediction
51
+ - pre-action-gating
52
+ - agent-safety
53
+ - llm-router
54
+ - guardrails
55
+ - gpqa
56
+ - gpqa-diamond
57
+ - mmlu-pro
58
+ - benchmark
59
+ - eval-results
60
+ - greedy
61
+ - korean
62
+ - english
63
+ - bilingual
64
+ - multilingual-llm
65
+ - vllm
66
+ - sglang
67
+ - openai-compatible
68
+ - multi-gpu
69
+ - h100
70
+ model-index:
71
+ - name: Darwin-397B-ZTC
72
+ results:
73
+ - task: {type: text-generation, name: Graduate-Level Reasoning}
74
+ dataset: {type: Idavidrein/gpqa, name: GPQA Diamond, config: gpqa_diamond, split: train}
75
+ metrics:
76
+ - {type: accuracy, value: 93.43, name: "Accuracy (greedy, single-sample)", verified: false}
77
  ---
78
+
79
+ # Darwin-397B-ZTC
80
+
81
+ ### 397B Mixture-of-Experts built on Qwen 3.5 Β· **FP8** Β· GPQA Diamond **93.43 %** Β· **ZTC on board**
82
+
83
+ `reasoning` Β· `MoE` Β· `FP8` Β· `262K long context` Β· `Korean + English` Β· `hallucination detection` Β· `tool calling`
84
+
85
+ <p align="center">
86
+ <a href="https://vidraft.net"><img src="https://img.shields.io/badge/🌐_VIDRAFT-vidraft.net-111827?style=for-the-badge"></a>
87
+ <img src="https://img.shields.io/badge/GPQA_Diamond-93.43%25-gold?style=for-the-badge">
88
+ <img src="https://img.shields.io/badge/FP8-418GB-2563eb?style=for-the-badge">
89
+ <img src="https://img.shields.io/badge/ZTC-Zero--Token_Confidence-7c3aed?style=for-the-badge">
90
+ </p>
91
+
92
+ **Half the footprint, GPQA Diamond 93.43 %.
93
+ And this model stops itself before it acts on an answer it is about to get wrong.**
94
+
95
+ ---
96
+
97
+ ## 🧬 The Darwin Family
98
+
99
+ <p align="center">
100
+ <a href="https://huggingface.co/FINAL-Bench/POCKET-35B-GGUF"><img src="https://img.shields.io/badge/POCKET--35B-824K_↓-1f6feb"></a>
101
+ <a href="https://huggingface.co/FINAL-Bench/POCKET-26B-GGUF"><img src="https://img.shields.io/badge/POCKET--26B-365K_↓-1f6feb"></a>
102
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-35B-A3B-Opus"><img src="https://img.shields.io/badge/Darwin--35B--A3B--Opus-β™₯98-e11d48"></a>
103
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-36B-Opus"><img src="https://img.shields.io/badge/Darwin--36B--Opus-β™₯97-e11d48"></a>
104
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-4B-Genesis"><img src="https://img.shields.io/badge/Darwin--4B--Genesis-β™₯63-e11d48"></a>
105
+ </p>
106
+ <p align="center">
107
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-9B-NEG"><img src="https://img.shields.io/badge/Darwin--9B--NEG-β™₯57-e11d48"></a>
108
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-28B-REASON"><img src="https://img.shields.io/badge/Darwin--28B--REASON-GPQA_89.39-16a34a"></a>
109
+ <a href="https://huggingface.co/FINAL-Bench/Ourbox-35B-JGOS-GGUF"><img src="https://img.shields.io/badge/Ourbox--35B--JGOS-β™₯30-e11d48"></a>
110
+ <a href="https://huggingface.co/FINAL-Bench/POCKET-EN-GGUF"><img src="https://img.shields.io/badge/POCKET--EN-β™₯43-1f6feb"></a>
111
+ <a href="https://huggingface.co/FINAL-Bench/POCKET-KR-GGUF"><img src="https://img.shields.io/badge/POCKET--KR-β™₯36-1f6feb"></a>
112
+ </p>
113
+
114
+ **Darwin** is [VIDRAFT](https://vidraft.net)'s measurement-driven reasoning model family β€”
115
+ roughly **20 official models**, **400+ community derivatives**, and a standing place among the
116
+ top open models on GPQA.
117
+
118
+ ---
119
+
120
+ ## 🧬 Darwin β€” transplanting the experts that work
121
+
122
+ A large MoE model is made of hundreds of **experts**.
123
+ **Darwin V9** selects the experts that perform best across several high-performing models,
124
+ transplants them onto a base backbone, and fuses them with trust-weighted evolutionary merging.
125
+
126
+ **Nothing is trained from scratch β€” proven capability is grafted on.**
127
+ That is why the same method holds across every model size.
128
+
129
+ | Model | Scale | GPQA Diamond |
130
+ |:---|:---|:---:|
131
+ | Darwin-9B-NEG | 9B | 84.3 |
132
+ | Darwin-27B-Opus | 27B dense | 86.9 |
133
+ | Darwin-36B-Opus | 36B MoE | 88.4 |
134
+ | Darwin-28B-Opus | 28B | 88.89 |
135
+ | Darwin-28B-REASON | 28B + DELPHI | 89.39 |
136
+ | Darwin-398B-JGOS | 397B MoE (bf16) | 90.9 |
137
+ | **Darwin-397B-ZTC** | **397B MoE (FP8)** | **93.43** |
138
+
139
+ - **Darwin V9** β€” evolutionary FFN/expert transplant and trust-weighted merging onto large MoE backbones
140
+ - **FINAL Bench** β€” VIDRAFT's evaluation framework
141
+ - **Four-layer Pre-AGI roadmap** β€” Darwin β†’ AETHER β†’ PROMETHEUS β†’ HEPHAESTUS
142
+
143
+ ---
144
+
145
+ ## πŸ›οΈ ZTC β€” it knows **before it answers**
146
+
147
+ Until now there were two ways to find out whether a model is about to be wrong.
148
+ Both of them only work **after the answer already exists**.
149
+
150
+ | Existing approach | Limitation |
151
+ |:---|:---|
152
+ | **Ask the model in words** | Costs extra tokens, adds latency, and models are badly overconfident |
153
+ | **Attach an external judge model** | **Two models to operate** Β· re-reads the entire answer Β· **degrades on long outputs** Β· πŸ”΄ **arrives too late β€” the answer is already produced** |
154
+
155
+ **ZTC is a third path. It reads the model's own internal state once, before generation begins.**
156
+
157
+ | | External judge model | **ZTC** |
158
+ |:---|:---|:---|
159
+ | When | **After** the answer | **Before it starts** |
160
+ | Extra model | Required (two to operate) | **None (one)** |
161
+ | Extra generated tokens | Re-processes prompt + answer | **0** |
162
+ | Added latency | A second inference pass | **0.52 ms** β€” 0.003 % of generation cost |
163
+ | Long answers, long trajectories | **Degrades as length grows** | **Length-independent** |
164
+
165
+ ---
166
+
167
+ ### πŸ“Š Measured β€” on this model
168
+
169
+ **β‘  It judges its own answers** (PubMedQA, 539 items, 146 incorrect)
170
+
171
+ | | AUROC |
172
+ |:---|:---:|
173
+ | Self-reported confidence (asked in words) | 0.7646 |
174
+ | **ZTC (internal-state readout)** | **0.8801** |
175
+ | **Gain** | **+0.1155** |
176
+
177
+ Permutation null control: **z = 13.31** β€” shuffle the labels and the signal disappears.
178
+
179
+ **β‘‘ It judges other models' answers** (Korean KMMLU, 400 items β€” law, math, biology, history)
180
+
181
+ | Judge | AUROC |
182
+ |:---|:---:|
183
+ | **Darwin-397B-ZTC** | **0.8228** (z = 9.66) |
184
+ | Qwen3.5-27B | 0.8171 |
185
+ | Qwen3.5-9B | 0.7297 |
186
+ | Qwen3.5-4B | 0.7284 |
187
+ | Open-source 4B judge model | 0.6844 |
188
+
189
+ **Same 400 items, same conditions: +0.138 over the open-source judge model.**
190
+
191
+ ---
192
+
193
+ ### πŸ€– Why this is decisive for agents β€” **after-the-fact report vs. pre-action stop**
194
+
195
+ In an agent loop the expensive thing is not tokens. It is **actions**.
196
+ Files get edited, APIs get called, payments go through, mail leaves the building.
197
+
198
+ ```
199
+ External judge : [generate] β†’ [tool runs] β†’ [cost, time, side effects] β†’ [judge] β†’ "that was wrong"
200
+ ZTC : [read state, 0.52 ms] β†’ stop here if risky β†’ the action never happens
201
+ ```
202
+
203
+ **In front of an irreversible action, an after-the-fact verdict is an incident report.**
204
+
205
+ ### Patterns
206
+
207
+ | Pattern | Behaviour |
208
+ |:---|:---|
209
+ | **Tool-call gating** | Low confidence β†’ do not call the tool, ask a human instead |
210
+ | **Model routing** | Send only the low-confidence queries to a larger model or external API |
211
+ | **Retry budgeting** | Spend multi-sample decoding only on the steps that wobble |
212
+ | **Long-trajectory monitoring** | Agent trajectories run to tens of thousands of tokens β€” **length-independent, so it can stay on at every step** |
213
+ | **Selective prediction** | Withhold a risky answer and return "I don't know" |
214
+
215
+ ### Gate deployment, measured
216
+
217
+ | Metric | Before | After |
218
+ |:---|:---:|:---:|
219
+ | Gate accuracy | 71.3 % | **93.3 %** |
220
+ | Incorrect answers blocked | 40.7 % | **74.1 %** |
221
+ | Expensive-path calls | 42 % | **17 %** |
222
+
223
+ At effectively zero cost it can stay on for **every** request.
224
+
225
+ **Use cases** β€” hallucination detection Β· uncertainty quantification Β· confidence calibration Β·
226
+ selective prediction Β· routing risky queries upstream Β· **pre-action gating for agents**
227
+
228
+ ---
229
+
230
+ ## πŸ† GPQA Diamond 93.43 %
231
+
232
+ | Model | GPQA Diamond |
233
+ |:---|:---:|
234
+ | **Darwin-397B-ZTC** | **93.43** |
235
+ | GPT5.2 | 92.4 |
236
+ | Gemini-3 Pro | 91.9 |
237
+ | Qwen3.5-397B-A17B | 88.4 |
238
+ | Claude 4.5 Opus | 87.0 |
239
+
240
+ ```
241
+ GPQA Diamond, all 198 items Β· greedy Β· single sample Β· no test-time engine
242
+ ```
243
+ *Comparison figures: Qwen3.5-397B-A17B official model card.*
244
+
245
+ ---
246
+
247
+ ## βš™οΈ Specifications
248
+
249
+ | Item | Value |
250
+ |:---|:---|
251
+ | Architecture | `Qwen3_5MoeForConditionalGeneration` |
252
+ | Parameters | **397 B total / 17 B active** (512 experts, 10 routed + 1 shared per token) |
253
+ | Layers Β· hidden | 60 Β· 4096 |
254
+ | Attention | Hybrid (45 linear + 15 full attention layers) |
255
+ | **Precision** | **FP8** (compressed-tensors W8A8) |
256
+ | Size on disk | **418.7 GB** |
257
+ | Context | **262,144 tokens** |
258
+ | License | apache-2.0 |
259
+
260
+ ---
261
+
262
+ ## πŸš€ Quickstart
263
+
264
+ ### Serving with vLLM (4 Γ— H100 80GB)
265
+
266
+ ```bash
267
+ vllm serve FINAL-Bench/Darwin-397B-ZTC \
268
+ --served-model-name darwin-397b \
269
+ --tensor-parallel-size 1 --pipeline-parallel-size 4 \
270
+ --gpu-memory-utilization 0.92 --max-model-len 262144 \
271
+ --cpu-offload-gb 20 --enforce-eager --trust-remote-code \
272
+ --reasoning-parser qwen3 --enable-auto-tool-choice \
273
+ --port 8000
274
+ ```
275
+
276
+ ### SGLang
277
+
278
+ ```bash
279
+ python -m sglang.launch_server --model-path FINAL-Bench/Darwin-397B-ZTC \
280
+ --port 8000 --tp-size 8 --context-length 262144
281
+ ```
282
+
283
+ ### Chat Completions (OpenAI-compatible)
284
+
285
+ ```python
286
+ from openai import OpenAI
287
+ c = OpenAI(base_url="http://localhost:8000/v1", api_key="EMPTY")
288
+
289
+ r = c.chat.completions.create(
290
+ model="darwin-397b",
291
+ messages=[{"role": "user", "content": "Why is the Riemann hypothesis hard?"}],
292
+ temperature=0.0, max_tokens=8192,
293
+ )
294
+ m = r.choices[0].message
295
+ print(m.reasoning_content) # thinking trace
296
+ print(m.content) # final answer
297
+ ```
298
+
299
+ ### πŸ› οΈ Tool calling
300
+
301
+ ```python
302
+ tools = [{
303
+ "type": "function",
304
+ "function": {
305
+ "name": "get_weather",
306
+ "description": "Get the current weather for a city",
307
+ "parameters": {"type": "object",
308
+ "properties": {"city": {"type": "string"}},
309
+ "required": ["city"]},
310
+ },
311
+ }]
312
+
313
+ r = c.chat.completions.create(
314
+ model="darwin-397b", tools=tools,
315
+ messages=[{"role": "user", "content": "What's the weather in Paris?"}],
316
+ )
317
+ print(r.choices[0].message.tool_calls)
318
+ ```
319
+
320
+ ### πŸ€– Agents and coding CLIs
321
+
322
+ The endpoint is OpenAI-compatible, so **existing tooling connects unchanged.**
323
+
324
+ opencode β€” `~/.config/opencode/opencode.json`
325
+
326
+ ```json
327
+ {
328
+ "$schema": "https://opencode.ai/config.json",
329
+ "provider": {
330
+ "darwin": {
331
+ "npm": "@ai-sdk/openai-compatible",
332
+ "name": "Darwin (local)",
333
+ "options": { "baseURL": "http://localhost:8000/v1", "apiKey": "EMPTY" },
334
+ "models": { "darwin-397b": { "name": "Darwin-397B-ZTC" } }
335
+ }
336
+ }
337
+ }
338
+ ```
339
+
340
+ Any OpenAI-compatible client (Cline, Continue, Aider, …)
341
+
342
+ ```bash
343
+ export OPENAI_BASE_URL=http://localhost:8000/v1
344
+ export OPENAI_API_KEY=EMPTY
345
+ export OPENAI_MODEL=darwin-397b
346
+ ```
347
+
348
+ ---
349
+
350
+ ## 🎯 Intended use
351
+ - Graduate-level STEM reasoning (GPQA, science qualifying exams)
352
+ - Mathematics and long multi-step chains of thought
353
+ - Code generation and debugging
354
+ - πŸ€– **Agent workflows** β€” ZTC blocks irreversible tool calls **before** they run
355
+ - **Bilingual Korean + English reasoning** (Chinese and Japanese supported)
356
+ - **Work where a wrong answer is expensive** β€” ZTC filters risky answers before they ship
357
+
358
+ ## πŸ”— Links
359
+ - 🌐 **[vidraft.net](https://vidraft.net)** β€” VIDRAFT
360
+ - πŸ€— **[FINAL-Bench](https://huggingface.co/FINAL-Bench)** β€” all models
361
+ - πŸ“± **[POCKET](https://huggingface.co/collections/FINAL-Bench/pocket-models-6a618ee5d23eafb7e185a5c6)** β€” on-device line that runs on phones and GPU-less PCs
362
+
363
+ ## πŸ“š Citation
364
+ ```bibtex
365
+ @misc{darwin397b_ztc_2026,
366
+ title = {Darwin-397B-ZTC: FP8 Mixture-of-Experts with Zero-Token Confidence},
367
+ year = {2026},
368
+ url = {https://vidraft.net},
369
+ note = {Base: Qwen/Qwen3.5-397B-A17B}
370
+ }
371
+ ```