N Neurarch Architectures Models Checks Data Docs Open the app

Models / minicpmo

MiniCPM-o-2_6

Reconstructed from its own config.json with no weights read. 259K downloads on Hugging Face.

Our count against the checkpoint

The left number comes from the graph. The right one is the number of scalars in the published weight files. Nothing on this page was tuned to make them agree.

Derived from structure
8.34B
8,340,957,188 parameters
In the published checkpoint
8.67B
8,674,997,028 scalars · safetensors.total, read 2026-08-18
Delta
-3.85%

custom-code This repository ships its own modeling code (`auto_map`, e.g. `configuration_minicpm.py`), so `config.json` names a class in the repo rather than an architecture `transformers` defines. The graph below is what those config keys mean under `transformers` semantics, which is not necessarily what the repo's own file builds. A gap here is a statement about what we read, not about the checkpoint.

What it costs to run

Cost is a roofline estimate on the priced GPU for 10 epochs at batch 32 over 50,000 samples (assumed; no dataset attached). GPU fit is fp32 weights plus gradients plus two Adam moments (16 bytes per parameter) with 1.3x headroom; activations are not included and grow with batch size.

Layers
384
Will it forward-pass
Yes
Priced on
A10G (24GB)
Est. one run
$15541.68
CardMemory
T4 (16GB)weights + activationsdoes not fit
A100 (40GB)weights + activationsdoes not fit
H100 (80GB)weights + activationsdoes not fit

Structure

388 nodes. Output shapes are propagated from the input shape, batch dimension excluded.

