File size: 15,113 Bytes
47325ae
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
{
    "architectures": [
        "MiniMaxM2ForCausalLM"
    ],
    "attention_dropout": 0.0,
    "attn_type_list": [
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1
    ],
    "auto_map": {
        "AutoConfig": "configuration_minimax_m2.MiniMaxM2Config",
        "AutoModelForCausalLM": "modeling_minimax_m2.MiniMaxM2ForCausalLM"
    },
    "bos_token_id": 1,
    "dtype": "bfloat16",
    "eos_token_id": 2,
    "head_dim": 128,
    "hidden_act": "silu",
    "hidden_size": 3072,
    "initializer_range": 0.02,
    "intermediate_size": 1536,
    "max_position_embeddings": 196608,
    "model_type": "minimax_m2",
    "mtp_transformer_layers": 1,
    "num_attention_heads": 48,
    "num_experts_per_tok": 8,
    "num_hidden_layers": 62,
    "num_key_value_heads": 8,
    "num_local_experts": 256,
    "num_mtp_modules": 3,
    "output_router_logits": false,
    "partial_rotary_factor": 0.5,
    "qk_norm_type": "per_layer",
    "quantization_config": {
        "config_groups": {
            "group_0": {
                "input_activations": {
                    "dynamic": false,
                    "num_bits": 4,
                    "type": "float",
                    "group_size": 16
                },
                "weights": {
                    "dynamic": false,
                    "num_bits": 4,
                    "type": "float",
                    "group_size": 16
                },
                "targets": [
                    "Linear"
                ]
            }
        },
        "ignore": [
            "lm_head",
            "model.layers.0.block_sparse_moe.gate",
            "model.layers.0.self_attn.k_proj",
            "model.layers.0.self_attn.q_proj",
            "model.layers.0.self_attn.v_proj",
            "model.layers.1.block_sparse_moe.gate",
            "model.layers.1.self_attn.k_proj",
            "model.layers.1.self_attn.q_proj",
            "model.layers.1.self_attn.v_proj",
            "model.layers.10.block_sparse_moe.gate",
            "model.layers.10.self_attn.k_proj",
            "model.layers.10.self_attn.q_proj",
            "model.layers.10.self_attn.v_proj",
            "model.layers.11.block_sparse_moe.gate",
            "model.layers.11.self_attn.k_proj",
            "model.layers.11.self_attn.q_proj",
            "model.layers.11.self_attn.v_proj",
            "model.layers.12.block_sparse_moe.gate",
            "model.layers.12.self_attn.k_proj",
            "model.layers.12.self_attn.q_proj",
            "model.layers.12.self_attn.v_proj",
            "model.layers.13.block_sparse_moe.gate",
            "model.layers.13.self_attn.k_proj",
            "model.layers.13.self_attn.q_proj",
            "model.layers.13.self_attn.v_proj",
            "model.layers.14.block_sparse_moe.gate",
            "model.layers.14.self_attn.k_proj",
            "model.layers.14.self_attn.q_proj",
            "model.layers.14.self_attn.v_proj",
            "model.layers.15.block_sparse_moe.gate",
            "model.layers.15.self_attn.k_proj",
            "model.layers.15.self_attn.q_proj",
            "model.layers.15.self_attn.v_proj",
            "model.layers.16.block_sparse_moe.gate",
            "model.layers.16.self_attn.k_proj",
            "model.layers.16.self_attn.q_proj",
            "model.layers.16.self_attn.v_proj",
            "model.layers.17.block_sparse_moe.gate",
            "model.layers.17.self_attn.k_proj",
            "model.layers.17.self_attn.q_proj",
            "model.layers.17.self_attn.v_proj",
            "model.layers.18.block_sparse_moe.gate",
            "model.layers.18.self_attn.k_proj",
            "model.layers.18.self_attn.q_proj",
            "model.layers.18.self_attn.v_proj",
            "model.layers.19.block_sparse_moe.gate",
            "model.layers.19.self_attn.k_proj",
            "model.layers.19.self_attn.q_proj",
            "model.layers.19.self_attn.v_proj",
            "model.layers.2.block_sparse_moe.gate",
            "model.layers.2.self_attn.k_proj",
            "model.layers.2.self_attn.q_proj",
            "model.layers.2.self_attn.v_proj",
            "model.layers.20.block_sparse_moe.gate",
            "model.layers.20.self_attn.k_proj",
            "model.layers.20.self_attn.q_proj",
            "model.layers.20.self_attn.v_proj",
            "model.layers.21.block_sparse_moe.gate",
            "model.layers.21.self_attn.k_proj",
            "model.layers.21.self_attn.q_proj",
            "model.layers.21.self_attn.v_proj",
            "model.layers.22.block_sparse_moe.gate",
            "model.layers.22.self_attn.k_proj",
            "model.layers.22.self_attn.q_proj",
            "model.layers.22.self_attn.v_proj",
            "model.layers.23.block_sparse_moe.gate",
            "model.layers.23.self_attn.k_proj",
            "model.layers.23.self_attn.q_proj",
            "model.layers.23.self_attn.v_proj",
            "model.layers.24.block_sparse_moe.gate",
            "model.layers.24.self_attn.k_proj",
            "model.layers.24.self_attn.q_proj",
            "model.layers.24.self_attn.v_proj",
            "model.layers.25.block_sparse_moe.gate",
            "model.layers.25.self_attn.k_proj",
            "model.layers.25.self_attn.q_proj",
            "model.layers.25.self_attn.v_proj",
            "model.layers.26.block_sparse_moe.gate",
            "model.layers.26.self_attn.k_proj",
            "model.layers.26.self_attn.q_proj",
            "model.layers.26.self_attn.v_proj",
            "model.layers.27.block_sparse_moe.gate",
            "model.layers.27.self_attn.k_proj",
            "model.layers.27.self_attn.q_proj",
            "model.layers.27.self_attn.v_proj",
            "model.layers.28.block_sparse_moe.gate",
            "model.layers.28.self_attn.k_proj",
            "model.layers.28.self_attn.q_proj",
            "model.layers.28.self_attn.v_proj",
            "model.layers.29.block_sparse_moe.gate",
            "model.layers.29.self_attn.k_proj",
            "model.layers.29.self_attn.q_proj",
            "model.layers.29.self_attn.v_proj",
            "model.layers.3.block_sparse_moe.gate",
            "model.layers.3.self_attn.k_proj",
            "model.layers.3.self_attn.q_proj",
            "model.layers.3.self_attn.v_proj",
            "model.layers.30.block_sparse_moe.gate",
            "model.layers.30.self_attn.k_proj",
            "model.layers.30.self_attn.q_proj",
            "model.layers.30.self_attn.v_proj",
            "model.layers.31.block_sparse_moe.gate",
            "model.layers.31.self_attn.k_proj",
            "model.layers.31.self_attn.q_proj",
            "model.layers.31.self_attn.v_proj",
            "model.layers.32.block_sparse_moe.gate",
            "model.layers.32.self_attn.k_proj",
            "model.layers.32.self_attn.q_proj",
            "model.layers.32.self_attn.v_proj",
            "model.layers.33.block_sparse_moe.gate",
            "model.layers.33.self_attn.k_proj",
            "model.layers.33.self_attn.q_proj",
            "model.layers.33.self_attn.v_proj",
            "model.layers.34.block_sparse_moe.gate",
            "model.layers.34.self_attn.k_proj",
            "model.layers.34.self_attn.q_proj",
            "model.layers.34.self_attn.v_proj",
            "model.layers.35.block_sparse_moe.gate",
            "model.layers.35.self_attn.k_proj",
            "model.layers.35.self_attn.q_proj",
            "model.layers.35.self_attn.v_proj",
            "model.layers.36.block_sparse_moe.gate",
            "model.layers.36.self_attn.k_proj",
            "model.layers.36.self_attn.q_proj",
            "model.layers.36.self_attn.v_proj",
            "model.layers.37.block_sparse_moe.gate",
            "model.layers.37.self_attn.k_proj",
            "model.layers.37.self_attn.q_proj",
            "model.layers.37.self_attn.v_proj",
            "model.layers.38.block_sparse_moe.gate",
            "model.layers.38.self_attn.k_proj",
            "model.layers.38.self_attn.q_proj",
            "model.layers.38.self_attn.v_proj",
            "model.layers.39.block_sparse_moe.gate",
            "model.layers.39.self_attn.k_proj",
            "model.layers.39.self_attn.q_proj",
            "model.layers.39.self_attn.v_proj",
            "model.layers.4.block_sparse_moe.gate",
            "model.layers.4.self_attn.k_proj",
            "model.layers.4.self_attn.q_proj",
            "model.layers.4.self_attn.v_proj",
            "model.layers.40.block_sparse_moe.gate",
            "model.layers.40.self_attn.k_proj",
            "model.layers.40.self_attn.q_proj",
            "model.layers.40.self_attn.v_proj",
            "model.layers.41.block_sparse_moe.gate",
            "model.layers.41.self_attn.k_proj",
            "model.layers.41.self_attn.q_proj",
            "model.layers.41.self_attn.v_proj",
            "model.layers.42.block_sparse_moe.gate",
            "model.layers.42.self_attn.k_proj",
            "model.layers.42.self_attn.q_proj",
            "model.layers.42.self_attn.v_proj",
            "model.layers.43.block_sparse_moe.gate",
            "model.layers.43.self_attn.k_proj",
            "model.layers.43.self_attn.q_proj",
            "model.layers.43.self_attn.v_proj",
            "model.layers.44.block_sparse_moe.gate",
            "model.layers.44.self_attn.k_proj",
            "model.layers.44.self_attn.q_proj",
            "model.layers.44.self_attn.v_proj",
            "model.layers.45.block_sparse_moe.gate",
            "model.layers.45.self_attn.k_proj",
            "model.layers.45.self_attn.q_proj",
            "model.layers.45.self_attn.v_proj",
            "model.layers.46.block_sparse_moe.gate",
            "model.layers.46.self_attn.k_proj",
            "model.layers.46.self_attn.q_proj",
            "model.layers.46.self_attn.v_proj",
            "model.layers.47.block_sparse_moe.gate",
            "model.layers.47.self_attn.k_proj",
            "model.layers.47.self_attn.q_proj",
            "model.layers.47.self_attn.v_proj",
            "model.layers.48.block_sparse_moe.gate",
            "model.layers.48.self_attn.k_proj",
            "model.layers.48.self_attn.q_proj",
            "model.layers.48.self_attn.v_proj",
            "model.layers.49.block_sparse_moe.gate",
            "model.layers.49.self_attn.k_proj",
            "model.layers.49.self_attn.q_proj",
            "model.layers.49.self_attn.v_proj",
            "model.layers.5.block_sparse_moe.gate",
            "model.layers.5.self_attn.k_proj",
            "model.layers.5.self_attn.q_proj",
            "model.layers.5.self_attn.v_proj",
            "model.layers.50.block_sparse_moe.gate",
            "model.layers.50.self_attn.k_proj",
            "model.layers.50.self_attn.q_proj",
            "model.layers.50.self_attn.v_proj",
            "model.layers.51.block_sparse_moe.gate",
            "model.layers.51.self_attn.k_proj",
            "model.layers.51.self_attn.q_proj",
            "model.layers.51.self_attn.v_proj",
            "model.layers.52.block_sparse_moe.gate",
            "model.layers.52.self_attn.k_proj",
            "model.layers.52.self_attn.q_proj",
            "model.layers.52.self_attn.v_proj",
            "model.layers.53.block_sparse_moe.gate",
            "model.layers.53.self_attn.k_proj",
            "model.layers.53.self_attn.q_proj",
            "model.layers.53.self_attn.v_proj",
            "model.layers.54.block_sparse_moe.gate",
            "model.layers.54.self_attn.k_proj",
            "model.layers.54.self_attn.q_proj",
            "model.layers.54.self_attn.v_proj",
            "model.layers.55.block_sparse_moe.gate",
            "model.layers.55.self_attn.k_proj",
            "model.layers.55.self_attn.q_proj",
            "model.layers.55.self_attn.v_proj",
            "model.layers.56.block_sparse_moe.gate",
            "model.layers.56.self_attn.k_proj",
            "model.layers.56.self_attn.q_proj",
            "model.layers.56.self_attn.v_proj",
            "model.layers.57.block_sparse_moe.gate",
            "model.layers.57.self_attn.k_proj",
            "model.layers.57.self_attn.q_proj",
            "model.layers.57.self_attn.v_proj",
            "model.layers.58.block_sparse_moe.gate",
            "model.layers.58.self_attn.k_proj",
            "model.layers.58.self_attn.q_proj",
            "model.layers.58.self_attn.v_proj",
            "model.layers.59.block_sparse_moe.gate",
            "model.layers.59.self_attn.k_proj",
            "model.layers.59.self_attn.q_proj",
            "model.layers.59.self_attn.v_proj",
            "model.layers.6.block_sparse_moe.gate",
            "model.layers.6.self_attn.k_proj",
            "model.layers.6.self_attn.q_proj",
            "model.layers.6.self_attn.v_proj",
            "model.layers.60.block_sparse_moe.gate",
            "model.layers.60.self_attn.k_proj",
            "model.layers.60.self_attn.q_proj",
            "model.layers.60.self_attn.v_proj",
            "model.layers.61.block_sparse_moe.gate",
            "model.layers.61.self_attn.k_proj",
            "model.layers.61.self_attn.q_proj",
            "model.layers.61.self_attn.v_proj",
            "model.layers.7.block_sparse_moe.gate",
            "model.layers.7.self_attn.k_proj",
            "model.layers.7.self_attn.q_proj",
            "model.layers.7.self_attn.v_proj",
            "model.layers.8.block_sparse_moe.gate",
            "model.layers.8.self_attn.k_proj",
            "model.layers.8.self_attn.q_proj",
            "model.layers.8.self_attn.v_proj",
            "model.layers.9.block_sparse_moe.gate",
            "model.layers.9.self_attn.k_proj",
            "model.layers.9.self_attn.q_proj",
            "model.layers.9.self_attn.v_proj"
        ],
        "quant_algo": "NVFP4",
        "kv_cache_scheme": {
            "dynamic": false,
            "num_bits": 8,
            "type": "float"
        },
        "producer": {
            "name": "modelopt",
            "version": "0.43.0.dev69+ga4fde491c"
        },
        "quant_method": "modelopt"
    },
    "rms_norm_eps": 1e-06,
    "rope_theta": 5000000,
    "rotary_dim": 64,
    "router_aux_loss_coef": 0.001,
    "router_jitter_noise": 0.0,
    "scoring_func": "sigmoid",
    "shared_intermediate_size": 0,
    "sliding_window": null,
    "tie_word_embeddings": false,
    "transformers_version": "4.56.0",
    "use_cache": true,
    "use_mtp": true,
    "use_qk_norm": true,
    "use_routing_bias": true,
    "vocab_size": 200064
}