DeepSeek-V4.1-Flash with 50% of its routed experts removed by REAP (Router-weighted Expert Activation Pruning, arXiv:2510.13999). Each MoE layer keeps 192 of its 384 routed experts; the shared expert, attention, embeddings and every other weight are unchanged, and no weights were retrained after pruning.
This is an independent derivative of deepseek-ai/DeepSeek-V4.1-Flash-1017 (revision
1bae0e108899), made by jackmaxwil. It is not affiliated with or endorsed by DeepSeek.
The base model is MIT-licensed and so is this checkpoint.
Sibling release: jackmaxwil/DeepSeek-V4.1-Flash-REAP-75. Calibration statistics, survivor lists and the eval data: jackmaxwil/DeepSeek-V4.1-Flash-REAP-stats.
n_routed_experts is 192 in config.json and inference/config.json; num_experts_per_tok stays 6.keep-prune.json records the source index
and survivor-list hashes; SHA256SUMS covers every file.Run it exactly as the base model (see inference/); only the expert count differs.
REAP scores each expert by its router gate weight times the norm of its output, averaged over the tokens routed to it, and keeps the top 192 per layer. Calibration ran on 2,946,031 tokens (24 sessions of up to 16,384-token records) of English and code, weighted toward agentic coding, terminal and tool use. Sources: nvidia/Open-SWE-Traces, nebius/SWE-rebench-V2-PRs, nvidia/Nemotron-Terminal-Corpus, Agent-Ark/Toucan-1.5M, CIRCL/vulnerability-scores, common-pile/stackexchange_filtered, HuggingFaceFW/finepdfs, corbt/enron-emails, allenai/WildChat-4.8M, HuggingFaceFW/finewiki. No Chinese text was used.
A held-out eval split from the same sources (108 sessions, 437,350 scored positions) was run through the full model and through the full model with the pruned experts masked out of the router. The table compares the pruned model with the full model as teacher: KL over the teacher's top 2,048 logits, top-1 agreement, and the change in NLL of the reference next token (negative means the pruned model gave the reference token higher probability).
| Domain | Scored positions | Top-1 agreement | KL(teacher ‖ pruned) | NLL change (nats) |
|---|---|---|---|---|
| all | 437,350 | 0.803 | 0.810 | -0.138 |
| agentic-python | 63,310 | 0.718 | 1.331 | -0.358 |
| agentic-rust | 49,149 | 0.697 | 1.414 | -0.404 |
| bash | 50,094 | 0.921 | 0.270 | -0.155 |
| business | 32,823 | 0.839 | 0.259 | +0.138 |
| business-email | 15,382 | 0.791 | 0.546 | +0.313 |
| code-diffs | 64,558 | 0.939 | 0.107 | +0.062 |
| cyber | 30,806 | 0.828 | 0.582 | +0.360 |
| english-chat | 15,439 | 0.773 | 0.366 | +0.076 |
| english-prose | 18,873 | 0.834 | 0.550 | +0.354 |
| networking | 32,674 | 0.896 | 0.156 | +0.087 |
| tool-use | 64,242 | 0.662 | 1.931 | -0.707 |
All four candidates scored in the same run:
| Variant | Experts kept | Top-1 agreement | KL | NLL change |
|---|---|---|---|---|
| REAP-33 (not published) | 256 / 384 | 0.842 | 0.511 | +0.025 |
| REAP-50 | 192 / 384 | 0.803 | 0.810 | -0.138 |
| REAP-67 (not published) | 128 / 384 | 0.755 | 1.114 | -0.109 |
| REAP-75 | 96 / 384 | 0.720 | 1.349 | -0.131 |
Read these numbers with care:
model-00048-of-00048.safetensors 102 GBmodel-00047-of-00048.safetensors 102 GBmodel-00017-of-00048.safetensors 3.8 GBmodel-00005-of-00048.safetensors 3.8 GBmodel-00011-of-00048.safetensors 3.8 GBmodel-00023-of-00048.safetensors 3.8 GBmodel-00027-of-00048.safetensors 3.8 GBmodel-00031-of-00048.safetensors 3.8 GBmodel-00035-of-00048.safetensors 3.8 GBmodel-00039-of-00048.safetensors 3.8 GBmodel-00013-of-00048.safetensors 3.8 GBmodel-00014-of-00048.safetensors 3.8 GBmodel-00015-of-00048.safetensors 3.8 GBmodel-00016-of-00048.safetensors 3.8 GBmodel-00018-of-00048.safetensors 3.8 GBmodel-00019-of-00048.safetensors 3.8 GBmodel-00020-of-00048.safetensors 3.8 GBmodel-00021-of-00048.safetensors 3.8 GBmodel-00022-of-00048.safetensors 3.8 GBmodel-00024-of-00048.safetensors 3.8 GBmodel-00025-of-00048.safetensors 3.8 GBmodel-00026-of-00048.safetensors 3.8 GBmodel-00028-of-00048.safetensors 3.8 GBmodel-00029-of-00048.safetensors 3.8 GBmodel-00030-of-00048.safetensors 3.8 GBmodel-00032-of-00048.safetensors 3.8 GBmodel-00033-of-00048.safetensors 3.8 GBmodel-00034-of-00048.safetensors 3.8 GBmodel-00036-of-00048.safetensors 3.8 GBmodel-00037-of-00048.safetensors 3.8 GBmodel-00038-of-00048.safetensors 3.8 GBmodel-00040-of-00048.safetensors 3.8 GBmodel-00041-of-00048.safetensors 3.8 GBmodel-00042-of-00048.safetensors 3.8 GBmodel-00003-of-00048.safetensors 3.8 GBmodel-00004-of-00048.safetensors 3.8 GBmodel-00006-of-00048.safetensors 3.8 GBmodel-00007-of-00048.safetensors 3.8 GBmodel-00008-of-00048.safetensors 3.8 GBmodel-00009-of-00048.safetensors 3.8 GBmodel-00010-of-00048.safetensors 3.8 GBmodel-00012-of-00048.safetensors 3.8 GBmodel-00046-of-00048.safetensors 2.7 GBmodel-00044-of-00048.safetensors 2.7 GBmodel-00045-of-00048.safetensors 2.6 GBmodel-00002-of-00048.safetensors 1.3 GBmodel-00043-of-00048.safetensors 1.3 GBmodel-00001-of-00048.safetensors 971 MB