LayerTypeOutput shape
1InputInput1 × 32768
2EmbeddingEmbedding1 × 32768 × 3584
3RoPERoPE1 × 32768 × 3584
4Vision inputInput3 × 980 × 980
5PatchEmbedPatch Embed4900 × 1152
6Patch_Position_EmbeddingLearned Pos Embed4900 × 1152
7Vision_LN_1LayerNorm4900 × 1152
8Vision_Attn_1Multi-Head Attention4900 × 1152
9Vision_Add_1Add4900 × 1152
10Vision_FFN_1Feed Forward4900 × 1152
11Vision_LN_2LayerNorm4900 × 1152
12Vision_Attn_2Multi-Head Attention4900 × 1152
13Vision_Add_2Add4900 × 1152
14Vision_FFN_2Feed Forward4900 × 1152
15Vision_LN_3LayerNorm4900 × 1152
16Vision_Attn_3Multi-Head Attention4900 × 1152
17Vision_Add_3Add4900 × 1152
18Vision_FFN_3Feed Forward4900 × 1152
19Vision_LN_4LayerNorm4900 × 1152
20Vision_Attn_4Multi-Head Attention4900 × 1152
21Vision_Add_4Add4900 × 1152
22Vision_FFN_4Feed Forward4900 × 1152
23Vision_LN_5LayerNorm4900 × 1152
24Vision_Attn_5Multi-Head Attention4900 × 1152
25Vision_Add_5Add4900 × 1152
26Vision_FFN_5Feed Forward4900 × 1152
27Vision_LN_6LayerNorm4900 × 1152
28Vision_Attn_6Multi-Head Attention4900 × 1152
29Vision_Add_6Add4900 × 1152
30Vision_FFN_6Feed Forward4900 × 1152
31Vision_LN_7LayerNorm4900 × 1152
32Vision_Attn_7Multi-Head Attention4900 × 1152
33Vision_Add_7Add4900 × 1152
34Vision_FFN_7Feed Forward4900 × 1152
35Vision_LN_8LayerNorm4900 × 1152
36Vision_Attn_8Multi-Head Attention4900 × 1152
37Vision_Add_8Add4900 × 1152
38Vision_FFN_8Feed Forward4900 × 1152
39Vision_LN_9LayerNorm4900 × 1152
40Vision_Attn_9Multi-Head Attention4900 × 1152
41Vision_Add_9Add4900 × 1152
42Vision_FFN_9Feed Forward4900 × 1152
43Vision_LN_10LayerNorm4900 × 1152
44Vision_Attn_10Multi-Head Attention4900 × 1152
45Vision_Add_10Add4900 × 1152
46Vision_FFN_10Feed Forward4900 × 1152
47Vision_LN_11LayerNorm4900 × 1152
48Vision_Attn_11Multi-Head Attention4900 × 1152
49Vision_Add_11Add4900 × 1152
50Vision_FFN_11Feed Forward4900 × 1152
51Vision_LN_12LayerNorm4900 × 1152
52Vision_Attn_12Multi-Head Attention4900 × 1152
53Vision_Add_12Add4900 × 1152
54Vision_FFN_12Feed Forward4900 × 1152
55Vision_LN_13LayerNorm4900 × 1152
56Vision_Attn_13Multi-Head Attention4900 × 1152
57Vision_Add_13Add4900 × 1152
58Vision_FFN_13Feed Forward4900 × 1152
59Vision_LN_14LayerNorm4900 × 1152
60Vision_Attn_14Multi-Head Attention4900 × 1152
61Vision_Add_14Add4900 × 1152
62Vision_FFN_14Feed Forward4900 × 1152
63Vision_LN_15LayerNorm4900 × 1152
64Vision_Attn_15Multi-Head Attention4900 × 1152
65Vision_Add_15Add4900 × 1152
66Vision_FFN_15Feed Forward4900 × 1152
67Vision_LN_16LayerNorm4900 × 1152
68Vision_Attn_16Multi-Head Attention4900 × 1152
69Vision_Add_16Add4900 × 1152
70Vision_FFN_16Feed Forward4900 × 1152
71Vision_LN_17LayerNorm4900 × 1152
72Vision_Attn_17Multi-Head Attention4900 × 1152
73Vision_Add_17Add4900 × 1152
74Vision_FFN_17Feed Forward4900 × 1152
75Vision_LN_18LayerNorm4900 × 1152
76Vision_Attn_18Multi-Head Attention4900 × 1152
77Vision_Add_18Add4900 × 1152
78Vision_FFN_18Feed Forward4900 × 1152
79Vision_LN_19LayerNorm4900 × 1152
80Vision_Attn_19Multi-Head Attention4900 × 1152
81Vision_Add_19Add4900 × 1152
82Vision_FFN_19Feed Forward4900 × 1152
83Vision_LN_20LayerNorm4900 × 1152
84Vision_Attn_20Multi-Head Attention4900 × 1152
85Vision_Add_20Add4900 × 1152
86Vision_FFN_20Feed Forward4900 × 1152
87Vision_LN_21LayerNorm4900 × 1152
88Vision_Attn_21Multi-Head Attention4900 × 1152
89Vision_Add_21Add4900 × 1152
90Vision_FFN_21Feed Forward4900 × 1152
91Vision_LN_22LayerNorm4900 × 1152
92Vision_Attn_22Multi-Head Attention4900 × 1152
93Vision_Add_22Add4900 × 1152
94Vision_FFN_22Feed Forward4900 × 1152
95Vision_LN_23LayerNorm4900 × 1152
96Vision_Attn_23Multi-Head Attention4900 × 1152
97Vision_Add_23Add4900 × 1152
98Vision_FFN_23Feed Forward4900 × 1152
99Vision_LN_24LayerNorm4900 × 1152
100Vision_Attn_24Multi-Head Attention4900 × 1152
101Vision_Add_24Add4900 × 1152
102Vision_FFN_24Feed Forward4900 × 1152
103Vision_LN_25LayerNorm4900 × 1152
104Vision_Attn_25Multi-Head Attention4900 × 1152
105Vision_Add_25Add4900 × 1152
106Vision_FFN_25Feed Forward4900 × 1152
107Vision_LN_26LayerNorm4900 × 1152
108Vision_Attn_26Multi-Head Attention4900 × 1152
109Vision_Add_26Add4900 × 1152
110Vision_FFN_26Feed Forward4900 × 1152
111Vision_LN_27LayerNorm4900 × 1152
112Vision_Attn_27Multi-Head Attention4900 × 1152
113Vision_Add_27Add4900 × 1152
114Vision_FFN_27Feed Forward4900 × 1152
115Vision projectorProjection4900 × 3584
116Vision tokensReshape1 × 4900 × 3584
117Audio inputInput1 × 128 × 1
118Audio feature embedProjection1 × 128 × 1024
119Audio_LN_1LayerNorm1 × 128 × 1024
120Audio_Attn_1Multi-Head Attention1 × 128 × 1024
121Audio_Add_1Add1 × 128 × 1024
122Audio_FFN_1Feed Forward1 × 128 × 1024
123Audio_LN_2LayerNorm1 × 128 × 1024
124Audio_Attn_2Multi-Head Attention1 × 128 × 1024
125Audio_Add_2Add1 × 128 × 1024
126Audio_FFN_2Feed Forward1 × 128 × 1024
127Audio_LN_3LayerNorm1 × 128 × 1024
128Audio_Attn_3Multi-Head Attention1 × 128 × 1024
129Audio_Add_3Add1 × 128 × 1024
130Audio_FFN_3Feed Forward1 × 128 × 1024
131Audio_LN_4LayerNorm1 × 128 × 1024
132Audio_Attn_4Multi-Head Attention1 × 128 × 1024
133Audio_Add_4Add1 × 128 × 1024
134Audio_FFN_4Feed Forward1 × 128 × 1024
135Audio_LN_5LayerNorm1 × 128 × 1024
136Audio_Attn_5Multi-Head Attention1 × 128 × 1024
137Audio_Add_5Add1 × 128 × 1024
138Audio_FFN_5Feed Forward1 × 128 × 1024
139Audio_LN_6LayerNorm1 × 128 × 1024
140Audio_Attn_6Multi-Head Attention1 × 128 × 1024
141Audio_Add_6Add1 × 128 × 1024
142Audio_FFN_6Feed Forward1 × 128 × 1024
143Audio_LN_7LayerNorm1 × 128 × 1024
144Audio_Attn_7Multi-Head Attention1 × 128 × 1024
145Audio_Add_7Add1 × 128 × 1024
146Audio_FFN_7Feed Forward1 × 128 × 1024
147Audio_LN_8LayerNorm1 × 128 × 1024
148Audio_Attn_8Multi-Head Attention1 × 128 × 1024
149Audio_Add_8Add1 × 128 × 1024
150Audio_FFN_8Feed Forward1 × 128 × 1024
151Audio_LN_9LayerNorm1 × 128 × 1024
152Audio_Attn_9Multi-Head Attention1 × 128 × 1024
153Audio_Add_9Add1 × 128 × 1024
154Audio_FFN_9Feed Forward1 × 128 × 1024
155Audio_LN_10LayerNorm1 × 128 × 1024
156Audio_Attn_10Multi-Head Attention1 × 128 × 1024
157Audio_Add_10Add1 × 128 × 1024
158Audio_FFN_10Feed Forward1 × 128 × 1024
159Audio_LN_11LayerNorm1 × 128 × 1024
160Audio_Attn_11Multi-Head Attention1 × 128 × 1024
161Audio_Add_11Add1 × 128 × 1024
162Audio_FFN_11Feed Forward1 × 128 × 1024
163Audio_LN_12LayerNorm1 × 128 × 1024
164Audio_Attn_12Multi-Head Attention1 × 128 × 1024
165Audio_Add_12Add1 × 128 × 1024
166Audio_FFN_12Feed Forward1 × 128 × 1024
167Audio_LN_13LayerNorm1 × 128 × 1024
168Audio_Attn_13Multi-Head Attention1 × 128 × 1024
169Audio_Add_13Add1 × 128 × 1024
170Audio_FFN_13Feed Forward1 × 128 × 1024
171Audio_LN_14LayerNorm1 × 128 × 1024
172Audio_Attn_14Multi-Head Attention1 × 128 × 1024
173Audio_Add_14Add1 × 128 × 1024
174Audio_FFN_14Feed Forward1 × 128 × 1024
175Audio_LN_15LayerNorm1 × 128 × 1024
176Audio_Attn_15Multi-Head Attention1 × 128 × 1024
177Audio_Add_15Add1 × 128 × 1024
178Audio_FFN_15Feed Forward1 × 128 × 1024
179Audio_LN_16LayerNorm1 × 128 × 1024
180Audio_Attn_16Multi-Head Attention1 × 128 × 1024
181Audio_Add_16Add1 × 128 × 1024
182Audio_FFN_16Feed Forward1 × 128 × 1024
183Audio_LN_17LayerNorm1 × 128 × 1024
184Audio_Attn_17Multi-Head Attention1 × 128 × 1024
185Audio_Add_17Add1 × 128 × 1024
186Audio_FFN_17Feed Forward1 × 128 × 1024
187Audio_LN_18LayerNorm1 × 128 × 1024
188Audio_Attn_18Multi-Head Attention1 × 128 × 1024
189Audio_Add_18Add1 × 128 × 1024
190Audio_FFN_18Feed Forward1 × 128 × 1024
191Audio_LN_19LayerNorm1 × 128 × 1024
192Audio_Attn_19Multi-Head Attention1 × 128 × 1024
193Audio_Add_19Add1 × 128 × 1024
194Audio_FFN_19Feed Forward1 × 128 × 1024
195Audio_LN_20LayerNorm1 × 128 × 1024
196Audio_Attn_20Multi-Head Attention1 × 128 × 1024
197Audio_Add_20Add1 × 128 × 1024
198Audio_FFN_20Feed Forward1 × 128 × 1024
199Audio_LN_21LayerNorm1 × 128 × 1024
200Audio_Attn_21Multi-Head Attention1 × 128 × 1024
201Audio_Add_21Add1 × 128 × 1024
202Audio_FFN_21Feed Forward1 × 128 × 1024
203Audio_LN_22LayerNorm1 × 128 × 1024
204Audio_Attn_22Multi-Head Attention1 × 128 × 1024
205Audio_Add_22Add1 × 128 × 1024
206Audio_FFN_22Feed Forward1 × 128 × 1024
207Audio_LN_23LayerNorm1 × 128 × 1024
208Audio_Attn_23Multi-Head Attention1 × 128 × 1024
209Audio_Add_23Add1 × 128 × 1024
210Audio_FFN_23Feed Forward1 × 128 × 1024
211Audio_LN_24LayerNorm1 × 128 × 1024
212Audio_Attn_24Multi-Head Attention1 × 128 × 1024
213Audio_Add_24Add1 × 128 × 1024
214Audio_FFN_24Feed Forward1 × 128 × 1024
215Audio projectorProjection1 × 128 × 3584
216Audio tokensReshape1 × 256 × 3584
217Multimodal fusion (concat tokens)Concatenate1 × 37924 × 3584
218RMSNorm_1_1RMSNorm1 × 37924 × 3584
219Attention_1Grouped Query Attn1 × 37924 × 3584
220Add_1_attnAdd1 × 37924 × 3584
221RMSNorm_1_2RMSNorm1 × 37924 × 3584
222FFN_1SwiGLU1 × 37924 × 3584
223Add_1_ffnAdd1 × 37924 × 3584
224RMSNorm_2_1RMSNorm1 × 37924 × 3584
225Attention_2Grouped Query Attn1 × 37924 × 3584
226Add_2_attnAdd1 × 37924 × 3584
227RMSNorm_2_2RMSNorm1 × 37924 × 3584
228FFN_2SwiGLU1 × 37924 × 3584
229Add_2_ffnAdd1 × 37924 × 3584
230RMSNorm_3_1RMSNorm1 × 37924 × 3584
231Attention_3Grouped Query Attn1 × 37924 × 3584
232Add_3_attnAdd1 × 37924 × 3584
233RMSNorm_3_2RMSNorm1 × 37924 × 3584
234FFN_3SwiGLU1 × 37924 × 3584
235Add_3_ffnAdd1 × 37924 × 3584
236RMSNorm_4_1RMSNorm1 × 37924 × 3584
237Attention_4Grouped Query Attn1 × 37924 × 3584
238Add_4_attnAdd1 × 37924 × 3584
239RMSNorm_4_2RMSNorm1 × 37924 × 3584
240FFN_4SwiGLU1 × 37924 × 3584
241Add_4_ffnAdd1 × 37924 × 3584
242RMSNorm_5_1RMSNorm1 × 37924 × 3584
243Attention_5Grouped Query Attn1 × 37924 × 3584
244Add_5_attnAdd1 × 37924 × 3584
245RMSNorm_5_2RMSNorm1 × 37924 × 3584
246FFN_5SwiGLU1 × 37924 × 3584
247Add_5_ffnAdd1 × 37924 × 3584
248RMSNorm_6_1RMSNorm1 × 37924 × 3584
249Attention_6Grouped Query Attn1 × 37924 × 3584
250Add_6_attnAdd1 × 37924 × 3584
251RMSNorm_6_2RMSNorm1 × 37924 × 3584
252FFN_6SwiGLU1 × 37924 × 3584
253Add_6_ffnAdd1 × 37924 × 3584
254RMSNorm_7_1RMSNorm1 × 37924 × 3584
255Attention_7Grouped Query Attn1 × 37924 × 3584
256Add_7_attnAdd1 × 37924 × 3584
257RMSNorm_7_2RMSNorm1 × 37924 × 3584
258FFN_7SwiGLU1 × 37924 × 3584
259Add_7_ffnAdd1 × 37924 × 3584
260RMSNorm_8_1RMSNorm1 × 37924 × 3584
261Attention_8Grouped Query Attn1 × 37924 × 3584
262Add_8_attnAdd1 × 37924 × 3584
263RMSNorm_8_2RMSNorm1 × 37924 × 3584
264FFN_8SwiGLU1 × 37924 × 3584
265Add_8_ffnAdd1 × 37924 × 3584
266RMSNorm_9_1RMSNorm1 × 37924 × 3584
267Attention_9Grouped Query Attn1 × 37924 × 3584
268Add_9_attnAdd1 × 37924 × 3584
269RMSNorm_9_2RMSNorm1 × 37924 × 3584
270FFN_9SwiGLU1 × 37924 × 3584
271Add_9_ffnAdd1 × 37924 × 3584
272RMSNorm_10_1RMSNorm1 × 37924 × 3584
273Attention_10Grouped Query Attn1 × 37924 × 3584
274Add_10_attnAdd1 × 37924 × 3584
275RMSNorm_10_2RMSNorm1 × 37924 × 3584
276FFN_10SwiGLU1 × 37924 × 3584
277Add_10_ffnAdd1 × 37924 × 3584
278RMSNorm_11_1RMSNorm1 × 37924 × 3584
279Attention_11Grouped Query Attn1 × 37924 × 3584
280Add_11_attnAdd1 × 37924 × 3584
281RMSNorm_11_2RMSNorm1 × 37924 × 3584
282FFN_11SwiGLU1 × 37924 × 3584
283Add_11_ffnAdd1 × 37924 × 3584
284RMSNorm_12_1RMSNorm1 × 37924 × 3584
285Attention_12Grouped Query Attn1 × 37924 × 3584
286Add_12_attnAdd1 × 37924 × 3584
287RMSNorm_12_2RMSNorm1 × 37924 × 3584
288FFN_12SwiGLU1 × 37924 × 3584
289Add_12_ffnAdd1 × 37924 × 3584
290RMSNorm_13_1RMSNorm1 × 37924 × 3584
291Attention_13Grouped Query Attn1 × 37924 × 3584
292Add_13_attnAdd1 × 37924 × 3584
293RMSNorm_13_2RMSNorm1 × 37924 × 3584
294FFN_13SwiGLU1 × 37924 × 3584
295Add_13_ffnAdd1 × 37924 × 3584
296RMSNorm_14_1RMSNorm1 × 37924 × 3584
297Attention_14Grouped Query Attn1 × 37924 × 3584
298Add_14_attnAdd1 × 37924 × 3584
299RMSNorm_14_2RMSNorm1 × 37924 × 3584
300FFN_14SwiGLU1 × 37924 × 3584
301Add_14_ffnAdd1 × 37924 × 3584
302RMSNorm_15_1RMSNorm1 × 37924 × 3584
303Attention_15Grouped Query Attn1 × 37924 × 3584
304Add_15_attnAdd1 × 37924 × 3584
305RMSNorm_15_2RMSNorm1 × 37924 × 3584
306FFN_15SwiGLU1 × 37924 × 3584
307Add_15_ffnAdd1 × 37924 × 3584
308RMSNorm_16_1RMSNorm1 × 37924 × 3584
309Attention_16Grouped Query Attn1 × 37924 × 3584
310Add_16_attnAdd1 × 37924 × 3584
311RMSNorm_16_2RMSNorm1 × 37924 × 3584
312FFN_16SwiGLU1 × 37924 × 3584
313Add_16_ffnAdd1 × 37924 × 3584
314RMSNorm_17_1RMSNorm1 × 37924 × 3584
315Attention_17Grouped Query Attn1 × 37924 × 3584
316Add_17_attnAdd1 × 37924 × 3584
317RMSNorm_17_2RMSNorm1 × 37924 × 3584
318FFN_17SwiGLU1 × 37924 × 3584
319Add_17_ffnAdd1 × 37924 × 3584
320RMSNorm_18_1RMSNorm1 × 37924 × 3584
321Attention_18Grouped Query Attn1 × 37924 × 3584
322Add_18_attnAdd1 × 37924 × 3584
323RMSNorm_18_2RMSNorm1 × 37924 × 3584
324FFN_18SwiGLU1 × 37924 × 3584
325Add_18_ffnAdd1 × 37924 × 3584
326RMSNorm_19_1RMSNorm1 × 37924 × 3584
327Attention_19Grouped Query Attn1 × 37924 × 3584
328Add_19_attnAdd1 × 37924 × 3584
329RMSNorm_19_2RMSNorm1 × 37924 × 3584
330FFN_19SwiGLU1 × 37924 × 3584
331Add_19_ffnAdd1 × 37924 × 3584
332RMSNorm_20_1RMSNorm1 × 37924 × 3584
333Attention_20Grouped Query Attn1 × 37924 × 3584
334Add_20_attnAdd1 × 37924 × 3584
335RMSNorm_20_2RMSNorm1 × 37924 × 3584
336FFN_20SwiGLU1 × 37924 × 3584
337Add_20_ffnAdd1 × 37924 × 3584
338RMSNorm_21_1RMSNorm1 × 37924 × 3584
339Attention_21Grouped Query Attn1 × 37924 × 3584
340Add_21_attnAdd1 × 37924 × 3584
341RMSNorm_21_2RMSNorm1 × 37924 × 3584
342FFN_21SwiGLU1 × 37924 × 3584
343Add_21_ffnAdd1 × 37924 × 3584
344RMSNorm_22_1RMSNorm1 × 37924 × 3584
345Attention_22Grouped Query Attn1 × 37924 × 3584
346Add_22_attnAdd1 × 37924 × 3584
347RMSNorm_22_2RMSNorm1 × 37924 × 3584
348FFN_22SwiGLU1 × 37924 × 3584
349Add_22_ffnAdd1 × 37924 × 3584
350RMSNorm_23_1RMSNorm1 × 37924 × 3584
351Attention_23Grouped Query Attn1 × 37924 × 3584
352Add_23_attnAdd1 × 37924 × 3584
353RMSNorm_23_2RMSNorm1 × 37924 × 3584
354FFN_23SwiGLU1 × 37924 × 3584
355Add_23_ffnAdd1 × 37924 × 3584
356RMSNorm_24_1RMSNorm1 × 37924 × 3584
357Attention_24Grouped Query Attn1 × 37924 × 3584
358Add_24_attnAdd1 × 37924 × 3584
359RMSNorm_24_2RMSNorm1 × 37924 × 3584
360FFN_24SwiGLU1 × 37924 × 3584
361Add_24_ffnAdd1 × 37924 × 3584
362RMSNorm_25_1RMSNorm1 × 37924 × 3584
363Attention_25Grouped Query Attn1 × 37924 × 3584
364Add_25_attnAdd1 × 37924 × 3584
365RMSNorm_25_2RMSNorm1 × 37924 × 3584
366FFN_25SwiGLU1 × 37924 × 3584
367Add_25_ffnAdd1 × 37924 × 3584
368RMSNorm_26_1RMSNorm1 × 37924 × 3584
369Attention_26Grouped Query Attn1 × 37924 × 3584
370Add_26_attnAdd1 × 37924 × 3584
371RMSNorm_26_2RMSNorm1 × 37924 × 3584
372FFN_26SwiGLU1 × 37924 × 3584
373Add_26_ffnAdd1 × 37924 × 3584
374RMSNorm_27_1RMSNorm1 × 37924 × 3584
375Attention_27Grouped Query Attn1 × 37924 × 3584
376Add_27_attnAdd1 × 37924 × 3584
377RMSNorm_27_2RMSNorm1 × 37924 × 3584
378FFN_27SwiGLU1 × 37924 × 3584
379Add_27_ffnAdd1 × 37924 × 3584
380RMSNorm_28_1RMSNorm1 × 37924 × 3584
381Attention_28Grouped Query Attn1 × 37924 × 3584
382Add_28_attnAdd1 × 37924 × 3584
383RMSNorm_28_2RMSNorm1 × 37924 × 3584
384FFN_28SwiGLU1 × 37924 × 3584
385Add_28_ffnAdd1 × 37924 × 3584
386Final_RMSNormRMSNorm1 × 37924 × 3584
387LM_HeadLinear1 × 37924 × 151700
388OutputOutput1 × 37924 × 151700

What the verifier says

warn"RoPE" receives input but its output is not connected. This layer will be unreachable in the forward pass. Fix: Connect the output forward, or add an Output node if this is the final layer.
dead-end
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 18944 (5.29× embedDim). Expected: ~9472. Fix: Set intermediateSize to 9472 for embedDim=3584.
swiglu-dim-convention
infoAt 79 stacked attention layers, residual-branch outputs add up; unscaled init lets activation variance grow with depth. GPT-2/LLaMA-family models scale the residual projections by depth (N(0, 0.02 / √(2L))). Fix: Scale residual output projections by depth: nn.init.normal_(w, std=0.02 / math.sqrt(2 * n_layers))
deep-attention-default-init

Do this to your own model

Same numbers, on a model in your repo, in one command. No account.

pip install neurarch-trace
neurarch-trace openbmb/MiniCPM-o-2_6 --plan --share

Other minicpmo checkpoints

MiniCPM-o-4_5
8.92B derived · -4.84% against the checkpoint