WaveCut commited on
Commit
f8ee8dc
·
verified ·
1 Parent(s): 749872a

256-expert calibration statistics (REAM line)

Browse files
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ pretty_name: DeepSeek-V4-Flash-0731 REAM calibration statistics
4
+ tags:
5
+ - mixture-of-experts
6
+ - pruning
7
+ - expert-merging
8
+ - deepseek-v4
9
+ - interpretability
10
+ ---
11
+
12
+ # DeepSeek-V4-Flash-0731 — expert calibration statistics (REAM line)
13
+
14
+ Layerwise routed-expert statistics of
15
+ [`deepseek-ai/DeepSeek-V4-Flash-0731`](https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash-0731)
16
+ (43 MoE layers × 256 experts), collected by running the full model over a
17
+ ~4.9M-token multi-domain calibration mix (multi-turn dialogs, thinking and
18
+ direct modes, rendered with the model's own chat encoder). These are the
19
+ statistics behind the REAM144/96 release line — published so that expert
20
+ selection, pruning, merging and routing research can start WITHOUT the
21
+ expensive H100 collection pass.
22
+
23
+ ## Files
24
+
25
+ - `layer_XX.npz` (one per MoE layer):
26
+ - `saliency [8, 256]` — per-domain REAP-style saliency
27
+ `S_i = f_i · E[gate_i · ‖expert_i(x)‖₂ | i ∈ Top-6]`; domain order in
28
+ `domains.json`;
29
+ - `freq [256]` — Top-6 selection counts over the mix;
30
+ - `coact [256, 256]` — joint Top-6 co-activation counts;
31
+ - `load [256]` — historical load share (sums to 1);
32
+ - `gsum [256]`, `token_count` — auxiliary.
33
+ - `imatrix_raw.npz` — squared-input accumulators per expert
34
+ (`gate [43, 256, H]`, `down [43, 256, I]`, `calls [43]`) — the raw material
35
+ for llama.cpp-style importance matrices of ANY expert subset or merge
36
+ (weighted sums of member rows; see `emit_imatrix_merged.py` in the release
37
+ pipeline).
38
+ - `domains.json` — domain names (canonical order used by the `saliency`
39
+ axis) and mix shares.
40
+ - `nll_heldout.json` — the source model's NLL on the held-out slice of the
41
+ same mix, collected during the pass (a reference point for compressed
42
+ variants).
43
+
44
+ ## What these enable
45
+
46
+ - Reproducing/improving the published selections (each release carries its
47
+ `SELECTION.json`);
48
+ - Expert pruning/merging experiments at zero collection cost;
49
+ - Routing analyses: language/domain specialization by depth, co-activation
50
+ cluster structure, load distributions.
51
+
52
+ ## Collection notes
53
+
54
+ Single pass, batch 6 × 4096 tokens, deterministic packer; the calibration
55
+ texts themselves are NOT included and are not recoverable from these
56
+ aggregates. Related models: the REAM144/96 line and its merge variants
57
+ (see the collection on this profile).
58
+
59
+ MIT, following the source model.
domains.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "domains": ["code", "agentic", "multilingual_chat", "math", "russian", "roleplay", "general_chat", "long_docs"],
3
+ "shares": {
4
+ "code": 0.34,
5
+ "agentic": 0.22,
6
+ "multilingual_chat": 0.15,
7
+ "math": 0.08,
8
+ "general_chat": 0.06,
9
+ "roleplay": 0.06,
10
+ "russian": 0.05,
11
+ "long_docs": 0.04
12
+ },
13
+ "total_tokens": 5000000,
14
+ "heldout_tokens": 200000,
15
+ "note": "domain order matches the saliency axis in layer_XX.npz"
16
+ }
imatrix_raw.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:be60df526bc51acf4531766c3679288c20fa2824a3c441a9ccec0de38520cb4c
3
+ size 541066304
layer_00.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e097a2be63abf3e315c9dc66ef0bd1ce7fc72106cda6cacef47bc1f745be7a88
3
+ size 548310
layer_01.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77457642ff6e5b709265f244585619905554d0bf9331a345d97875697fdaaa48
3
+ size 548310
layer_02.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:74ecf990513a75afeca2f21c138acc08ed89b21cc3b575d1664fdfad29ae6eab
3
+ size 548310
layer_03.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2c3636d41b5a3919853a8be441fe5b53cba2ebf9c64472da8f40ef2300baf36
3
+ size 548310
layer_04.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b8ee7d5187676da86b0a3b1988ce648440a96a1d03054a69c8a329e7464d59f
3
+ size 548310
layer_05.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08a0239f342781864ffbaf8f01ebb251d494d7405c1931301353e0168f409174
3
+ size 548310
layer_06.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2aa2194add8624255726825761794b0d3f3ac246135502f4e4598ace2f901157
3
+ size 548310
layer_07.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34e23ab9d843b6002bd6401c14690b6257e6e369791fa21e704559233413afb5
3
+ size 548310
layer_08.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bec8c2cb8205466d27560efef67b5b479f4b7fef8dd07814950475d39900997
3
+ size 548310
layer_09.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d6d04d6e09defd0af54b31a7d7863092695f54b3611deeb0bd51911261f2b263
3
+ size 548310
layer_10.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9f8b13688edebc7b009da46559c81a740766dea598a93f8d5437e28f638b996f
3
+ size 548310
layer_11.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9724d355cabffadfcbb1417131b5a9a845744b9253a28ed6738534d8e1a99d81
3
+ size 548310
layer_12.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e7a41745a4dc21ae93253894e7dedb79593799ef68889f4f63faf162a9b0c466
3
+ size 548310
layer_13.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b58505363b1feceff63259dc6d37dd90520137b5f62d0d2c2b615e079b8bed50
3
+ size 548310
layer_14.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2bc6cd61b0e1db4753e443fe954a006376fc6d52067915949681fc9b626d1776
3
+ size 548310
layer_15.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b9f0e714c048dbbfbaa79b1f5b7f5dad510a0fbf92b42e710d7abe416ad2f79
3
+ size 548310
layer_16.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c9731a68768c0190de9d97af6ce4a60ed179f54c3c097a6065551553bfdede5
3
+ size 548310
layer_17.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b19fbc0df7602e9a77c13aae87dfc0e3a80ed4b531efb175efdd8ffec971acc6
3
+ size 548310
layer_18.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb207ef4657487e90ae28f2e6aa38e7b4294f4c29e13fade1b500ceed7bf206b
3
+ size 548310
layer_19.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2d2b4e573de7d08b4e9dd6f4c8dab6565dd985a88293cf795a751473d6be267
3
+ size 548310
layer_20.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:935abafbb51bc53820eeabefab2a13b55b4d207d207fd40566f2bb7be0ccbb0f
3
+ size 548310
layer_21.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90490d3ee0ca9a7cd18883ee557385f2d7a3e549e1f04c46618b6b79ce74d3f3
3
+ size 548310
layer_22.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62377e373300c67384995c0ae96925b6de1ffbd61d3c4699d728abbc1df6c191
3
+ size 548310
layer_23.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:617adab3dc1ce8b35c37b126f589de61522d9ba68b2052615147e0c7ee568519
3
+ size 548310
layer_24.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2f948b638ef6974fdae553d0c5991f8d9a7bc027bfb004c65ed8d09fc50f7f0
3
+ size 548310
layer_25.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75e5b1262f5f7619a97d8390adc9bceb3a2d4aa761e9893a8338348874c03cda
3
+ size 548310
layer_26.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7fc101745e7f3426a02d1e5c6aa52bc773f94f166d7c0abe57e9d2b1f05bdf0d
3
+ size 548310
layer_27.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6bfb2a529a8dcb6ce23f02f2829bc723a490630cb5a31f385f19581926526fa
3
+ size 548310
layer_28.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67f36d02c5104cf862d69f481bc1afc80eec1be9c31a84104c963e2af3ee4e34
3
+ size 548310
layer_29.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43fb2ca9892eb4bf2f34c22be80a76d8383f4463c90ebf8a3fa5ef26f4950e8c
3
+ size 548310
layer_30.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30a33bdcb7b2e3e60f10a4e21f3d4fc794d000ddd65c6447ea41d556088d303d
3
+ size 548310
layer_31.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f82b7ddfdcbc8c30a9a31971fe9495fce5d8d9ea9a9e4d94165b8851f31b0af1
3
+ size 548310
layer_32.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:587a3fad6fab1dfbe6b9e2cae6dc6bb9a99c3ac4eb46984e918989df49043f01
3
+ size 548310
layer_33.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3ee27a5e89bb93e9a2242145cc77278ec5a01ce3724892b62e14579ccc925a1f
3
+ size 548310
layer_34.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:093e26e7c71957e3a96cd52f2fb6ee22f3ba8bc8b8b8e85f0146f533fcbbae8d
3
+ size 548310
layer_35.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dedd68b44a3f0b04dca7704ff0a68377f6c2ac8a315a01c2ea107bf5d0dc0b38
3
+ size 548310
layer_36.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:939cbdd950b9cbac8f0a4ddc6895dc3cfb9f3c2bd051dbedb6b17c4eef77dd40
3
+ size 548310
layer_37.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cfc4943fa4d1fcf2141c4863ed0ceb9f09dde7c74168bd16541d1f88383aa3d
3
+ size 548310
layer_38.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7d5a70c4b1dbe603fa293ec8cb2898ad7b27fec1d95b2eb49cfe5c4dbfcc628
3
+ size 548310
layer_39.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8abd3788493a6045495c98e8a5b40636ccd6286a8ee3984aa068f16979c9e9c2
3
+ size 548310
layer_40.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9cdad05f2ea31b34218fdb47e4d645fe3989b9d989ce06612479832926233aa3
3
+ size 548310
layer_41.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a2b4b02a990d313a54733a5e3889f557415e23b2b6f85a32ee83ce6c9fa2d8e
3
+ size 548310
layer_42.npz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:04aedc703f5c07d70fe36627b24f9ce590ddb6f270a6dcbcc4b34fa31311c11f
3
+ size 548310
nll_heldout.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"nll": null, "note": "measured on ds4 --perplexity-file"}