N Neurarch Architectures Models Checks Data Docs Open the app

Models / qwen2

gte-Qwen2-1.5B-instruct

Reconstructed from its own config.json with no weights read. 759K 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
1.78B
1,776,291,422 parameters
In the published checkpoint
1.78B
1,776,197,120 scalars · safetensors.total, read 2025-05-28
Delta
+0.01%

custom-code This repository ships its own modeling code (`auto_map`, e.g. `modeling_qwen.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
172
Will it forward-pass
Yes
Priced on
A10G (24GB)
Est. one run
$35225.83
CardMemory
T4 (16GB)weights + activationsdoes not fit
A100 (40GB)weights + activationsfits
H100 (80GB)weights + activationsfits

Structure

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

LayerTypeOutput shape
1InputInput1 × 131072
2EmbeddingEmbedding1 × 131072 × 1536
3RoPERoPE1 × 131072 × 1536
4RMSNorm_1_1RMSNorm1 × 131072 × 1536
5Attention_1Grouped Query Attn1 × 131072 × 1536
6Add_1_attnAdd1 × 131072 × 1536
7RMSNorm_1_2RMSNorm1 × 131072 × 1536
8FFN_1SwiGLU1 × 131072 × 1536
9Add_1_ffnAdd1 × 131072 × 1536
10RMSNorm_2_1RMSNorm1 × 131072 × 1536
11Attention_2Grouped Query Attn1 × 131072 × 1536
12Add_2_attnAdd1 × 131072 × 1536
13RMSNorm_2_2RMSNorm1 × 131072 × 1536
14FFN_2SwiGLU1 × 131072 × 1536
15Add_2_ffnAdd1 × 131072 × 1536
16RMSNorm_3_1RMSNorm1 × 131072 × 1536
17Attention_3Grouped Query Attn1 × 131072 × 1536
18Add_3_attnAdd1 × 131072 × 1536
19RMSNorm_3_2RMSNorm1 × 131072 × 1536
20FFN_3SwiGLU1 × 131072 × 1536
21Add_3_ffnAdd1 × 131072 × 1536
22RMSNorm_4_1RMSNorm1 × 131072 × 1536
23Attention_4Grouped Query Attn1 × 131072 × 1536
24Add_4_attnAdd1 × 131072 × 1536
25RMSNorm_4_2RMSNorm1 × 131072 × 1536
26FFN_4SwiGLU1 × 131072 × 1536
27Add_4_ffnAdd1 × 131072 × 1536
28RMSNorm_5_1RMSNorm1 × 131072 × 1536
29Attention_5Grouped Query Attn1 × 131072 × 1536
30Add_5_attnAdd1 × 131072 × 1536
31RMSNorm_5_2RMSNorm1 × 131072 × 1536
32FFN_5SwiGLU1 × 131072 × 1536
33Add_5_ffnAdd1 × 131072 × 1536
34RMSNorm_6_1RMSNorm1 × 131072 × 1536
35Attention_6Grouped Query Attn1 × 131072 × 1536
36Add_6_attnAdd1 × 131072 × 1536
37RMSNorm_6_2RMSNorm1 × 131072 × 1536
38FFN_6SwiGLU1 × 131072 × 1536
39Add_6_ffnAdd1 × 131072 × 1536
40RMSNorm_7_1RMSNorm1 × 131072 × 1536
41Attention_7Grouped Query Attn1 × 131072 × 1536
42Add_7_attnAdd1 × 131072 × 1536
43RMSNorm_7_2RMSNorm1 × 131072 × 1536
44FFN_7SwiGLU1 × 131072 × 1536
45Add_7_ffnAdd1 × 131072 × 1536
46RMSNorm_8_1RMSNorm1 × 131072 × 1536
47Attention_8Grouped Query Attn1 × 131072 × 1536
48Add_8_attnAdd1 × 131072 × 1536
49RMSNorm_8_2RMSNorm1 × 131072 × 1536
50FFN_8SwiGLU1 × 131072 × 1536
51Add_8_ffnAdd1 × 131072 × 1536
52RMSNorm_9_1RMSNorm1 × 131072 × 1536
53Attention_9Grouped Query Attn1 × 131072 × 1536
54Add_9_attnAdd1 × 131072 × 1536
55RMSNorm_9_2RMSNorm1 × 131072 × 1536
56FFN_9SwiGLU1 × 131072 × 1536
57Add_9_ffnAdd1 × 131072 × 1536
58RMSNorm_10_1RMSNorm1 × 131072 × 1536
59Attention_10Grouped Query Attn1 × 131072 × 1536
60Add_10_attnAdd1 × 131072 × 1536
61RMSNorm_10_2RMSNorm1 × 131072 × 1536
62FFN_10SwiGLU1 × 131072 × 1536
63Add_10_ffnAdd1 × 131072 × 1536
64RMSNorm_11_1RMSNorm1 × 131072 × 1536
65Attention_11Grouped Query Attn1 × 131072 × 1536
66Add_11_attnAdd1 × 131072 × 1536
67RMSNorm_11_2RMSNorm1 × 131072 × 1536
68FFN_11SwiGLU1 × 131072 × 1536
69Add_11_ffnAdd1 × 131072 × 1536
70RMSNorm_12_1RMSNorm1 × 131072 × 1536
71Attention_12Grouped Query Attn1 × 131072 × 1536
72Add_12_attnAdd1 × 131072 × 1536
73RMSNorm_12_2RMSNorm1 × 131072 × 1536
74FFN_12SwiGLU1 × 131072 × 1536
75Add_12_ffnAdd1 × 131072 × 1536
76RMSNorm_13_1RMSNorm1 × 131072 × 1536
77Attention_13Grouped Query Attn1 × 131072 × 1536
78Add_13_attnAdd1 × 131072 × 1536
79RMSNorm_13_2RMSNorm1 × 131072 × 1536
80FFN_13SwiGLU1 × 131072 × 1536
81Add_13_ffnAdd1 × 131072 × 1536
82RMSNorm_14_1RMSNorm1 × 131072 × 1536
83Attention_14Grouped Query Attn1 × 131072 × 1536
84Add_14_attnAdd1 × 131072 × 1536
85RMSNorm_14_2RMSNorm1 × 131072 × 1536
86FFN_14SwiGLU1 × 131072 × 1536
87Add_14_ffnAdd1 × 131072 × 1536
88RMSNorm_15_1RMSNorm1 × 131072 × 1536
89Attention_15Grouped Query Attn1 × 131072 × 1536
90Add_15_attnAdd1 × 131072 × 1536
91RMSNorm_15_2RMSNorm1 × 131072 × 1536
92FFN_15SwiGLU1 × 131072 × 1536
93Add_15_ffnAdd1 × 131072 × 1536
94RMSNorm_16_1RMSNorm1 × 131072 × 1536
95Attention_16Grouped Query Attn1 × 131072 × 1536
96Add_16_attnAdd1 × 131072 × 1536
97RMSNorm_16_2RMSNorm1 × 131072 × 1536
98FFN_16SwiGLU1 × 131072 × 1536
99Add_16_ffnAdd1 × 131072 × 1536
100RMSNorm_17_1RMSNorm1 × 131072 × 1536
101Attention_17Grouped Query Attn1 × 131072 × 1536
102Add_17_attnAdd1 × 131072 × 1536
103RMSNorm_17_2RMSNorm1 × 131072 × 1536
104FFN_17SwiGLU1 × 131072 × 1536
105Add_17_ffnAdd1 × 131072 × 1536
106RMSNorm_18_1RMSNorm1 × 131072 × 1536
107Attention_18Grouped Query Attn1 × 131072 × 1536
108Add_18_attnAdd1 × 131072 × 1536
109RMSNorm_18_2RMSNorm1 × 131072 × 1536
110FFN_18SwiGLU1 × 131072 × 1536
111Add_18_ffnAdd1 × 131072 × 1536
112RMSNorm_19_1RMSNorm1 × 131072 × 1536
113Attention_19Grouped Query Attn1 × 131072 × 1536
114Add_19_attnAdd1 × 131072 × 1536
115RMSNorm_19_2RMSNorm1 × 131072 × 1536
116FFN_19SwiGLU1 × 131072 × 1536
117Add_19_ffnAdd1 × 131072 × 1536
118RMSNorm_20_1RMSNorm1 × 131072 × 1536
119Attention_20Grouped Query Attn1 × 131072 × 1536
120Add_20_attnAdd1 × 131072 × 1536
121RMSNorm_20_2RMSNorm1 × 131072 × 1536
122FFN_20SwiGLU1 × 131072 × 1536
123Add_20_ffnAdd1 × 131072 × 1536
124RMSNorm_21_1RMSNorm1 × 131072 × 1536
125Attention_21Grouped Query Attn1 × 131072 × 1536
126Add_21_attnAdd1 × 131072 × 1536
127RMSNorm_21_2RMSNorm1 × 131072 × 1536
128FFN_21SwiGLU1 × 131072 × 1536
129Add_21_ffnAdd1 × 131072 × 1536
130RMSNorm_22_1RMSNorm1 × 131072 × 1536
131Attention_22Grouped Query Attn1 × 131072 × 1536
132Add_22_attnAdd1 × 131072 × 1536
133RMSNorm_22_2RMSNorm1 × 131072 × 1536
134FFN_22SwiGLU1 × 131072 × 1536
135Add_22_ffnAdd1 × 131072 × 1536
136RMSNorm_23_1RMSNorm1 × 131072 × 1536
137Attention_23Grouped Query Attn1 × 131072 × 1536
138Add_23_attnAdd1 × 131072 × 1536
139RMSNorm_23_2RMSNorm1 × 131072 × 1536
140FFN_23SwiGLU1 × 131072 × 1536
141Add_23_ffnAdd1 × 131072 × 1536
142RMSNorm_24_1RMSNorm1 × 131072 × 1536
143Attention_24Grouped Query Attn1 × 131072 × 1536
144Add_24_attnAdd1 × 131072 × 1536
145RMSNorm_24_2RMSNorm1 × 131072 × 1536
146FFN_24SwiGLU1 × 131072 × 1536
147Add_24_ffnAdd1 × 131072 × 1536
148RMSNorm_25_1RMSNorm1 × 131072 × 1536
149Attention_25Grouped Query Attn1 × 131072 × 1536
150Add_25_attnAdd1 × 131072 × 1536
151RMSNorm_25_2RMSNorm1 × 131072 × 1536
152FFN_25SwiGLU1 × 131072 × 1536
153Add_25_ffnAdd1 × 131072 × 1536
154RMSNorm_26_1RMSNorm1 × 131072 × 1536
155Attention_26Grouped Query Attn1 × 131072 × 1536
156Add_26_attnAdd1 × 131072 × 1536
157RMSNorm_26_2RMSNorm1 × 131072 × 1536
158FFN_26SwiGLU1 × 131072 × 1536
159Add_26_ffnAdd1 × 131072 × 1536
160RMSNorm_27_1RMSNorm1 × 131072 × 1536
161Attention_27Grouped Query Attn1 × 131072 × 1536
162Add_27_attnAdd1 × 131072 × 1536
163RMSNorm_27_2RMSNorm1 × 131072 × 1536
164FFN_27SwiGLU1 × 131072 × 1536
165Add_27_ffnAdd1 × 131072 × 1536
166RMSNorm_28_1RMSNorm1 × 131072 × 1536
167Attention_28Grouped Query Attn1 × 131072 × 1536
168Add_28_attnAdd1 × 131072 × 1536
169RMSNorm_28_2RMSNorm1 × 131072 × 1536
170FFN_28SwiGLU1 × 131072 × 1536
171Add_28_ffnAdd1 × 131072 × 1536
172Final_RMSNormRMSNorm1 × 131072 × 1536
173LM_HeadLinear1 × 131072 × 151646
174OutputOutput1 × 131072 × 151646

What the verifier says

infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoLLaMA uses intermediateSize ≈ ⌊(8/3 × D) / 256⌋ × 256. Current: 8960 (5.83× embedDim). Expected: ~4096. Fix: Set intermediateSize to 4096 for embedDim=1536.
swiglu-dim-convention
infoAt 28 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 Alibaba-NLP/gte-Qwen2-1.5B-instruct --plan --share

Other qwen2 checkpoints

gte-Qwen2-7B-instruct
7.61B derived · +0.00% against the checkpoint
Qwen2.5-0.5B-Instruct
494M derived · -0.01% against the checkpoint
Qwen2.5-1.5B-Instruct
1.54B derived · -0.00% against the checkpoint
Qwen2.5-3B-Instruct
3.09B derived · -0.00% against the checkpoint