notforu777 commited on
Commit
79f6d2f
·
verified ·
1 Parent(s): 933ce48

builds/ling3-moe: Ling 3's markup and vocabulary (BailingMoeV3, bailingmoe3)

Browse files

Recipe ling3-moe (MoE shares) rendered through inclusionAI/Ling-3.0-flash's own template (auto_fmt); vocab sweep over its 157184-row tokenizer (100% reachable). For Ling-3.0-flash-Sante (same tokenizer/template). calib_train 4.69M tokens, calib_longctx 0.78M.

builds/ling3-moe/calib_longctx.manifest.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19fb375a62a9121bd6860476e5e70ad4550de0526c1b478e613c65c3a9d9f20d
3
+ size 7145
builds/ling3-moe/calib_longctx.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23ba0aab0b6ce38c3758665c85787282fab8542a04380355b83876ba4dc30f8f
3
+ size 2662969
builds/ling3-moe/calib_train.manifest.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2269929a8911be17d35c17849852cf07728a0730498220fb01f49688cf872a5
3
+ size 986536
builds/ling3-moe/calib_train.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5becda335fd68da747199170af7e6d9186988074b2920e5ba1b796e9f2ffcb65
3
+ size 15207782
builds/ling3-moe/manifest.json ADDED
@@ -0,0 +1,273 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "build": "ling3-moe",
3
+ "built_at": null,
4
+ "build_tool_version": "build.py/1.0",
5
+ "recipe": {
6
+ "path": "recipes/ling3-moe.yaml",
7
+ "sha256": "93a29eec37d9e63484ab121f011b28ced8302afcc07074afb2b993cd1a91d884",
8
+ "seed": 20261013
9
+ },
10
+ "model": {
11
+ "repo": "inclusionAI/Ling-3.0-flash",
12
+ "tokenizer": "/src/tokenizer.json",
13
+ "gguf": "/gguf/ling3-bf16.gguf",
14
+ "vocab_size": 157184,
15
+ "layers": 72,
16
+ "sliding_window": null,
17
+ "context_length": 262144,
18
+ "llama_cpp_commit": "097cf33d9499"
19
+ },
20
+ "tokenizer": {
21
+ "path": "/src/tokenizer.json",
22
+ "sha256": "40fb9d7d7795b8bd305aeff39ce9963f3f450915b9553f2938e009be9a1fed60",
23
+ "rows": 157184,
24
+ "pre_tokenizer": "llama4"
25
+ },
26
+ "llama_cpp": {
27
+ "commit": "097cf33d9499",
28
+ "note": "llama-imatrix must be given --parse-special or the chat markup in calib_train.txt is tokenised as literal text (parse_special defaults to false in that tool)"
29
+ },
30
+ "calib_train": {
31
+ "path": "calib_train.txt",
32
+ "sha256": "5becda335fd68da747199170af7e6d9186988074b2920e5ba1b796e9f2ffcb65",
33
+ "bytes": 15207782,
34
+ "documents": 2726,
35
+ "tokens": 4685467,
36
+ "target_tokens": 5000000,
37
+ "document_separator": "\n\n",
38
+ "shares_requested_percent": {
39
+ "agentic": 22.0,
40
+ "code": 16.0,
41
+ "graphics": 4.0,
42
+ "longctx": 10.0,
43
+ "multilingual": 18.0,
44
+ "reasoning": 12.0,
45
+ "structured": 6.0,
46
+ "vocab_sweep": 12.0
47
+ },
48
+ "shares_actual_percent": {
49
+ "agentic": 23.585,
50
+ "code": 17.097,
51
+ "graphics": 4.272,
52
+ "longctx": 11.443,
53
+ "multilingual": 19.421,
54
+ "reasoning": 12.817,
55
+ "structured": 4.626,
56
+ "vocab_sweep": 6.739
57
+ },
58
+ "documents_by_category": {
59
+ "agentic": 377,
60
+ "code": 486,
61
+ "graphics": 120,
62
+ "longctx": 17,
63
+ "multilingual": 171,
64
+ "reasoning": 972,
65
+ "structured": 451,
66
+ "vocab_sweep": 132
67
+ },
68
+ "tokens_by_category": {
69
+ "agentic": 1105082,
70
+ "code": 801088,
71
+ "graphics": 200155,
72
+ "longctx": 536153,
73
+ "multilingual": 909943,
74
+ "reasoning": 600515,
75
+ "structured": 216772,
76
+ "vocab_sweep": 315759
77
+ },
78
+ "synthetic_tokens": 2089024,
79
+ "synthetic_percent": 44.585,
80
+ "document_tokens": {
81
+ "p50": 701,
82
+ "p90": 3829,
83
+ "p95": 5871,
84
+ "p99": 19278,
85
+ "max": 54143,
86
+ "min": 61
87
+ }
88
+ },
89
+ "pool_sources": {
90
+ "pool/_quarantine/eval-residue.jsonl": {
91
+ "sha256": "9e7703a3c205b425f83f17110cf7a00b7558f8ed501b45f1fcb0f4145f5f2579",
92
+ "bytes": 1635378,
93
+ "documents": 64
94
+ },
95
+ "pool/_quarantine/removed.jsonl": {
96
+ "sha256": "28615d8080e4b3b95a29447402e8163786c42e23e6c5175a18783a591bde13d0",
97
+ "bytes": 8600246,
98
+ "documents": 1056
99
+ },
100
+ "pool/_quarantine/untokenizable.jsonl": {
101
+ "sha256": "8226d1b281ce13ceab909c06383d78176b3cc5c2d3f1a49094ef808e3f220335",
102
+ "bytes": 88848,
103
+ "documents": 2
104
+ },
105
+ "pool/agentic/synthetic/conversations.jsonl": {
106
+ "sha256": "40478e56fdee9bf965b0e56800e3d940e772db11e856f0170d92043d86861973",
107
+ "bytes": 5641610,
108
+ "documents": 531
109
+ },
110
+ "pool/agentic/synthetic/legacy-dsv4-rendered.jsonl": {
111
+ "sha256": "24e99d36930e6547e90058654b712ae50a1294a1cdc4da7b38ae688a97537dca",
112
+ "bytes": 948845,
113
+ "documents": 50
114
+ },
115
+ "pool/code/legacy-dsv4.jsonl": {
116
+ "sha256": "28076d09ec882624d77b30289094ab65ae8c1fb57d3dceb55011b5e81fa99916",
117
+ "bytes": 471958,
118
+ "documents": 119
119
+ },
120
+ "pool/code/repos.jsonl": {
121
+ "sha256": "549d67465b052d78a4277da12033840309d767cd897f7d1280df408b43bbc916",
122
+ "bytes": 9133710,
123
+ "documents": 831
124
+ },
125
+ "pool/german/agentic_de.jsonl": {
126
+ "sha256": "f7afba5c9872c9e69f6fc9b0e4eb72dc1e80d8eaef1c92c736636b924eb00609",
127
+ "bytes": 1230904,
128
+ "documents": 735
129
+ },
130
+ "pool/german/germanrag.jsonl": {
131
+ "sha256": "23a5c7e8d2cea57ab8e01d5c8b953b81e6eb7811f12dae4b59b8396ceebf27ba",
132
+ "bytes": 1029498,
133
+ "documents": 265
134
+ },
135
+ "pool/german/longctx.jsonl": {
136
+ "sha256": "26d9b0f152105337fad88e098dcffa7dbcae8fe3eccd8c0a35850603b485ea60",
137
+ "bytes": 2488298,
138
+ "documents": 24
139
+ },
140
+ "pool/german/oasst2.jsonl": {
141
+ "sha256": "8ca93fad0812efdc21ed2ce06123627e97f41345eda8939419bd5af9b131ac01",
142
+ "bytes": 888635,
143
+ "documents": 410
144
+ },
145
+ "pool/german/ultrachat_de.jsonl": {
146
+ "sha256": "d42ccac07f7187c1f55f4de99335be4164f3b663d4319c2c29c31f234019d280",
147
+ "bytes": 1698445,
148
+ "documents": 488
149
+ },
150
+ "pool/german/wikipedia.jsonl": {
151
+ "sha256": "f0771f38f5f42aee0ff88741b7f6188b8b3bad3f0927181f1038716374285494",
152
+ "bytes": 2291623,
153
+ "documents": 443
154
+ },
155
+ "pool/graphics/legacy-dsv4.jsonl": {
156
+ "sha256": "09e62f79a8859e2c0f275bc38b93dde63f5751660eb3e9fc8636782cb47d3689",
157
+ "bytes": 2068241,
158
+ "documents": 335
159
+ },
160
+ "pool/graphics/repos.jsonl": {
161
+ "sha256": "862600d1842bd530e65884d8bc4bfcfa8892ddd1e430a927f30d35651539b7d1",
162
+ "bytes": 6231338,
163
+ "documents": 827
164
+ },
165
+ "pool/longctx/legacy-dsv4.jsonl": {
166
+ "sha256": "1f17bf4553c25558953fd746ce3bce278e932690e02d926395f8ecf21dacc100",
167
+ "bytes": 591648,
168
+ "documents": 10
169
+ },
170
+ "pool/longctx/module-bundles.jsonl": {
171
+ "sha256": "767b0cb154af75a8e5023e948f39fb3cbef424c99ba643779c5bd3e289945bb5",
172
+ "bytes": 9837165,
173
+ "documents": 83
174
+ },
175
+ "pool/multilingual/legacy-dsv4-wikipedia.jsonl": {
176
+ "sha256": "aa0344e84c60e1c423ac543d205bad77e3c0cc475799ddcb76d4e338cbdfb266",
177
+ "bytes": 420903,
178
+ "documents": 14
179
+ },
180
+ "pool/multilingual/wikipedia.jsonl": {
181
+ "sha256": "0cd11f4e6a768439f37aa354c422eb980d161e9ac2a8dde856a2f61a362480d0",
182
+ "bytes": 12207837,
183
+ "documents": 687
184
+ },
185
+ "pool/reasoning/synthetic/conversations.jsonl": {
186
+ "sha256": "9e890645baaad2045ac87ce9a9649082ccc37bec1c3d72b1da2a5b6c92af3e2f",
187
+ "bytes": 6724419,
188
+ "documents": 3015
189
+ },
190
+ "pool/reasoning/synthetic/legacy-dsv4-rendered.jsonl": {
191
+ "sha256": "e690d0acb22a427e0b17f57ee8f255a36c5550de23775a52c9117198b02e8f95",
192
+ "bytes": 440412,
193
+ "documents": 153
194
+ },
195
+ "pool/structured/legacy-dsv4.jsonl": {
196
+ "sha256": "e0a6537986934b5418b6d711c2712728979e1019eb6ca40885429fc068e8c6d4",
197
+ "bytes": 108168,
198
+ "documents": 19
199
+ },
200
+ "pool/structured/repos.jsonl": {
201
+ "sha256": "631c8fd66fa7fc1d60fe50e257385512c77e0c1d0e1a86f88a482c29e0b2f83c",
202
+ "bytes": 1226353,
203
+ "documents": 227
204
+ },
205
+ "pool/structured/synthetic/structured-in-chat.jsonl": {
206
+ "sha256": "435a1be5a7b8bd230105b85fbe708649fb2ddef5a65198bdd808bcff1b3d1b64",
207
+ "bytes": 395812,
208
+ "documents": 207
209
+ },
210
+ "pool/vocab_sweep/synthetic/kolibri-1-moe.jsonl": {
211
+ "sha256": "3d165633bb5201090c11a63671e4f993e054cc342881007eb03b29e03d89cf27",
212
+ "bytes": 1323571,
213
+ "documents": 110
214
+ },
215
+ "pool/vocab_sweep/synthetic/legacy-dsv4-rendered.jsonl": {
216
+ "sha256": "e30414d83fc63d1a5bb293a50d174eb65385efa237111f7ae001f923a9498424",
217
+ "bytes": 745316,
218
+ "documents": 65
219
+ },
220
+ "pool/vocab_sweep/synthetic/ling3-moe.jsonl": {
221
+ "sha256": "3ea94880f0d64aad55055664957266d3b124249c20a2d5a09e27854d7acf35e6",
222
+ "bytes": 1459777,
223
+ "documents": 132
224
+ },
225
+ "pool/vocab_sweep/synthetic/minicpm-v-4.6-moe.jsonl": {
226
+ "sha256": "c8bcca4781cb4b842f42e3c4c5c699effde6aca401e85f656ace5fd4946db2b4",
227
+ "bytes": 2509124,
228
+ "documents": 208
229
+ },
230
+ "pool/vocab_sweep/synthetic/minicpm-v-4.6.jsonl": {
231
+ "sha256": "c8bcca4781cb4b842f42e3c4c5c699effde6aca401e85f656ace5fd4946db2b4",
232
+ "bytes": 2509124,
233
+ "documents": 208
234
+ },
235
+ "pool/vocab_sweep/synthetic/minicpm-v-4.7-moe.jsonl": {
236
+ "sha256": "e2c3b5b513d5c43e4f57d04f2094b8d62ba775bf8559b2f116327bbc36321417",
237
+ "bytes": 2746220,
238
+ "documents": 216
239
+ },
240
+ "pool/vocab_sweep/synthetic/minicpm-v-4.7.jsonl": {
241
+ "sha256": "2dfd825f85e2c9f31a28e3d1dc1a1fe25b3fa06fd0b3ac94630d21130a3c0cec",
242
+ "bytes": 2512036,
243
+ "documents": 208
244
+ },
245
+ "pool/vocab_sweep/synthetic/muse-glimmer-30b.jsonl": {
246
+ "sha256": "4eb612024896df3b979fa74b92cc27ddbce56af100a14611bcfccd4ea9ce92c5",
247
+ "bytes": 2068343,
248
+ "documents": 172
249
+ },
250
+ "pool/vocab_sweep/synthetic/nemotron-3.5-lightning.jsonl": {
251
+ "sha256": "cd73220ef1ac82132a4c2b217f77af7b2eaea2c06939394fe36650221cc22a1d",
252
+ "bytes": 1269096,
253
+ "documents": 113
254
+ },
255
+ "pool/vocab_sweep/synthetic/qwen3.8-flash-next-moe.jsonl": {
256
+ "sha256": "ee4657dd2394309d06d6e6a978e020d535e0f899c0b80ca2067672889a276913",
257
+ "bytes": 2508961,
258
+ "documents": 208
259
+ }
260
+ },
261
+ "calib_longctx": {
262
+ "path": "calib_longctx.txt",
263
+ "sha256": "23ba0aab0b6ce38c3758665c85787282fab8542a04380355b83876ba4dc30f8f",
264
+ "documents": 28,
265
+ "tokens": 781245,
266
+ "document_tokens": {
267
+ "min": 17304,
268
+ "p50": 32742,
269
+ "max": 32767
270
+ },
271
+ "contiguous": true
272
+ }
273
+ }
recipes/ling3-moe.yaml ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Calibration recipe with the MoE shares, Ling 3's markup and vocabulary (BailingMoeV3, bailingmoe3).
2
+ # Written from minicpm-v-4.6-moe.yaml. Renders through inclusionAI/Ling-3.0-flash's own template (auto_fmt)
3
+ # and sweeps its 157184-row vocabulary; every Ling 3 model with the same tokenizer.json and template
4
+ # (sha-checked by the build node) takes this build. The August Ling 3.0 imatrix had none of this: a flat
5
+ # text corpus, tokenized without --parse-special.
6
+ #
7
+ # The template: <role>SYSTEM|HUMAN|ASSISTANT|OBSERVATION</role> ... <|role_end|>; enable_thinking (default on)
8
+ # writes "detailed thinking on|off" into the system turn and opens the answer with "\n<think>" (on) or
9
+ # "\n<think></think>" (off); auto_fmt passes enable_thinking per document, so the thinking split of the
10
+ # recipe reaches it. Tool calls are XML (<tool_call>name<arg_key>..</arg_key><arg_value>..</arg_value>),
11
+ # results come back in <tool_response>. No reasoning effort.
12
+ #
13
+ # Architecture facts that matter here (the large BailingMoeV3):
14
+ # hidden_size = 4096 (%256 = 0)
15
+ # moe_intermediate_size = 1280 (%256 = 0), shared expert 1280; the 4 leading dense blocks 10240
16
+ # 512 routed experts, 8 active: ~5M * 8 / 512 = ~78k tokens per expert
17
+ # 63 KDA (linear attention) and 9 MLA blocks; untied embeddings
18
+ #
19
+ # Shares (they sum to 100, so they are percentages): the MoE ones of minicpm-v-4.6-moe.
20
+ # agentic 22 tool markup is a dense token set natural text never emits
21
+ # code 16
22
+ # reasoning 12 on MoE the slack goes to multilingual and vocab, which reach rarely routed experts
23
+ # multilingual 18 non-Latin text routes to experts English never touches
24
+ # longctx 10 no sliding window; long range also gets calib_longctx
25
+ # vocab_sweep 12 regenerated against THIS tokenizer; every id routes somewhere
26
+ # structured 6 JSON, YAML, TOML, SQL, as files and inside assistant turns
27
+ # graphics 4
28
+
29
+ name: ling3-moe
30
+
31
+ model:
32
+ repo: inclusionAI/Ling-3.0-flash
33
+ tokenizer: /src/tokenizer.json
34
+ gguf: /gguf/ling3-bf16.gguf
35
+ vocab_size: 157184
36
+ layers: 72
37
+ sliding_window: null
38
+ context_length: 262144
39
+ llama_cpp_commit: '097cf33d9499'
40
+
41
+ seed: 20261013
42
+
43
+ chat:
44
+ format: auto
45
+ add_bos_per_document: false
46
+
47
+ calib_train:
48
+ target_tokens: 5000000
49
+ max_doc_fraction:
50
+ default: 0.05
51
+ longctx: 0.12
52
+ shares:
53
+ agentic: 22
54
+ code: 16
55
+ reasoning: 12
56
+ multilingual: 18
57
+ longctx: 10
58
+ vocab_sweep: 12
59
+ structured: 6
60
+ graphics: 4
61
+
62
+ calib_longctx:
63
+ target_tokens: 750000
64
+ doc_tokens_min: 16384
65
+ doc_tokens_max: 32768
66
+ sources: [longctx]
67
+
68
+ exclude:
69
+ # Anything pre-rendered with another model's markup.
70
+ render: [dsv4, nemotron, muse-glimmer]
71
+ provenance_key: excluded_from_builds
72
+
73
+ notes:
74
+ imatrix: >
75
+ llama-imatrix defaults to parse_special = false. Without --parse-special the
76
+ chat markup in calib_train.txt is tokenised as literal punctuation and the
77
+ agentic and reasoning slices calibrate on text the model never sees.