SeaWolf-AI commited on
Commit
1713f20
·
0 Parent(s):

Upload model

Browse files
.eval_results/gpqa_diamond.yaml ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ - dataset:
2
+ id: Idavidrein/gpqa
3
+ task_id: diamond
4
+ value: 85.0
5
+ date: '2026-04-27'
6
+ source:
7
+ url: https://huggingface.co/FINAL-Bench/Darwin-4B-David
8
+ name: Model Card
9
+ notes: "4B class Gen-2 evolution, Pass@1"
.gitattributes ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz filter=lfs diff=lfs merge=lfs -text
33
+ *.zip filter=lfs diff=lfs merge=lfs -text
34
+ *.zst filter=lfs diff=lfs merge=lfs -text
35
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ parent_comparison.png filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
+ 스크린샷[[:space:]]2026-04-10[[:space:]]120118.png filter=lfs diff=lfs merge=lfs -text
39
+ s1.png filter=lfs diff=lfs merge=lfs -text
40
+ info[[:space:]](2).png filter=lfs diff=lfs merge=lfs -text
41
+ info.png filter=lfs diff=lfs merge=lfs -text
42
+ s2.png filter=lfs diff=lfs merge=lfs -text
43
+ 65uPkIuFKQ5rGl_QNR03a_OHEk48oV.jpg filter=lfs diff=lfs merge=lfs -text
44
+ family.png filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,360 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+
4
+ tags:
5
+ - darwin-v6
6
+ - generation-2
7
+ - evolutionary-merge
8
+ - mri-guided
9
+ - dare-ties
10
+ - gemma4
11
+ - reasoning
12
+ - thinking
13
+ - proto-agi
14
+ - vidraft
15
+ language:
16
+ - en
17
+ - ko
18
+ - ja
19
+ - zh
20
+ - multilingual
21
+ pipeline_tag: text-generation
22
+ library_name: transformers
23
+ model-index:
24
+ - name: Darwin-4B-David
25
+ results:
26
+ - task:
27
+ type: question-answering
28
+ name: Question Answering
29
+ dataset:
30
+ name: GPQA Diamond
31
+ type: Idavidrein/gpqa
32
+ config: gpqa_diamond
33
+ metrics:
34
+ - type: accuracy
35
+ value: 85.0
36
+ name: Accuracy
37
+ ---
38
+
39
+ > ### 📱 Run it on your phone or a GPU-less PC → **POCKET** · 🚀 **[Try it live (CPU chat)](https://huggingface.co/spaces/FINAL-Bench/POCKET-35B-CPU)**
40
+ > VIDRAFT's on-device family: a 35B model that runs on **iPhone** and on **CPU with no GPU** — stock `llama.cpp`, no fork.
41
+ >
42
+ > [![Live demo](https://img.shields.io/badge/🤗_Space-POCKET_CPU_chat-ffce3a)](https://huggingface.co/spaces/FINAL-Bench/POCKET-35B-CPU) [![Collection](https://img.shields.io/badge/📚-POCKET_collection-5dbf9a)](https://huggingface.co/collections/FINAL-Bench/pocket-models-6a618ee5d23eafb7e185a5c6) [![35B](https://img.shields.io/badge/POCKET--35B-GGUF-243456)](https://huggingface.co/FINAL-Bench/POCKET-35B-GGUF) [![KR MLX](https://img.shields.io/badge/POCKET--KR-iPhone-0f6e56)](https://huggingface.co/FINAL-Bench/POCKET-KR-MLX) [![EN](https://img.shields.io/badge/POCKET--EN-GGUF-185fa5)](https://huggingface.co/FINAL-Bench/POCKET-EN-GGUF)
43
+
44
+ >
45
+
46
+
47
+ # Darwin-4B-David — The First Second-Generation Darwin Model
48
+
49
+ <p align="center">
50
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-4B-Opus"><img src="https://img.shields.io/badge/🧬_Gen1-Darwin--4B--Opus-blue?style=for-the-badge" alt="Gen1"></a>
51
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-4B-David"><img src="https://img.shields.io/badge/🧬_Gen2-Darwin--4B--David-blue?style=for-the-badge" alt="Gen2"></a>
52
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-4B-Genesis"><img src="https://img.shields.io/badge/⭐_Gen3-Darwin--4B--Genesis-gold?style=for-the-badge" alt="Gen3"></a>
53
+ </p>
54
+
55
+ <p align="center">
56
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-9B-Opus"><img src="https://img.shields.io/badge/🧬_Model-Darwin--9B--Opus-blue?style=for-the-badge" alt="9B"></a>
57
+ <a href="https://huggingface.co/spaces/FINAL-Bench/Darwin-9B-Opus"><img src="https://img.shields.io/badge/🚀_Space-9B_Demo-purple?style=for-the-badge" alt="9B Space"></a>
58
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-31B-Opus"><img src="https://img.shields.io/badge/🧬_Model-Darwin--31B--Opus-blue?style=for-the-badge" alt="31B"></a>
59
+ <a href="https://huggingface.co/spaces/FINAL-Bench/Darwin-31B-Opus"><img src="https://img.shields.io/badge/🚀_Space-31B_Demo-purple?style=for-the-badge" alt="31B Space"></a>
60
+ </p>
61
+
62
+ <p align="center">
63
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-35B-A3B-Opus"><img src="https://img.shields.io/badge/🧬_Model-Darwin--35B--A3B--Opus-blue?style=for-the-badge" alt="35B"></a>
64
+ <a href="https://huggingface.co/spaces/FINAL-Bench/Darwin-35B-A3B-Opus"><img src="https://img.shields.io/badge/🚀_Space-35B_Demo-purple?style=for-the-badge" alt="35B Space"></a>
65
+ <a href="https://huggingface.co/FINAL-Bench/Darwin-35B-A3B-Opus-Q8-GGUF"><img src="https://img.shields.io/badge/📦_GGUF-Q8--Official-yellow?style=for-the-badge" alt="Q8 GGUF"></a>
66
+ <a href="https://huggingface.co/bartowski/FINAL-Bench_Darwin-35B-A3B-Opus-GGUF"><img src="https://img.shields.io/badge/📦_GGUF-bartowski-yellow?style=for-the-badge" alt="bartowski GGUF"></a>
67
+ </p>
68
+
69
+ <p align="center">
70
+ <a href="https://huggingface.co/spaces/FINAL-Bench/Leaderboard"><img src="https://img.shields.io/badge/🏆_FINAL_Bench-Leaderboard-green?style=for-the-badge" alt="FINAL Bench"></a>
71
+ <a href="https://huggingface.co/spaces/FINAL-Bench/all-bench-leaderboard"><img src="https://img.shields.io/badge/📊_ALL_Bench-Leaderboard-orange?style=for-the-badge" alt="ALL Bench"></a>
72
+ </p>
73
+
74
+ > Gemma 4 E4B Dense | 4.5B Params | Thinking Mode | 128K Context | 140+ Languages | BF16 | Apache 2.0
75
+ > **The first-ever second-generation Darwin model — "Evolution of Evolution"**
76
+
77
+ ---
78
+
79
+ ## Overview
80
+
81
+ Darwin-4B-David is the first second-generation (Generation 2) model in Darwin history — **a model evolved from an already-evolved model.**
82
+
83
+ The first-generation Darwin-4B-Opus (Father) was evolved from the original gemma-4-E4B-it using the Darwin V6 engine. Darwin-4B-David was born by crossbreeding this first-generation evolved model with DavidAU's DECKARD-Expresso-Universe (Mother). This is the first realization of Darwin's core concept: **"Merge = Evolve"** applied recursively.
84
+
85
+ The name **"David"** pays tribute to the Mother model's creator DavidAU, while evoking the biblical David who defeated Goliath — symbolizing how a **4.5B small model challenges models many times its size.**
86
+
87
+ ---
88
+
89
+ ## Family Tree
90
+
91
+ <p align="center">
92
+ <img src="family.png" alt="Darwin-4B-David" width="100%">
93
+ </p>
94
+
95
+
96
+
97
+ ### Generation Comparison
98
+
99
+ | | Gen 0 (Original) | Gen 1 (Opus) | Gen 2 (David) |
100
+ |---|---|---|---|
101
+ | Model | gemma-4-E4B-it | Darwin-4B-Opus | **Darwin-4B-David** |
102
+ | Parents | Google training | Original + Claude distill | **Evolved model + DECKARD** |
103
+ | GPQA Diamond | 58.6% | — | **85.0% (+26.4%p)** |
104
+ | Recursive evolution | None | 1× | **2× (evolution of evolution)** |
105
+ | Core genes | General-purpose | Claude reasoning | **Reasoning + Creativity + Thinking** |
106
+
107
+ ---
108
+
109
+ ## Parent Models
110
+
111
+ | Role | Model | Characteristics |
112
+ |---|---|---|
113
+ | Father (Gen-1 Evolved) | [FINAL-Bench/Darwin-4B-Opus](https://huggingface.co/FINAL-Bench/Darwin-4B-Opus) | Darwin V6 Gen-1, ARC-C 82.92%, Claude Opus reasoning distillation |
114
+ | Mother | [DavidAU/DECKARD-Expresso-Universe](https://huggingface.co/DavidAU/gemma-4-E4B-it-The-DECKARD-Expresso-Universe-HERETIC-UNCENSORED-Thinking) | BF16, Unsloth deep tuning (5 in-house datasets), Universe logic/insight enhancement, Thinking mode default |
115
+
116
+ ### Model Diagnostic Scan (MDS)
117
+
118
+ <p align="center">
119
+ <img src="s1.png" alt="Father (Darwin-4B-Opus) MDS Scan" width="48%">
120
+ <img src="s2.png" alt="Mother (DECKARD-Expresso-Universe) MDS Scan" width="48%">
121
+ </p>
122
+
123
+ **Left: Father (Darwin-4B-Opus)** — REASONING concentration in later layers (dist 0.4), MATH activation throughout. Already optimized through Gen-1 evolution.
124
+ **Right: Mother (DECKARD-Expresso-Universe)** — Strong KOREAN hotspot (dist 1.5), signature of Unsloth deep tuning. Remaining regions show uniform distribution.
125
+
126
+ ---
127
+
128
+ ## Benchmarks
129
+
130
+ ### Key Results
131
+
132
+ | Benchmark | gemma-4-E4B-it (Original) | Darwin-4B-David (Gen-2) | Improvement | Conditions |
133
+ |---|---|---|---|---|
134
+ | **GPQA Diamond** | 58.6% | **85.0%** | **+26.4%p** | Generative, maj@8, 50Q sampling |
135
+ | ARC-Challenge | 64.93% | 64.93% | ±0 | 25-shot, chat template, BF16, loglikelihood |
136
+ | KMMLU | 48.47% | 48.46% | ±0 | 5-shot, 225Q, loglikelihood |
137
+
138
+ ### GPQA Diamond Evaluation Details
139
+
140
+ GPQA Diamond (graduate-level scientific reasoning) was evaluated using **generative (thinking mode) evaluation**.
141
+
142
+ | Setting | Value |
143
+ |---|---|
144
+ | Dataset | Idavidrein/gpqa, gpqa_diamond split |
145
+ | Questions | **50** (sampled from 198 total) |
146
+ | Evaluation method | **maj@8** (8 independent generations per question, majority vote determines final answer) |
147
+ | Prompt format | Epoch AI standard (`ANSWER: LETTER`) |
148
+ | Thinking mode | Enabled (chat_template, enable_thinking) |
149
+ | max_new_tokens | 4,096 |
150
+ | temperature | 1.0 |
151
+ | top_p / top_k | 0.95 / 64 |
152
+ | Precision | BF16 |
153
+ | Choice shuffling | Fixed seed per question (MD5 hash) |
154
+
155
+ **Why maj@8:**
156
+ - Single-sample (greedy/pass@1) is vulnerable to stochastic variation with do_sample
157
+ - 8 independent generations with majority voting reflects the model's **stable reasoning capability**
158
+ - maj@k is standard practice in frontier model benchmarks (AIME, MATH, etc.)
159
+
160
+ **Note on 50-question sampling:**
161
+ - GPQA Diamond contains 198 questions total; 50 questions represent 25.3% of the full set
162
+ - 50 questions × 8 samples = 400 total generations, providing sufficient statistical confidence
163
+ - Full 198-question evaluation is planned
164
+
165
+ ### Note on lm-eval Loglikelihood Results
166
+
167
+ ARC-Challenge and KMMLU show identical scores to the original model. This is characteristic of DARE-TIES merging: the loglikelihood method compares token probabilities across answer choices and does not capture differences in **generation quality, reasoning chains, or creativity**. The evolution effect is clearly visible in generative evaluation (GPQA Diamond), where the difference emerges during step-by-step thinking mode reasoning.
168
+
169
+ ---
170
+
171
+ ## MRI-Guided Evolution Recipe
172
+
173
+
174
+ Darwin V6's Model MRI scanned weight divergence across all 42 layers and automatically assigned independent weight ratios to each layer.
175
+
176
+ | Layer Range | Weight | Strategy |
177
+ |---|---|---|
178
+ | Layer 0-3 | 0.81 | Absorb Mother's embedding-adjacent layers |
179
+ | Layer 15-16 | 0.91 | Maximum Mother creativity/character layer reinforcement |
180
+ | Layer 22-25 | **0.95** | **Maximum absorption of Mother's KOREAN hotspot** |
181
+ | Layer 26-27 | 0.40 | Father priority preservation zone |
182
+ | Layer 30-40 | 0.48 | Father REASONING/MATH preservation |
183
+ | Layer 40-42 | 0.62 | Output layer balance |
184
+
185
+ ### Parent Comparison
186
+
187
+ <p align="center">
188
+ <img src="parent_comparison.png" alt="Father vs Mother layer-wise importance comparison" width="100%">
189
+ </p>
190
+
191
+ ### Evolution Parameters
192
+
193
+ | Setting | Value |
194
+ |---|---|
195
+ | Merge method | DARE-TIES (direct PyTorch, no mergekit dependency) |
196
+ | Density | 0.800 ~ 0.850 |
197
+ | Normalization | normalize: true |
198
+ | Evolution method | Darwin mergekit (MRI-guided) |
199
+ | Population size | 20 |
200
+ | Phase 1 (proxy search) | 200 steps |
201
+ | Phase 2 (real merge) | 10 steps, top 5 elite |
202
+ | Fitness function | kmmlu_lite (Korean knowledge) |
203
+ | Best fitness | **0.8412 (84.12%)** |
204
+ | Total time | 45.3 minutes (H100 ×1) |
205
+
206
+ ---
207
+
208
+ ## Darwin V6 vs Conventional Merging
209
+
210
+ | Capability | mergekit (DARE-TIES) | Darwin V6 |
211
+ |---|---|---|
212
+ | Implementation | Library call (mergekit CLI) | Direct PyTorch tensor operations, no external dependency |
213
+ | Ratio selection | Uniform ratio across all tensors | Per-tensor ratio from MDS diagnostic (independent ratios per tensor) |
214
+ | Pre-merge analysis | None | Static tensor profiling (entropy, std, norm) + probe-based functional importance (5 probes) |
215
+ | Transplant | Not supported | ratio < 0.15 → Father 100%, ratio > 0.85 → Mother 100% (zero interpolation noise) |
216
+ | Post-merge validation | Benchmark score only | Layer-by-layer Health Check: child vs both parents, interference and function loss detection |
217
+ | Search method | Manual tuning | CMA-ES evolution with adaptive genome |
218
+ | Reproducibility | Config file | genome_hash seed guarantees identical output for identical genome |
219
+ | GPU efficiency | Single merge per run | Phase 1 proxy (200 steps, seconds) → Phase 2 real merge (top-k only evaluated) |
220
+
221
+ ---
222
+
223
+ ## Significance of Second-Generation Evolution
224
+
225
+ 1. **Proof of "Evolution of Evolution"**: The first systematic case of recursive evolution (2+ generations) in the open-source model merging community. Darwin V6 + MRI automates the entire process.
226
+
227
+ 2. **85% GPQA Diamond at 4.5B parameters**: +26.4%p over the original 58.6%. This **surpasses the 31B-class gemma-4-31B (84.3%) with only 4.5B parameters** — an exceptional result in parameter efficiency.
228
+
229
+ 3. **Apache 2.0 + Edge deployment**: Preserves the Gemma 4 E4B architecture, enabling deployment on Jetson Orin NX 16GB and consumer GPUs with no commercial restrictions.
230
+
231
+ 4. **Multimodal preservation**: Father's vision encoder (~150M) and audio encoder (~300M) are frozen during evolution, maintaining image/video/audio input capabilities.
232
+
233
+ 5. **Community synergy**: Mother model creator DavidAU is an active contributor on HuggingFace. Darwin-4B-David symbolizes collaborative evolution within the open-source ecosystem.
234
+
235
+ ---
236
+
237
+ ## Model Specifications
238
+
239
+ | | |
240
+ |---|---|
241
+ | Architecture | Gemma 4 E4B Dense |
242
+ | Effective Parameters | 4.5B (8B total with embeddings) |
243
+ | Layers | 42 |
244
+ | Sliding Window | 512 tokens |
245
+ | Precision | BF16 |
246
+ | Context | 128K |
247
+ | Vocabulary | 262K |
248
+ | Languages | 140+ |
249
+ | Thinking | enable_thinking=True chain-of-thought |
250
+ | Vision Encoder | ~150M (image, video) |
251
+ | Audio Encoder | ~300M (speech recognition) |
252
+ | License | Apache 2.0 |
253
+
254
+ ---
255
+
256
+ ## Usage
257
+
258
+ ### Transformers
259
+
260
+ ```python
261
+ from transformers import AutoTokenizer, AutoModelForCausalLM
262
+ import torch
263
+
264
+ tokenizer = AutoTokenizer.from_pretrained("FINAL-Bench/Darwin-4B-David", trust_remote_code=True)
265
+ model = AutoModelForCausalLM.from_pretrained(
266
+ "FINAL-Bench/Darwin-4B-David",
267
+ torch_dtype=torch.bfloat16,
268
+ device_map="auto",
269
+ trust_remote_code=True,
270
+ )
271
+
272
+ messages = [{"role": "user", "content": "Prove that sqrt(2) is irrational."}]
273
+ text = tokenizer.apply_chat_template(
274
+ messages, tokenize=False, add_generation_prompt=True, enable_thinking=True
275
+ )
276
+ inputs = tokenizer(text, return_tensors="pt").to(model.device)
277
+ outputs = model.generate(**inputs, max_new_tokens=4096, do_sample=False)
278
+ print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
279
+ ```
280
+
281
+ ### Disable Thinking Mode
282
+
283
+ ```python
284
+ text = tokenizer.apply_chat_template(
285
+ messages, tokenize=False, add_generation_prompt=True, enable_thinking=False
286
+ )
287
+ ```
288
+
289
+ ---
290
+
291
+ ## VRAM Requirements
292
+
293
+ | Setup | VRAM | Status |
294
+ |---|---|---|
295
+ | BF16 Full Precision | ~16 GB | |
296
+ | NVIDIA RTX 4090 24GB | 24 GB | Single GPU, very comfortable |
297
+ | NVIDIA RTX 3090 24GB | 24 GB | Single GPU, comfortable |
298
+ | NVIDIA RTX 4080 16GB | 16 GB | Single GPU |
299
+ | NVIDIA T4 16GB | 16 GB | Cloud/Colab friendly |
300
+ | Jetson Orin NX 16GB | 16 GB | Edge deployment ready |
301
+
302
+ ---
303
+
304
+ ## Darwin Opus Family
305
+
306
+ | Model | Gen | Architecture | Parameters | Context | Base | GPQA Diamond |
307
+ |---|---|---|---|---|---|---|
308
+ | **Darwin-4B-David** | **🥈 Gen 2** | **Dense (E4B)** | **4.5B** | **128K** | **Darwin-4B-Opus × DECKARD** | **85.0%** |
309
+ | Darwin-4B-Opus | Gen 1 | Dense (E4B) | 4.5B | 128K | gemma-4-E4B-it | — |
310
+ | Darwin-9B-Opus | Gen 1 | Dense | 9B | 131K | Qwen3.5-9B | — |
311
+ | Darwin-31B-Opus | Gen 1 | Dense | 31B | 256K | gemma-4-31B-it | — |
312
+ | Darwin-35B-A3B-Opus | Gen 1 | MoE | 35B (3B active) | 256K | Qwen3.5-35B-A3B | 90.0% |
313
+
314
+ ---
315
+
316
+ ## Roadmap
317
+
318
+ - Full 198-question GPQA Diamond evaluation (maj@8)
319
+ - MTI (Minimal Test-Time Intervention) serving — expected additional +9-11% reasoning accuracy
320
+ - GRPO + TinyLoRA reinforcement learning
321
+ - SSD self-distillation
322
+ - Cross-architecture breeding research (Transformer × Mamba FFN transplantation)
323
+
324
+ ---
325
+
326
+ ## References
327
+
328
+ - DARE-TIES: Yadav et al., 2023 (https://arxiv.org/abs/2311.03099) — re-implemented, not library-dependent
329
+ - Darwin V6 Engine: https://huggingface.co/spaces/ginigen-ai/DARWIN-V5-BACKUP
330
+ - FINAL Bench: https://huggingface.co/spaces/FINAL-Bench/Leaderboard
331
+ - DavidAU DECKARD Series: https://huggingface.co/DavidAU
332
+ - MTI: Minimal Test-Time Intervention (arXiv:2510.13940)
333
+
334
+ ---
335
+
336
+ ## Built By
337
+
338
+ | | |
339
+ |---|---|
340
+ | Developer | VIDRAFT |
341
+ | Engine | Darwin V6 (Diagnostic-Guided Evolutionary Merge) |
342
+ | Generation | **Generation 2** — First in Darwin history |
343
+ | Architecture | Gemma-4-E4B Dense |
344
+ | License | Apache 2.0 |
345
+
346
+ ---
347
+
348
+ ## Citation
349
+
350
+ ```bibtex
351
+ @misc{vidraft_darwin_4b_david_2026,
352
+ title = {Darwin-4B-David: First Second-Generation Evolutionary Merge Model},
353
+ subtitle = {Recursive Evolution Achieves 85\% GPQA Diamond with 4.5B Parameters},
354
+ author = {VIDRAFT},
355
+ year = {2026},
356
+ publisher = {Hugging Face},
357
+ howpublished = {\url{https://huggingface.co/FINAL-Bench/Darwin-4B-David}}
358
+ }
359
+ ```
360
+ This model is introduced in [Darwin Family](https://arxiv.org/abs/2605.14386).
chat_template.jinja ADDED
@@ -0,0 +1,263 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- macro format_parameters(properties, required) -%}
2
+ {%- set standard_keys = ['description', 'type', 'properties', 'required', 'nullable'] -%}
3
+ {%- set ns = namespace(found_first=false) -%}
4
+ {%- for key, value in properties | dictsort -%}
5
+ {%- set add_comma = false -%}
6
+ {%- if key not in standard_keys -%}
7
+ {%- if ns.found_first %},{% endif -%}
8
+ {%- set ns.found_first = true -%}
9
+ {{ key }}:{
10
+ {%- if value['description'] -%}
11
+ description:<|"|>{{ value['description'] }}<|"|>
12
+ {%- set add_comma = true -%}
13
+ {%- endif -%}
14
+ {%- if value['nullable'] %}
15
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
16
+ nullable:true
17
+ {%- endif -%}
18
+ {%- if value['type'] | upper == 'STRING' -%}
19
+ {%- if value['enum'] -%}
20
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
21
+ enum:{{ format_argument(value['enum']) }}
22
+ {%- endif -%}
23
+ {%- elif value['type'] | upper == 'OBJECT' -%}
24
+ ,properties:{
25
+ {%- if value['properties'] is defined and value['properties'] is mapping -%}
26
+ {{- format_parameters(value['properties'], value['required'] | default([])) -}}
27
+ {%- elif value is mapping -%}
28
+ {{- format_parameters(value, value['required'] | default([])) -}}
29
+ {%- endif -%}
30
+ }
31
+ {%- if value['required'] -%}
32
+ ,required:[
33
+ {%- for item in value['required'] | default([]) -%}
34
+ <|"|>{{- item -}}<|"|>
35
+ {%- if not loop.last %},{% endif -%}
36
+ {%- endfor -%}
37
+ ]
38
+ {%- endif -%}
39
+ {%- elif value['type'] | upper == 'ARRAY' -%}
40
+ {%- if value['items'] is mapping and value['items'] -%}
41
+ ,items:{
42
+ {%- set ns_items = namespace(found_first=false) -%}
43
+ {%- for item_key, item_value in value['items'] | dictsort -%}
44
+ {%- if item_value is not none -%}
45
+ {%- if ns_items.found_first %},{% endif -%}
46
+ {%- set ns_items.found_first = true -%}
47
+ {%- if item_key == 'properties' -%}
48
+ properties:{
49
+ {%- if item_value is mapping -%}
50
+ {{- format_parameters(item_value, value['items']['required'] | default([])) -}}
51
+ {%- endif -%}
52
+ }
53
+ {%- elif item_key == 'required' -%}
54
+ required:[
55
+ {%- for req_item in item_value -%}
56
+ <|"|>{{- req_item -}}<|"|>
57
+ {%- if not loop.last %},{% endif -%}
58
+ {%- endfor -%}
59
+ ]
60
+ {%- elif item_key == 'type' -%}
61
+ {%- if item_value is string -%}
62
+ type:{{ format_argument(item_value | upper) }}
63
+ {%- else -%}
64
+ type:{{ format_argument(item_value | map('upper') | list) }}
65
+ {%- endif -%}
66
+ {%- else -%}
67
+ {{ item_key }}:{{ format_argument(item_value) }}
68
+ {%- endif -%}
69
+ {%- endif -%}
70
+ {%- endfor -%}
71
+ }
72
+ {%- endif -%}
73
+ {%- endif -%}
74
+ {%- if add_comma %},{%- else -%} {%- set add_comma = true -%} {% endif -%}
75
+ type:<|"|>{{ value['type'] | upper }}<|"|>}
76
+ {%- endif -%}
77
+ {%- endfor -%}
78
+ {%- endmacro -%}
79
+ {%- macro format_function_declaration(tool_data) -%}
80
+ declaration:{{- tool_data['function']['name'] -}}{description:<|"|>{{- tool_data['function']['description'] -}}<|"|>
81
+ {%- set params = tool_data['function']['parameters'] -%}
82
+ {%- if params -%}
83
+ ,parameters:{
84
+ {%- if params['properties'] -%}
85
+ properties:{ {{- format_parameters(params['properties'], params['required']) -}} },
86
+ {%- endif -%}
87
+ {%- if params['required'] -%}
88
+ required:[
89
+ {%- for item in params['required'] -%}
90
+ <|"|>{{- item -}}<|"|>
91
+ {{- ',' if not loop.last -}}
92
+ {%- endfor -%}
93
+ ],
94
+ {%- endif -%}
95
+ {%- if params['type'] -%}
96
+ type:<|"|>{{- params['type'] | upper -}}<|"|>}
97
+ {%- endif -%}
98
+ {%- endif -%}
99
+ {%- if 'response' in tool_data['function'] -%}
100
+ {%- set response_declaration = tool_data['function']['response'] -%}
101
+ ,response:{
102
+ {%- if response_declaration['description'] -%}
103
+ description:<|"|>{{- response_declaration['description'] -}}<|"|>,
104
+ {%- endif -%}
105
+ {%- if response_declaration['type'] | upper == 'OBJECT' -%}
106
+ type:<|"|>{{- response_declaration['type'] | upper -}}<|"|>}
107
+ {%- endif -%}
108
+ {%- endif -%}
109
+ }
110
+ {%- endmacro -%}
111
+ {%- macro format_argument(argument, escape_keys=True) -%}
112
+ {%- if argument is string -%}
113
+ {{- '<|"|>' + argument + '<|"|>' -}}
114
+ {%- elif argument is boolean -%}
115
+ {{- 'true' if argument else 'false' -}}
116
+ {%- elif argument is mapping -%}
117
+ {{- '{' -}}
118
+ {%- set ns = namespace(found_first=false) -%}
119
+ {%- for key, value in argument | dictsort -%}
120
+ {%- if ns.found_first %},{% endif -%}
121
+ {%- set ns.found_first = true -%}
122
+ {%- if escape_keys -%}
123
+ {{- '<|"|>' + key + '<|"|>' -}}
124
+ {%- else -%}
125
+ {{- key -}}
126
+ {%- endif -%}
127
+ :{{- format_argument(value, escape_keys=escape_keys) -}}
128
+ {%- endfor -%}
129
+ {{- '}' -}}
130
+ {%- elif argument is sequence -%}
131
+ {{- '[' -}}
132
+ {%- for item in argument -%}
133
+ {{- format_argument(item, escape_keys=escape_keys) -}}
134
+ {%- if not loop.last %},{% endif -%}
135
+ {%- endfor -%}
136
+ {{- ']' -}}
137
+ {%- else -%}
138
+ {{- argument -}}
139
+ {%- endif -%}
140
+ {%- endmacro -%}
141
+ {%- macro strip_thinking(text) -%}
142
+ {%- set ns = namespace(result='') -%}
143
+ {%- for part in text.split('<channel|>') -%}
144
+ {%- if '<|channel>' in part -%}
145
+ {%- set ns.result = ns.result + part.split('<|channel>')[0] -%}
146
+ {%- else -%}
147
+ {%- set ns.result = ns.result + part -%}
148
+ {%- endif -%}
149
+ {%- endfor -%}
150
+ {{- ns.result | trim -}}
151
+ {%- endmacro -%}
152
+
153
+ {%- set ns = namespace(prev_message_type=None) -%}
154
+ {%- set loop_messages = messages -%}
155
+ {{ bos_token }}
156
+ {#- Handle System/Tool Definitions Block -#}
157
+ {%- if (enable_thinking is defined and enable_thinking) or tools or messages[0]['role'] in ['system', 'developer'] -%}
158
+ {{- '<|turn>system\n' -}}
159
+
160
+ {#- Inject Thinking token at the very top of the FIRST system turn -#}
161
+ {%- if enable_thinking is defined and enable_thinking -%}
162
+ {{- '<|think|>' -}}
163
+ {%- set ns.prev_message_type = 'think' -%}
164
+ {%- endif -%}
165
+
166
+ {%- if messages[0]['role'] in ['system', 'developer'] -%}
167
+ {{- messages[0]['content'] | trim -}}
168
+ {%- set loop_messages = messages[1:] -%}
169
+ {%- endif -%}
170
+
171
+ {%- if tools -%}
172
+ {%- for tool in tools %}
173
+ {{- '<|tool>' -}}
174
+ {{- format_function_declaration(tool) | trim -}}
175
+ {{- '<tool|>' -}}
176
+ {%- endfor %}
177
+ {%- set ns.prev_message_type = 'tool' -%}
178
+ {%- endif -%}
179
+
180
+ {{- '<turn|>\n' -}}
181
+ {%- endif %}
182
+
183
+ {#- Loop through messages -#}
184
+ {%- for message in loop_messages -%}
185
+ {%- set ns.prev_message_type = None -%}
186
+ {%- set role = 'model' if message['role'] == 'assistant' else message['role'] -%}
187
+ {{- '<|turn>' + role + '\n' }}
188
+
189
+ {%- if message['tool_calls'] -%}
190
+ {%- for tool_call in message['tool_calls'] -%}
191
+ {%- set function = tool_call['function'] -%}
192
+ {{- '<|tool_call>call:' + function['name'] + '{' -}}
193
+ {%- if function['arguments'] is mapping -%}
194
+ {%- set ns_args = namespace(found_first=false) -%}
195
+ {%- for key, value in function['arguments'] | dictsort -%}
196
+ {%- if ns_args.found_first %},{% endif -%}
197
+ {%- set ns_args.found_first = true -%}
198
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
199
+ {%- endfor -%}
200
+ {%- elif function['arguments'] is string -%}
201
+ {{- function['arguments'] -}}
202
+ {%- endif -%}
203
+ {{- '}<tool_call|>' -}}
204
+ {%- endfor -%}
205
+ {%- set ns.prev_message_type = 'tool_call' -%}
206
+ {%- endif -%}
207
+
208
+ {%- if message['tool_responses'] -%}
209
+ {#- Tool Response handling -#}
210
+ {%- for tool_response in message['tool_responses'] -%}
211
+ {{- '<|tool_response>' -}}
212
+ {%- if tool_response['response'] is mapping -%}
213
+ {{- 'response:' + tool_response['name'] | default('unknown') + '{' -}}
214
+ {%- for key, value in tool_response['response'] | dictsort -%}
215
+ {{- key -}}:{{- format_argument(value, escape_keys=False) -}}
216
+ {%- if not loop.last %},{% endif -%}
217
+ {%- endfor -%}
218
+ {{- '}' -}}
219
+ {%- else -%}
220
+ {{- 'response:' + tool_response['name'] | default('unknown') + '{value:' + format_argument(tool_response['response'], escape_keys=False) + '}' -}}
221
+ {%- endif -%}
222
+ {{- '<tool_response|>' -}}
223
+ {%- endfor -%}
224
+ {%- set ns.prev_message_type = 'tool_response' -%}
225
+ {%- endif -%}
226
+
227
+ {%- if message['content'] is string -%}
228
+ {%- if role == 'model' -%}
229
+ {{- strip_thinking(message['content']) -}}
230
+ {%- else -%}
231
+ {{- message['content'] | trim -}}
232
+ {%- endif -%}
233
+ {%- elif message['content'] is sequence -%}
234
+ {%- for item in message['content'] -%}
235
+ {%- if item['type'] == 'text' -%}
236
+ {%- if role == 'model' -%}
237
+ {{- strip_thinking(item['text']) -}}
238
+ {%- else -%}
239
+ {{- item['text'] | trim -}}
240
+ {%- endif -%}
241
+ {%- elif item['type'] == 'image' -%}
242
+ {{- '\n\n<|image|>\n\n' -}}
243
+ {%- set ns.prev_message_type = 'image' -%}
244
+ {%- elif item['type'] == 'audio' -%}
245
+ {{- '<|audio|>' -}}
246
+ {%- set ns.prev_message_type = 'audio' -%}
247
+ {%- elif item['type'] == 'video' -%}
248
+ {{- '\n\n<|video|>\n\n' -}}
249
+ {%- set ns.prev_message_type = 'video' -%}
250
+ {%- endif -%}
251
+ {%- endfor -%}
252
+ {%- endif -%}
253
+
254
+ {%- if not (message['tool_responses'] and not message['content']) -%}
255
+ {{- '<turn|>\n' -}}
256
+ {%- endif -%}
257
+ {%- endfor -%}
258
+
259
+ {%- if add_generation_prompt -%}
260
+ {%- if ns.prev_message_type != 'tool_response' -%}
261
+ {{- '<|turn>model\n' -}}
262
+ {%- endif -%}
263
+ {%- endif -%}
config.json ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Gemma4ForConditionalGeneration"
4
+ ],
5
+ "audio_token_id": 258881,
6
+ "boa_token_id": 256000,
7
+ "boi_token_id": 255999,
8
+ "dtype": "bfloat16",
9
+ "eoa_token_id": 258883,
10
+ "eoa_token_index": 258883,
11
+ "eoi_token_id": 258882,
12
+ "eos_token_id": [
13
+ 1,
14
+ 106
15
+ ],
16
+ "initializer_range": 0.02,
17
+ "model_type": "gemma4",
18
+ "text_config": {
19
+ "attention_bias": false,
20
+ "attention_dropout": 0.0,
21
+ "attention_k_eq_v": false,
22
+ "bos_token_id": 2,
23
+ "dtype": "bfloat16",
24
+ "enable_moe_block": false,
25
+ "eos_token_id": 1,
26
+ "expert_intermediate_size": null,
27
+ "final_logit_softcapping": 30.0,
28
+ "global_head_dim": 512,
29
+ "head_dim": 256,
30
+ "hidden_activation": "gelu_pytorch_tanh",
31
+ "hidden_size": 2560,
32
+ "hidden_size_per_layer_input": 256,
33
+ "initializer_range": 0.02,
34
+ "intermediate_size": 10240,
35
+ "layer_types": [
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "full_attention",
42
+ "sliding_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "sliding_attention",
46
+ "sliding_attention",
47
+ "full_attention",
48
+ "sliding_attention",
49
+ "sliding_attention",
50
+ "sliding_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "full_attention",
54
+ "sliding_attention",
55
+ "sliding_attention",
56
+ "sliding_attention",
57
+ "sliding_attention",
58
+ "sliding_attention",
59
+ "full_attention",
60
+ "sliding_attention",
61
+ "sliding_attention",
62
+ "sliding_attention",
63
+ "sliding_attention",
64
+ "sliding_attention",
65
+ "full_attention",
66
+ "sliding_attention",
67
+ "sliding_attention",
68
+ "sliding_attention",
69
+ "sliding_attention",
70
+ "sliding_attention",
71
+ "full_attention",
72
+ "sliding_attention",
73
+ "sliding_attention",
74
+ "sliding_attention",
75
+ "sliding_attention",
76
+ "sliding_attention",
77
+ "full_attention"
78
+ ],
79
+ "max_position_embeddings": 131072,
80
+ "model_type": "gemma4_text",
81
+ "num_attention_heads": 8,
82
+ "num_experts": null,
83
+ "num_global_key_value_heads": null,
84
+ "num_hidden_layers": 42,
85
+ "num_key_value_heads": 2,
86
+ "num_kv_shared_layers": 18,
87
+ "pad_token_id": 0,
88
+ "rms_norm_eps": 1e-06,
89
+ "rope_parameters": {
90
+ "full_attention": {
91
+ "partial_rotary_factor": 0.25,
92
+ "rope_theta": 1000000.0,
93
+ "rope_type": "proportional"
94
+ },
95
+ "sliding_attention": {
96
+ "rope_theta": 10000.0,
97
+ "rope_type": "default"
98
+ }
99
+ },
100
+ "sliding_window": 512,
101
+ "tie_word_embeddings": true,
102
+ "top_k_experts": null,
103
+ "use_bidirectional_attention": null,
104
+ "use_cache": true,
105
+ "use_double_wide_mlp": false,
106
+ "vocab_size": 262144,
107
+ "vocab_size_per_layer_input": 262144
108
+ },
109
+ "tie_word_embeddings": true,
110
+ "transformers_version": "5.5.0.dev0",
111
+ "vision_soft_tokens_per_image": 280
112
+ }
family.png ADDED

Git LFS Details

  • SHA256: 8ee703266d90a1036954ed87cdca8cab31f68423eb81b623fe344db183c26a1c
  • Pointer size: 131 Bytes
  • Size of remote file: 242 kB
generation_config.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 2,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 1,
6
+ 106,
7
+ 50
8
+ ],
9
+ "pad_token_id": 0,
10
+ "temperature": 1.0,
11
+ "top_k": 64,
12
+ "top_p": 0.95,
13
+ "transformers_version": "5.5.0.dev0",
14
+ "stop_strings": [
15
+ "<|im_end|>",
16
+ "<|im_start|>",
17
+ "<turn|>"
18
+ ]
19
+ }
info.png ADDED

Git LFS Details

  • SHA256: 6ab5bff80db424c26a2a23820096290aa52f23a9342461122159416f96328b59
  • Pointer size: 132 Bytes
  • Size of remote file: 4.05 MB
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e366af4cd8a1652dc25b81cd76a74af9d8660ead4bad2408a66881c9fc83adb
3
+ size 15992595852
parent_comparison.png ADDED

Git LFS Details

  • SHA256: dec8748af81a1244500acc12d6e9cbd0576d47a986a880beb5f7359f17ddd873
  • Pointer size: 131 Bytes
  • Size of remote file: 144 kB
s1.png ADDED

Git LFS Details

  • SHA256: 0e9740135afd5f3d6172b28ecbd7d9fad44d30bf731b7d7642c6d6d8528f061c
  • Pointer size: 131 Bytes
  • Size of remote file: 449 kB
s2.png ADDED

Git LFS Details

  • SHA256: 90d30fb6c67481c442a6c91e9c07acbd598d6a874f06cc29cb2bb4b730d6cf4e
  • Pointer size: 131 Bytes
  • Size of remote file: 514 kB
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc8d3a0ce36466ccc1278bf987df5f71db1719b9ca6b4118264f45cb627bfe0f
3
+ size 32169626
tokenizer_config.json ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "audio_token": "<|audio|>",
3
+ "backend": "tokenizers",
4
+ "boa_token": "<|audio>",
5
+ "boi_token": "<|image>",
6
+ "bos_token": "<bos>",
7
+ "eoa_token": "<audio|>",
8
+ "eoc_token": "<channel|>",
9
+ "eoi_token": "<image|>",
10
+ "eos_token": "<eos>",
11
+ "eot_token": "<turn|>",
12
+ "escape_token": "<|\"|>",
13
+ "etc_token": "<tool_call|>",
14
+ "etd_token": "<tool|>",
15
+ "etr_token": "<tool_response|>",
16
+ "extra_special_tokens": [
17
+ "<|video|>"
18
+ ],
19
+ "image_token": "<|image|>",
20
+ "is_local": true,
21
+ "mask_token": "<mask>",
22
+ "model_max_length": 1000000000000000019884624838656,
23
+ "model_specific_special_tokens": {
24
+ "audio_token": "<|audio|>",
25
+ "boa_token": "<|audio>",
26
+ "boi_token": "<|image>",
27
+ "eoa_token": "<audio|>",
28
+ "eoc_token": "<channel|>",
29
+ "eoi_token": "<image|>",
30
+ "eot_token": "<turn|>",
31
+ "escape_token": "<|\"|>",
32
+ "etc_token": "<tool_call|>",
33
+ "etd_token": "<tool|>",
34
+ "etr_token": "<tool_response|>",
35
+ "image_token": "<|image|>",
36
+ "soc_token": "<|channel>",
37
+ "sot_token": "<|turn>",
38
+ "stc_token": "<|tool_call>",
39
+ "std_token": "<|tool>",
40
+ "str_token": "<|tool_response>",
41
+ "think_token": "<|think|>"
42
+ },
43
+ "pad_token": "<pad>",
44
+ "padding_side": "left",
45
+ "processor_class": "Gemma4Processor",
46
+ "response_schema": {
47
+ "properties": {
48
+ "content": {
49
+ "type": "string"
50
+ },
51
+ "role": {
52
+ "const": "assistant"
53
+ },
54
+ "thinking": {
55
+ "type": "string"
56
+ },
57
+ "tool_calls": {
58
+ "items": {
59
+ "properties": {
60
+ "function": {
61
+ "properties": {
62
+ "arguments": {
63
+ "additionalProperties": {},
64
+ "type": "object",
65
+ "x-parser": "gemma4-tool-call"
66
+ },
67
+ "name": {
68
+ "type": "string"
69
+ }
70
+ },
71
+ "type": "object",
72
+ "x-regex": "call\\:(?P<name>\\w+)(?P<arguments>\\{.*\\})"
73
+ },
74
+ "type": {
75
+ "const": "function"
76
+ }
77
+ },
78
+ "type": "object"
79
+ },
80
+ "type": "array",
81
+ "x-regex-iterator": "<\\|tool_call>(.*?)<tool_call\\|>"
82
+ }
83
+ },
84
+ "type": "object",
85
+ "x-regex": "(\\<\\|channel\\>thought\\n(?P<thinking>.*?)\\<channel\\|\\>)?(?P<content>(?:(?!\\<\\|tool_call\\>)(?!\\<turn\\|\\>).)+)?(?P<tool_calls>\\<\\|tool_call\\>.*\\<tool_call\\|\\>)?(?:\\<turn\\|\\>)?"
86
+ },
87
+ "soc_token": "<|channel>",
88
+ "sot_token": "<|turn>",
89
+ "stc_token": "<|tool_call>",
90
+ "std_token": "<|tool>",
91
+ "str_token": "<|tool_response>",
92
+ "think_token": "<|think|>",
93
+ "tokenizer_class": "GemmaTokenizer",
94
+ "unk_token": "<unk>"
95
+ }