N Neurarch Architectures Models Checks Data Docs Open the app

Models / minicpmv

MiniCPM-V-4_5

Reconstructed from its own config.json with no weights read. 265K 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.61B
8,611,789,364 parameters
In the published checkpoint
8.70B
8,695,895,280 scalars · safetensors.total, read 2026-08-18
Delta
-0.97%

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
333
Will it forward-pass
Yes
Priced on
A10G (24GB)
Est. one run
$24700.72
CardMemory
T4 (16GB)weights + activationsdoes not fit
A100 (40GB)weights + activationsdoes not fit
H100 (80GB)weights + activationsdoes not fit

Structure

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

LayerTypeOutput shape
1InputInput1 × 40960
2EmbeddingEmbedding1 × 40960 × 4096
3RoPERoPE1 × 40960 × 4096
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 × 4096
116Vision tokensReshape1 × 4900 × 4096
117Multimodal fusion (concat tokens)Concatenate1 × 45860 × 4096
118RMSNorm_1_1RMSNorm1 × 45860 × 4096
119Attention_1Grouped Query Attn1 × 45860 × 4096
120Add_1_attnAdd1 × 45860 × 4096
121RMSNorm_1_2RMSNorm1 × 45860 × 4096
122FFN_1SwiGLU1 × 45860 × 4096
123Add_1_ffnAdd1 × 45860 × 4096
124RMSNorm_2_1RMSNorm1 × 45860 × 4096
125Attention_2Grouped Query Attn1 × 45860 × 4096
126Add_2_attnAdd1 × 45860 × 4096
127RMSNorm_2_2RMSNorm1 × 45860 × 4096
128FFN_2SwiGLU1 × 45860 × 4096
129Add_2_ffnAdd1 × 45860 × 4096
130RMSNorm_3_1RMSNorm1 × 45860 × 4096
131Attention_3Grouped Query Attn1 × 45860 × 4096
132Add_3_attnAdd1 × 45860 × 4096
133RMSNorm_3_2RMSNorm1 × 45860 × 4096
134FFN_3SwiGLU1 × 45860 × 4096
135Add_3_ffnAdd1 × 45860 × 4096
136RMSNorm_4_1RMSNorm1 × 45860 × 4096
137Attention_4Grouped Query Attn1 × 45860 × 4096
138Add_4_attnAdd1 × 45860 × 4096
139RMSNorm_4_2RMSNorm1 × 45860 × 4096
140FFN_4SwiGLU1 × 45860 × 4096
141Add_4_ffnAdd1 × 45860 × 4096
142RMSNorm_5_1RMSNorm1 × 45860 × 4096
143Attention_5Grouped Query Attn1 × 45860 × 4096
144Add_5_attnAdd1 × 45860 × 4096
145RMSNorm_5_2RMSNorm1 × 45860 × 4096
146FFN_5SwiGLU1 × 45860 × 4096
147Add_5_ffnAdd1 × 45860 × 4096
148RMSNorm_6_1RMSNorm1 × 45860 × 4096
149Attention_6Grouped Query Attn1 × 45860 × 4096
150Add_6_attnAdd1 × 45860 × 4096
151RMSNorm_6_2RMSNorm1 × 45860 × 4096
152FFN_6SwiGLU1 × 45860 × 4096
153Add_6_ffnAdd1 × 45860 × 4096
154RMSNorm_7_1RMSNorm1 × 45860 × 4096
155Attention_7Grouped Query Attn1 × 45860 × 4096
156Add_7_attnAdd1 × 45860 × 4096
157RMSNorm_7_2RMSNorm1 × 45860 × 4096
158FFN_7SwiGLU1 × 45860 × 4096
159Add_7_ffnAdd1 × 45860 × 4096
160RMSNorm_8_1RMSNorm1 × 45860 × 4096
161Attention_8Grouped Query Attn1 × 45860 × 4096
162Add_8_attnAdd1 × 45860 × 4096
163RMSNorm_8_2RMSNorm1 × 45860 × 4096
164FFN_8SwiGLU1 × 45860 × 4096
165Add_8_ffnAdd1 × 45860 × 4096
166RMSNorm_9_1RMSNorm1 × 45860 × 4096
167Attention_9Grouped Query Attn1 × 45860 × 4096
168Add_9_attnAdd1 × 45860 × 4096
169RMSNorm_9_2RMSNorm1 × 45860 × 4096
170FFN_9SwiGLU1 × 45860 × 4096
171Add_9_ffnAdd1 × 45860 × 4096
172RMSNorm_10_1RMSNorm1 × 45860 × 4096
173Attention_10Grouped Query Attn1 × 45860 × 4096
174Add_10_attnAdd1 × 45860 × 4096
175RMSNorm_10_2RMSNorm1 × 45860 × 4096
176FFN_10SwiGLU1 × 45860 × 4096
177Add_10_ffnAdd1 × 45860 × 4096
178RMSNorm_11_1RMSNorm1 × 45860 × 4096
179Attention_11Grouped Query Attn1 × 45860 × 4096
180Add_11_attnAdd1 × 45860 × 4096
181RMSNorm_11_2RMSNorm1 × 45860 × 4096
182FFN_11SwiGLU1 × 45860 × 4096
183Add_11_ffnAdd1 × 45860 × 4096
184RMSNorm_12_1RMSNorm1 × 45860 × 4096
185Attention_12Grouped Query Attn1 × 45860 × 4096
186Add_12_attnAdd1 × 45860 × 4096
187RMSNorm_12_2RMSNorm1 × 45860 × 4096
188FFN_12SwiGLU1 × 45860 × 4096
189Add_12_ffnAdd1 × 45860 × 4096
190RMSNorm_13_1RMSNorm1 × 45860 × 4096
191Attention_13Grouped Query Attn1 × 45860 × 4096
192Add_13_attnAdd1 × 45860 × 4096
193RMSNorm_13_2RMSNorm1 × 45860 × 4096
194FFN_13SwiGLU1 × 45860 × 4096
195Add_13_ffnAdd1 × 45860 × 4096
196RMSNorm_14_1RMSNorm1 × 45860 × 4096
197Attention_14Grouped Query Attn1 × 45860 × 4096
198Add_14_attnAdd1 × 45860 × 4096
199RMSNorm_14_2RMSNorm1 × 45860 × 4096
200FFN_14SwiGLU1 × 45860 × 4096
201Add_14_ffnAdd1 × 45860 × 4096
202RMSNorm_15_1RMSNorm1 × 45860 × 4096
203Attention_15Grouped Query Attn1 × 45860 × 4096
204Add_15_attnAdd1 × 45860 × 4096
205RMSNorm_15_2RMSNorm1 × 45860 × 4096
206FFN_15SwiGLU1 × 45860 × 4096
207Add_15_ffnAdd1 × 45860 × 4096
208RMSNorm_16_1RMSNorm1 × 45860 × 4096
209Attention_16Grouped Query Attn1 × 45860 × 4096
210Add_16_attnAdd1 × 45860 × 4096
211RMSNorm_16_2RMSNorm1 × 45860 × 4096
212FFN_16SwiGLU1 × 45860 × 4096
213Add_16_ffnAdd1 × 45860 × 4096
214RMSNorm_17_1RMSNorm1 × 45860 × 4096
215Attention_17Grouped Query Attn1 × 45860 × 4096
216Add_17_attnAdd1 × 45860 × 4096
217RMSNorm_17_2RMSNorm1 × 45860 × 4096
218FFN_17SwiGLU1 × 45860 × 4096
219Add_17_ffnAdd1 × 45860 × 4096
220RMSNorm_18_1RMSNorm1 × 45860 × 4096
221Attention_18Grouped Query Attn1 × 45860 × 4096
222Add_18_attnAdd1 × 45860 × 4096
223RMSNorm_18_2RMSNorm1 × 45860 × 4096
224FFN_18SwiGLU1 × 45860 × 4096
225Add_18_ffnAdd1 × 45860 × 4096
226RMSNorm_19_1RMSNorm1 × 45860 × 4096
227Attention_19Grouped Query Attn1 × 45860 × 4096
228Add_19_attnAdd1 × 45860 × 4096
229RMSNorm_19_2RMSNorm1 × 45860 × 4096
230FFN_19SwiGLU1 × 45860 × 4096
231Add_19_ffnAdd1 × 45860 × 4096
232RMSNorm_20_1RMSNorm1 × 45860 × 4096
233Attention_20Grouped Query Attn1 × 45860 × 4096
234Add_20_attnAdd1 × 45860 × 4096
235RMSNorm_20_2RMSNorm1 × 45860 × 4096
236FFN_20SwiGLU1 × 45860 × 4096
237Add_20_ffnAdd1 × 45860 × 4096
238RMSNorm_21_1RMSNorm1 × 45860 × 4096
239Attention_21Grouped Query Attn1 × 45860 × 4096
240Add_21_attnAdd1 × 45860 × 4096
241RMSNorm_21_2RMSNorm1 × 45860 × 4096
242FFN_21SwiGLU1 × 45860 × 4096
243Add_21_ffnAdd1 × 45860 × 4096
244RMSNorm_22_1RMSNorm1 × 45860 × 4096
245Attention_22Grouped Query Attn1 × 45860 × 4096
246Add_22_attnAdd1 × 45860 × 4096
247RMSNorm_22_2RMSNorm1 × 45860 × 4096
248FFN_22SwiGLU1 × 45860 × 4096
249Add_22_ffnAdd1 × 45860 × 4096
250RMSNorm_23_1RMSNorm1 × 45860 × 4096
251Attention_23Grouped Query Attn1 × 45860 × 4096
252Add_23_attnAdd1 × 45860 × 4096
253RMSNorm_23_2RMSNorm1 × 45860 × 4096
254FFN_23SwiGLU1 × 45860 × 4096
255Add_23_ffnAdd1 × 45860 × 4096
256RMSNorm_24_1RMSNorm1 × 45860 × 4096
257Attention_24Grouped Query Attn1 × 45860 × 4096
258Add_24_attnAdd1 × 45860 × 4096
259RMSNorm_24_2RMSNorm1 × 45860 × 4096
260FFN_24SwiGLU1 × 45860 × 4096
261Add_24_ffnAdd1 × 45860 × 4096
262RMSNorm_25_1RMSNorm1 × 45860 × 4096
263Attention_25Grouped Query Attn1 × 45860 × 4096
264Add_25_attnAdd1 × 45860 × 4096
265RMSNorm_25_2RMSNorm1 × 45860 × 4096
266FFN_25SwiGLU1 × 45860 × 4096
267Add_25_ffnAdd1 × 45860 × 4096
268RMSNorm_26_1RMSNorm1 × 45860 × 4096
269Attention_26Grouped Query Attn1 × 45860 × 4096
270Add_26_attnAdd1 × 45860 × 4096
271RMSNorm_26_2RMSNorm1 × 45860 × 4096
272FFN_26SwiGLU1 × 45860 × 4096
273Add_26_ffnAdd1 × 45860 × 4096
274RMSNorm_27_1RMSNorm1 × 45860 × 4096
275Attention_27Grouped Query Attn1 × 45860 × 4096
276Add_27_attnAdd1 × 45860 × 4096
277RMSNorm_27_2RMSNorm1 × 45860 × 4096
278FFN_27SwiGLU1 × 45860 × 4096
279Add_27_ffnAdd1 × 45860 × 4096
280RMSNorm_28_1RMSNorm1 × 45860 × 4096
281Attention_28Grouped Query Attn1 × 45860 × 4096
282Add_28_attnAdd1 × 45860 × 4096
283RMSNorm_28_2RMSNorm1 × 45860 × 4096
284FFN_28SwiGLU1 × 45860 × 4096
285Add_28_ffnAdd1 × 45860 × 4096
286RMSNorm_29_1RMSNorm1 × 45860 × 4096
287Attention_29Grouped Query Attn1 × 45860 × 4096
288Add_29_attnAdd1 × 45860 × 4096
289RMSNorm_29_2RMSNorm1 × 45860 × 4096
290FFN_29SwiGLU1 × 45860 × 4096
291Add_29_ffnAdd1 × 45860 × 4096
292RMSNorm_30_1RMSNorm1 × 45860 × 4096
293Attention_30Grouped Query Attn1 × 45860 × 4096
294Add_30_attnAdd1 × 45860 × 4096
295RMSNorm_30_2RMSNorm1 × 45860 × 4096
296FFN_30SwiGLU1 × 45860 × 4096
297Add_30_ffnAdd1 × 45860 × 4096
298RMSNorm_31_1RMSNorm1 × 45860 × 4096
299Attention_31Grouped Query Attn1 × 45860 × 4096
300Add_31_attnAdd1 × 45860 × 4096
301RMSNorm_31_2RMSNorm1 × 45860 × 4096
302FFN_31SwiGLU1 × 45860 × 4096
303Add_31_ffnAdd1 × 45860 × 4096
304RMSNorm_32_1RMSNorm1 × 45860 × 4096
305Attention_32Grouped Query Attn1 × 45860 × 4096
306Add_32_attnAdd1 × 45860 × 4096
307RMSNorm_32_2RMSNorm1 × 45860 × 4096
308FFN_32SwiGLU1 × 45860 × 4096
309Add_32_ffnAdd1 × 45860 × 4096
310RMSNorm_33_1RMSNorm1 × 45860 × 4096
311Attention_33Grouped Query Attn1 × 45860 × 4096
312Add_33_attnAdd1 × 45860 × 4096
313RMSNorm_33_2RMSNorm1 × 45860 × 4096
314FFN_33SwiGLU1 × 45860 × 4096
315Add_33_ffnAdd1 × 45860 × 4096
316RMSNorm_34_1RMSNorm1 × 45860 × 4096
317Attention_34Grouped Query Attn1 × 45860 × 4096
318Add_34_attnAdd1 × 45860 × 4096
319RMSNorm_34_2RMSNorm1 × 45860 × 4096
320FFN_34SwiGLU1 × 45860 × 4096
321Add_34_ffnAdd1 × 45860 × 4096
322RMSNorm_35_1RMSNorm1 × 45860 × 4096
323Attention_35Grouped Query Attn1 × 45860 × 4096
324Add_35_attnAdd1 × 45860 × 4096
325RMSNorm_35_2RMSNorm1 × 45860 × 4096
326FFN_35SwiGLU1 × 45860 × 4096
327Add_35_ffnAdd1 × 45860 × 4096
328RMSNorm_36_1RMSNorm1 × 45860 × 4096
329Attention_36Grouped Query Attn1 × 45860 × 4096
330Add_36_attnAdd1 × 45860 × 4096
331RMSNorm_36_2RMSNorm1 × 45860 × 4096
332FFN_36SwiGLU1 × 45860 × 4096
333Add_36_ffnAdd1 × 45860 × 4096
334Final_RMSNormRMSNorm1 × 45860 × 4096
335LM_HeadLinear1 × 45860 × 151748
336OutputOutput1 × 45860 × 151748

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
infoAt 63 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-V-4_5 --plan --share