Text Generation
Transformers
Safetensors
gemma4
image-text-to-text
Merge
evolutionary-merge
darwin
darwin-v6
model-mri
cross-architecture
ffn-crossbreed
cma-es
hybrid-vigor
transformer-mamba
reasoning
qwen3.5
gated-deltanet
korean
multilingual
gpqa
open-source
world-first
conversational
Eval Results (legacy)
Instructions to use FINAL-Bench/Darwin-4B-Genesis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FINAL-Bench/Darwin-4B-Genesis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FINAL-Bench/Darwin-4B-Genesis") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("FINAL-Bench/Darwin-4B-Genesis") model = AutoModelForImageTextToText.from_pretrained("FINAL-Bench/Darwin-4B-Genesis") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use FINAL-Bench/Darwin-4B-Genesis with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FINAL-Bench/Darwin-4B-Genesis" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FINAL-Bench/Darwin-4B-Genesis", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FINAL-Bench/Darwin-4B-Genesis
- SGLang
How to use FINAL-Bench/Darwin-4B-Genesis 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 "FINAL-Bench/Darwin-4B-Genesis" \ --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": "FINAL-Bench/Darwin-4B-Genesis", "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 "FINAL-Bench/Darwin-4B-Genesis" \ --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": "FINAL-Bench/Darwin-4B-Genesis", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FINAL-Bench/Darwin-4B-Genesis with Docker Model Runner:
docker model run hf.co/FINAL-Bench/Darwin-4B-Genesis
Improve model card metadata and link to paper
Browse filesHi,
I'm Niels from the Hugging Face community science team.
This PR improves the model card for Darwin-4B-Genesis by:
- Adding `library_name: transformers` to the metadata, as the model is compatible with the Transformers library (as evidenced by the sample usage snippet).
- Moving the ArXiv ID from the YAML metadata section to the Markdown section, following our best practices.
- Ensuring a clear link to the associated paper is present in the Markdown.
Please let me know if you have any questions!
README.md
CHANGED
|
@@ -1,66 +1,63 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
base_model:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
tags:
|
| 7 |
-
- merge
|
| 8 |
-
- evolutionary-merge
|
| 9 |
-
- darwin
|
| 10 |
-
- darwin-v6
|
| 11 |
-
- model-mri
|
| 12 |
-
- cross-architecture
|
| 13 |
-
- ffn-crossbreed
|
| 14 |
-
- cma-es
|
| 15 |
-
- hybrid-vigor
|
| 16 |
-
- transformer-mamba
|
| 17 |
-
- reasoning
|
| 18 |
-
- gemma4
|
| 19 |
-
- qwen3.5
|
| 20 |
-
- gated-deltanet
|
| 21 |
-
- korean
|
| 22 |
-
- multilingual
|
| 23 |
-
- gpqa
|
| 24 |
-
- open-source
|
| 25 |
-
- apache-2.0
|
| 26 |
-
- world-first
|
| 27 |
-
- arxiv:2605.14386
|
| 28 |
language:
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
|
|
|
| 36 |
pipeline_tag: text-generation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
model-index:
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
arxiv:
|
| 63 |
-
- 2605.14386
|
| 64 |
---
|
| 65 |
|
| 66 |
# Darwin-4B-Genesis
|
|
@@ -71,6 +68,8 @@ arxiv:
|
|
| 71 |
<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>
|
| 72 |
</p>
|
| 73 |
|
|
|
|
|
|
|
| 74 |
<p align="center">
|
| 75 |
<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>
|
| 76 |
<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>
|
|
@@ -124,16 +123,6 @@ Existing hybrid models (Jamba, Nemotron-H, Granite 4.0) are all **designed and t
|
|
| 124 |
|
| 125 |
The child surpasses **both** parents. This is the first demonstration of Hybrid Vigor in AI model breeding.
|
| 126 |
|
| 127 |
-
### 3. Manual vs Evolution
|
| 128 |
-
|
| 129 |
-
| Method | CLIcK | MuSR |
|
| 130 |
-
|---|---|---|
|
| 131 |
-
| Manual 50% blend | ~23% | — |
|
| 132 |
-
| Manual 30% selective blend | 62% | 45% |
|
| 133 |
-
| **CMA-ES 42D automatic search** | **92%** | **70%** |
|
| 134 |
-
|
| 135 |
-
Human-chosen ratios fail. Evolutionary search succeeds.
|
| 136 |
-
|
| 137 |
---
|
| 138 |
|
| 139 |
## Benchmarks
|
|
@@ -144,8 +133,6 @@ Human-chosen ratios fail. Evolutionary search succeeds.
|
|
| 144 |
| **MuSR** (multi-step reasoning) | **70%** | 65% | 0.604 |
|
| 145 |
| **GPQA** (deep reasoning) | ~60% | ~60% | — |
|
| 146 |
|
| 147 |
-
A 4B model dominates the K-AI leaderboard's #1 model (27B) on both CLIcK and MuSR.
|
| 148 |
-
|
| 149 |
---
|
| 150 |
|
| 151 |
## How It Works
|
|
@@ -176,51 +163,7 @@ L31: 0.244 ████████████░ 24% Qwen
|
|
| 176 |
L32: 0.273 █████████████░ 27% Qwen
|
| 177 |
```
|
| 178 |
|
| 179 |
-
Key finding: CMA-ES applied the **most aggressive Qwen blending to the final layers (L29-32)**, which govern output quality.
|
| 180 |
-
|
| 181 |
-
### Training Cost
|
| 182 |
-
|
| 183 |
-
| | This Model | Typical Hybrid |
|
| 184 |
-
|---|---|---|
|
| 185 |
-
| GPU | H100 × 1 | Hundreds to thousands |
|
| 186 |
-
| Time | 155 minutes | Weeks to months |
|
| 187 |
-
| Training data | 0 tokens | Trillions of tokens |
|
| 188 |
-
| Training compute | Fitness evaluation only | Full pre-training |
|
| 189 |
-
|
| 190 |
-
---
|
| 191 |
-
|
| 192 |
-
## Genealogy
|
| 193 |
-
|
| 194 |
-
```
|
| 195 |
-
google/gemma-4-E4B-it × TeichAI/Claude-Opus-Distill-E4B
|
| 196 |
-
→ Darwin-4B-Opus (Gen 1, DARE-TIES merge)
|
| 197 |
-
|
| 198 |
-
Darwin-4B-Opus × DavidAU/DECKARD-Expresso-Universe
|
| 199 |
-
→ Darwin-4B-David (Gen 2, MRI-guided merge, CLIcK 90%)
|
| 200 |
-
|
| 201 |
-
Darwin-4B-David × Qwen/Qwen3.5-4B
|
| 202 |
-
→ Darwin-4B-Genesis (Gen 3, Cross-Arch FFN Breeding, CLIcK 92%) ★
|
| 203 |
-
```
|
| 204 |
-
|
| 205 |
-
### DNA Composition
|
| 206 |
-
|
| 207 |
-
```
|
| 208 |
-
Gemma4 Transformer (skeleton, Attention) ~50%
|
| 209 |
-
Claude Opus Distill (reasoning patterns) ~20%
|
| 210 |
-
DECKARD Universe (Korean, creativity) ~15%
|
| 211 |
-
Qwen3.5 GatedDeltaNet (Mamba FFN) ~15%
|
| 212 |
-
```
|
| 213 |
-
|
| 214 |
-
---
|
| 215 |
-
|
| 216 |
-
## What Is FFN Breeding?
|
| 217 |
-
|
| 218 |
-
AI models have two main components:
|
| 219 |
-
|
| 220 |
-
- **Attention** = the brain (decides what to focus on, reasoning chains)
|
| 221 |
-
- **FFN** = the muscles (stores knowledge, processes patterns)
|
| 222 |
-
|
| 223 |
-
Darwin-4B-Genesis keeps the **brain from the father (Transformer)** and blends in **muscles from the mother (Mamba)** at optimal ratios. As long as the FFN input/output dimensions match (hidden_size=2560), the swap works — like a USB-C port that accepts any compatible charger.
|
| 224 |
|
| 225 |
---
|
| 226 |
|
|
@@ -249,63 +192,18 @@ print(tokenizer.decode(outputs[0][inputs['input_ids'].shape[-1]:], skip_special_
|
|
| 249 |
|
| 250 |
---
|
| 251 |
|
| 252 |
-
##
|
| 253 |
-
|
| 254 |
-
| Setup | VRAM | Status |
|
| 255 |
-
|---|---|---|
|
| 256 |
-
| NVIDIA RTX 4090 (24GB) | 24 GB | BF16 fits |
|
| 257 |
-
| NVIDIA RTX 3090 (24GB) | 24 GB | BF16 fits |
|
| 258 |
-
| NVIDIA H100 (93GB) | 93 GB | Comfortable |
|
| 259 |
-
| Mac M3 Max (36GB) | 36 GB | Comfortable |
|
| 260 |
-
|
| 261 |
-
Dense 4B model — runs on a single consumer GPU.
|
| 262 |
-
|
| 263 |
-
---
|
| 264 |
-
|
| 265 |
-
## Model Specifications
|
| 266 |
-
|
| 267 |
-
| | |
|
| 268 |
-
|---|---|
|
| 269 |
-
| Architecture | Gemma4 Dense (Transformer Attention + Mamba FFN hybrid) |
|
| 270 |
-
| Effective Parameters | 4B (8B total with PLE) |
|
| 271 |
-
| Hidden Size | 2560 |
|
| 272 |
-
| Intermediate Size | 10240 |
|
| 273 |
-
| Layers | 42 |
|
| 274 |
-
| Context Length | 32,768 |
|
| 275 |
-
| License | Apache 2.0 |
|
| 276 |
-
|
| 277 |
-
---
|
| 278 |
-
|
| 279 |
-
## How This Differs from Prior Work
|
| 280 |
-
|
| 281 |
-
| | Existing Hybrids | Darwin-4B-Genesis |
|
| 282 |
-
|---|---|---|
|
| 283 |
-
| Examples | Jamba, Nemotron-H, Granite 4.0 | This model |
|
| 284 |
-
| Method | Design → train from scratch | Breed trained models → zero training |
|
| 285 |
-
| Cost | Thousands of GPU·hours | H100 × 1, 2.6 hours |
|
| 286 |
-
| Data | Trillions of tokens | 0 tokens (fitness eval only) |
|
| 287 |
-
| Ratio selection | Manual architecture design | CMA-ES 42D automatic search |
|
| 288 |
-
| Hybrid Vigor | Not tested | Benchmarked and confirmed |
|
| 289 |
-
|
| 290 |
-
---
|
| 291 |
-
|
| 292 |
-
## Future Work
|
| 293 |
-
|
| 294 |
-
- Cross-breeding with RWKV-7, xLSTM, and other architectures
|
| 295 |
-
- Scaling to 31B/35B models with the same technique
|
| 296 |
-
- Paper: "Cross-Architecture FFN Breeding with Evolutionary Optimization"
|
| 297 |
-
- Patents: Methods for selective FFN transplantation across architectures
|
| 298 |
|
| 299 |
-
|
|
|
|
|
|
|
| 300 |
|
| 301 |
-
|
|
|
|
| 302 |
|
| 303 |
-
-
|
| 304 |
-
-
|
| 305 |
-
|
| 306 |
-
- [TeichAI](https://huggingface.co/TeichAI) — Claude Opus Distill model
|
| 307 |
-
- [DavidAU](https://huggingface.co/DavidAU) — DECKARD-Expresso-Universe model
|
| 308 |
-
- [Jackrong](https://huggingface.co/Jackrong) — Claude 4.6 Opus Reasoning Distilled
|
| 309 |
|
| 310 |
---
|
| 311 |
|
|
@@ -319,5 +217,11 @@ Dense 4B model — runs on a single consumer GPU.
|
|
| 319 |
publisher = {Hugging Face},
|
| 320 |
howpublished = {\url{https://huggingface.co/FINAL-Bench/Darwin-4B-Genesis}}
|
| 321 |
}
|
| 322 |
-
|
| 323 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
base_model:
|
| 3 |
+
- FINAL-Bench/Darwin-4B-David
|
| 4 |
+
- Qwen/Qwen3.5-4B
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
language:
|
| 6 |
+
- ko
|
| 7 |
+
- en
|
| 8 |
+
- zh
|
| 9 |
+
- ja
|
| 10 |
+
- de
|
| 11 |
+
- fr
|
| 12 |
+
- es
|
| 13 |
+
license: apache-2.0
|
| 14 |
pipeline_tag: text-generation
|
| 15 |
+
library_name: transformers
|
| 16 |
+
tags:
|
| 17 |
+
- merge
|
| 18 |
+
- evolutionary-merge
|
| 19 |
+
- darwin
|
| 20 |
+
- darwin-v6
|
| 21 |
+
- model-mri
|
| 22 |
+
- cross-architecture
|
| 23 |
+
- ffn-crossbreed
|
| 24 |
+
- cma-es
|
| 25 |
+
- hybrid-vigor
|
| 26 |
+
- transformer-mamba
|
| 27 |
+
- reasoning
|
| 28 |
+
- gemma4
|
| 29 |
+
- qwen3.5
|
| 30 |
+
- gated-deltanet
|
| 31 |
+
- korean
|
| 32 |
+
- multilingual
|
| 33 |
+
- gpqa
|
| 34 |
+
- open-source
|
| 35 |
+
- world-first
|
| 36 |
model-index:
|
| 37 |
+
- name: Darwin-4B-Genesis
|
| 38 |
+
results:
|
| 39 |
+
- task:
|
| 40 |
+
type: text-generation
|
| 41 |
+
name: Korean Cultural Understanding
|
| 42 |
+
dataset:
|
| 43 |
+
name: CLIcK
|
| 44 |
+
type: EunsuKim/CLIcK
|
| 45 |
+
metrics:
|
| 46 |
+
- type: accuracy
|
| 47 |
+
value: 92.0
|
| 48 |
+
name: Accuracy
|
| 49 |
+
verified: false
|
| 50 |
+
- task:
|
| 51 |
+
type: text-generation
|
| 52 |
+
name: Multi-Step Reasoning
|
| 53 |
+
dataset:
|
| 54 |
+
name: MuSR
|
| 55 |
+
type: TAUR-Lab/MuSR
|
| 56 |
+
metrics:
|
| 57 |
+
- type: accuracy
|
| 58 |
+
value: 70.0
|
| 59 |
+
name: Accuracy
|
| 60 |
+
verified: false
|
|
|
|
|
|
|
| 61 |
---
|
| 62 |
|
| 63 |
# Darwin-4B-Genesis
|
|
|
|
| 68 |
<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>
|
| 69 |
</p>
|
| 70 |
|
| 71 |
+
Darwin-4B-Genesis is presented in the paper [Darwin Family: MRI-Trust-Weighted Evolutionary Merging for Training-Free Scaling of Language-Model Reasoning](https://arxiv.org/abs/2605.14386).
|
| 72 |
+
|
| 73 |
<p align="center">
|
| 74 |
<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>
|
| 75 |
<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>
|
|
|
|
| 123 |
|
| 124 |
The child surpasses **both** parents. This is the first demonstration of Hybrid Vigor in AI model breeding.
|
| 125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 126 |
---
|
| 127 |
|
| 128 |
## Benchmarks
|
|
|
|
| 133 |
| **MuSR** (multi-step reasoning) | **70%** | 65% | 0.604 |
|
| 134 |
| **GPQA** (deep reasoning) | ~60% | ~60% | — |
|
| 135 |
|
|
|
|
|
|
|
| 136 |
---
|
| 137 |
|
| 138 |
## How It Works
|
|
|
|
| 163 |
L32: 0.273 █████████████░ 27% Qwen
|
| 164 |
```
|
| 165 |
|
| 166 |
+
Key finding: CMA-ES applied the **most aggressive Qwen blending to the final layers (L29-32)**, which govern output quality.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 167 |
|
| 168 |
---
|
| 169 |
|
|
|
|
| 192 |
|
| 193 |
---
|
| 194 |
|
| 195 |
+
## Genealogy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 196 |
|
| 197 |
+
```
|
| 198 |
+
google/gemma-4-E4B-it × TeichAI/Claude-Opus-Distill-E4B
|
| 199 |
+
→ Darwin-4B-Opus (Gen 1, DARE-TIES merge)
|
| 200 |
|
| 201 |
+
Darwin-4B-Opus × DavidAU/DECKARD-Expresso-Universe
|
| 202 |
+
→ Darwin-4B-David (Gen 2, MRI-guided merge, CLIcK 90%)
|
| 203 |
|
| 204 |
+
Darwin-4B-David × Qwen/Qwen3.5-4B
|
| 205 |
+
→ Darwin-4B-Genesis (Gen 3, Cross-Arch FFN Breeding, CLIcK 92%) ★
|
| 206 |
+
```
|
|
|
|
|
|
|
|
|
|
| 207 |
|
| 208 |
---
|
| 209 |
|
|
|
|
| 217 |
publisher = {Hugging Face},
|
| 218 |
howpublished = {\url{https://huggingface.co/FINAL-Bench/Darwin-4B-Genesis}}
|
| 219 |
}
|
| 220 |
+
|
| 221 |
+
@article{kim2026darwin,
|
| 222 |
+
title={Darwin Family: MRI-Trust-Weighted Evolutionary Merging for Training-Free Scaling of Language-Model Reasoning},
|
| 223 |
+
author={Kim, Taebong and Hong, Youngsik and Kim, Minsik and Choi, Sunyoung and Jang, Jaewon and Shin, Junghoon and Kim, Minseo},
|
| 224 |
+
journal={arXiv preprint arXiv:2605.14386},
|
| 225 |
+
year={2026}
|
| 226 |
+
}
|
| 227 |
+
```
|