N Neurarch Architectures Models Checks Data Docs Open the app

Comparisons / GPT-2 vs Qwen3-8B

GPT-2 vs Qwen3-8B

What seven years of scaling actually changed inside the decoder.

Qwen3-8B has 8.1B more parameters than GPT-2: 212 layers added, 3 removed, 6 changed.

Baseline

GPT-2

Layers
10
Parameters
84M
Input
1 × 1024
Output
1 × 1024 × 50257
Forward-passes
yes
Est. train cost
$1.82
Compared

Qwen3-8B

Layers
219
Parameters
8.2B
Input
1 × 40960
Output
1 × 40960 × 151936
Forward-passes
yes
Est. train cost
$20,863

The deltas

Every number is Qwen3-8B relative to GPT-2.

Parameters
+8.1B (97× the size)
Layers
+209
Added
212
Removed
3
Changed
6
Unchanged
3

Which GPUs each one fits

Each side is measured at its own declared input (1 × 1024 against 1 × 40960). Both columns are right about their own model; the difference between them is not a fact about the designs.

GPUGPT-2Qwen3-8B
T4 16GBfitsno
A100 40GBfitsno
H100 80GBfitsno

Layer by layer

Aligned in topological order. 3 of 224 rows are the same layer with the same parameters.

Show all 224 rows
GPT-2Qwen3-8B
LayerParamsOutputLayerParamsOutput
1changed
shape
tokens
Input
1 × 1024Input
Input
1 × 40960
2changed
numEmbeddings, embeddingDim, vocabSize, maxSeqLen
token_embed
Embedding
39M1 × 1024 × 768Embedding
Embedding
622M1 × 40960 × 4096
3removedpos_embed
Positional Encoding
1 × 1024 × 768
4changed
type, normalizedShape
ln_1
Layer Norm
1.5K1 × 1024 × 768RMSNorm_1_1
Rms Norm
4.1K1 × 40960 × 4096
5removedattn
Causal Attention
2.4M1 × 1024 × 768
6addedAttention_1
Grouped Query Attention
42M1 × 40960 × 4096
7sameresidual_1
Add
1 × 1024 × 768Add_1_attn
Add
1 × 40960 × 4096
8changed
type, normalizedShape
ln_2
Layer Norm
1.5K1 × 1024 × 768RMSNorm_1_2
Rms Norm
4.1K1 × 40960 × 4096
9removedmlp
Feed Forward
4.7M1 × 1024 × 768
10addedFFN_1
Swiglu
151M1 × 40960 × 4096
11addedAdd_1_ffn
Add
1 × 40960 × 4096
12addedRMSNorm_2_1
Rms Norm
4.1K1 × 40960 × 4096
13addedAttention_2
Grouped Query Attention
42M1 × 40960 × 4096
14addedAdd_2_attn
Add
1 × 40960 × 4096
15addedRMSNorm_2_2
Rms Norm
4.1K1 × 40960 × 4096
16addedFFN_2
Swiglu
151M1 × 40960 × 4096
17addedAdd_2_ffn
Add
1 × 40960 × 4096
18addedRMSNorm_3_1
Rms Norm
4.1K1 × 40960 × 4096
19addedAttention_3
Grouped Query Attention
42M1 × 40960 × 4096
20addedAdd_3_attn
Add
1 × 40960 × 4096
21addedRMSNorm_3_2
Rms Norm
4.1K1 × 40960 × 4096
22addedFFN_3
Swiglu
151M1 × 40960 × 4096
23addedAdd_3_ffn
Add
1 × 40960 × 4096
24addedRMSNorm_4_1
Rms Norm
4.1K1 × 40960 × 4096
25addedAttention_4
Grouped Query Attention
42M1 × 40960 × 4096
26addedAdd_4_attn
Add
1 × 40960 × 4096
27addedRMSNorm_4_2
Rms Norm
4.1K1 × 40960 × 4096
28addedFFN_4
Swiglu
151M1 × 40960 × 4096
29addedAdd_4_ffn
Add
1 × 40960 × 4096
30addedRMSNorm_5_1
Rms Norm
4.1K1 × 40960 × 4096
31addedAttention_5
Grouped Query Attention
42M1 × 40960 × 4096
32addedAdd_5_attn
Add
1 × 40960 × 4096
33addedRMSNorm_5_2
Rms Norm
4.1K1 × 40960 × 4096
34addedFFN_5
Swiglu
151M1 × 40960 × 4096
35addedAdd_5_ffn
Add
1 × 40960 × 4096
36addedRMSNorm_6_1
Rms Norm
4.1K1 × 40960 × 4096
37addedAttention_6
Grouped Query Attention
42M1 × 40960 × 4096
38addedAdd_6_attn
Add
1 × 40960 × 4096
39addedRMSNorm_6_2
Rms Norm
4.1K1 × 40960 × 4096
40addedFFN_6
Swiglu
151M1 × 40960 × 4096
41addedAdd_6_ffn
Add
1 × 40960 × 4096
42addedRMSNorm_7_1
Rms Norm
4.1K1 × 40960 × 4096
43addedAttention_7
Grouped Query Attention
42M1 × 40960 × 4096
44addedAdd_7_attn
Add
1 × 40960 × 4096
45addedRMSNorm_7_2
Rms Norm
4.1K1 × 40960 × 4096
46addedFFN_7
Swiglu
151M1 × 40960 × 4096
47addedAdd_7_ffn
Add
1 × 40960 × 4096
48addedRMSNorm_8_1
Rms Norm
4.1K1 × 40960 × 4096
49addedAttention_8
Grouped Query Attention
42M1 × 40960 × 4096
50addedAdd_8_attn
Add
1 × 40960 × 4096
51addedRMSNorm_8_2
Rms Norm
4.1K1 × 40960 × 4096
52addedFFN_8
Swiglu
151M1 × 40960 × 4096
53addedAdd_8_ffn
Add
1 × 40960 × 4096
54addedRMSNorm_9_1
Rms Norm
4.1K1 × 40960 × 4096
55addedAttention_9
Grouped Query Attention
42M1 × 40960 × 4096
56addedAdd_9_attn
Add
1 × 40960 × 4096
57addedRMSNorm_9_2
Rms Norm
4.1K1 × 40960 × 4096
58addedFFN_9
Swiglu
151M1 × 40960 × 4096
59addedAdd_9_ffn
Add
1 × 40960 × 4096
60addedRMSNorm_10_1
Rms Norm
4.1K1 × 40960 × 4096
61addedAttention_10
Grouped Query Attention
42M1 × 40960 × 4096
62addedAdd_10_attn
Add
1 × 40960 × 4096
63addedRMSNorm_10_2
Rms Norm
4.1K1 × 40960 × 4096
64addedFFN_10
Swiglu
151M1 × 40960 × 4096
65addedAdd_10_ffn
Add
1 × 40960 × 4096
66addedRMSNorm_11_1
Rms Norm
4.1K1 × 40960 × 4096
67addedAttention_11
Grouped Query Attention
42M1 × 40960 × 4096
68addedAdd_11_attn
Add
1 × 40960 × 4096
69addedRMSNorm_11_2
Rms Norm
4.1K1 × 40960 × 4096
70addedFFN_11
Swiglu
151M1 × 40960 × 4096
71addedAdd_11_ffn
Add
1 × 40960 × 4096
72addedRMSNorm_12_1
Rms Norm
4.1K1 × 40960 × 4096
73addedAttention_12
Grouped Query Attention
42M1 × 40960 × 4096
74addedAdd_12_attn
Add
1 × 40960 × 4096
75addedRMSNorm_12_2
Rms Norm
4.1K1 × 40960 × 4096
76addedFFN_12
Swiglu
151M1 × 40960 × 4096
77addedAdd_12_ffn
Add
1 × 40960 × 4096
78addedRMSNorm_13_1
Rms Norm
4.1K1 × 40960 × 4096
79addedAttention_13
Grouped Query Attention
42M1 × 40960 × 4096
80addedAdd_13_attn
Add
1 × 40960 × 4096
81addedRMSNorm_13_2
Rms Norm
4.1K1 × 40960 × 4096
82addedFFN_13
Swiglu
151M1 × 40960 × 4096
83addedAdd_13_ffn
Add
1 × 40960 × 4096
84addedRMSNorm_14_1
Rms Norm
4.1K1 × 40960 × 4096
85addedAttention_14
Grouped Query Attention
42M1 × 40960 × 4096
86addedAdd_14_attn
Add
1 × 40960 × 4096
87addedRMSNorm_14_2
Rms Norm
4.1K1 × 40960 × 4096
88addedFFN_14
Swiglu
151M1 × 40960 × 4096
89addedAdd_14_ffn
Add
1 × 40960 × 4096
90addedRMSNorm_15_1
Rms Norm
4.1K1 × 40960 × 4096
91addedAttention_15
Grouped Query Attention
42M1 × 40960 × 4096
92addedAdd_15_attn
Add
1 × 40960 × 4096
93addedRMSNorm_15_2
Rms Norm
4.1K1 × 40960 × 4096
94addedFFN_15
Swiglu
151M1 × 40960 × 4096
95addedAdd_15_ffn
Add
1 × 40960 × 4096
96addedRMSNorm_16_1
Rms Norm
4.1K1 × 40960 × 4096
97addedAttention_16
Grouped Query Attention
42M1 × 40960 × 4096
98addedAdd_16_attn
Add
1 × 40960 × 4096
99addedRMSNorm_16_2
Rms Norm
4.1K1 × 40960 × 4096
100addedFFN_16
Swiglu
151M1 × 40960 × 4096
101addedAdd_16_ffn
Add
1 × 40960 × 4096
102addedRMSNorm_17_1
Rms Norm
4.1K1 × 40960 × 4096
103addedAttention_17
Grouped Query Attention
42M1 × 40960 × 4096
104addedAdd_17_attn
Add
1 × 40960 × 4096
105addedRMSNorm_17_2
Rms Norm
4.1K1 × 40960 × 4096
106addedFFN_17
Swiglu
151M1 × 40960 × 4096
107addedAdd_17_ffn
Add
1 × 40960 × 4096
108addedRMSNorm_18_1
Rms Norm
4.1K1 × 40960 × 4096
109addedAttention_18
Grouped Query Attention
42M1 × 40960 × 4096
110addedAdd_18_attn
Add
1 × 40960 × 4096
111addedRMSNorm_18_2
Rms Norm
4.1K1 × 40960 × 4096
112addedFFN_18
Swiglu
151M1 × 40960 × 4096
113addedAdd_18_ffn
Add
1 × 40960 × 4096
114addedRMSNorm_19_1
Rms Norm
4.1K1 × 40960 × 4096
115addedAttention_19
Grouped Query Attention
42M1 × 40960 × 4096
116addedAdd_19_attn
Add
1 × 40960 × 4096
117addedRMSNorm_19_2
Rms Norm
4.1K1 × 40960 × 4096
118addedFFN_19
Swiglu
151M1 × 40960 × 4096
119addedAdd_19_ffn
Add
1 × 40960 × 4096
120addedRMSNorm_20_1
Rms Norm
4.1K1 × 40960 × 4096
121addedAttention_20
Grouped Query Attention
42M1 × 40960 × 4096
122addedAdd_20_attn
Add
1 × 40960 × 4096
123addedRMSNorm_20_2
Rms Norm
4.1K1 × 40960 × 4096
124addedFFN_20
Swiglu
151M1 × 40960 × 4096
125addedAdd_20_ffn
Add
1 × 40960 × 4096
126addedRMSNorm_21_1
Rms Norm
4.1K1 × 40960 × 4096
127addedAttention_21
Grouped Query Attention
42M1 × 40960 × 4096
128addedAdd_21_attn
Add
1 × 40960 × 4096
129addedRMSNorm_21_2
Rms Norm
4.1K1 × 40960 × 4096
130addedFFN_21
Swiglu
151M1 × 40960 × 4096
131addedAdd_21_ffn
Add
1 × 40960 × 4096
132addedRMSNorm_22_1
Rms Norm
4.1K1 × 40960 × 4096
133addedAttention_22
Grouped Query Attention
42M1 × 40960 × 4096
134addedAdd_22_attn
Add
1 × 40960 × 4096
135addedRMSNorm_22_2
Rms Norm
4.1K1 × 40960 × 4096
136addedFFN_22
Swiglu
151M1 × 40960 × 4096
137addedAdd_22_ffn
Add
1 × 40960 × 4096
138addedRMSNorm_23_1
Rms Norm
4.1K1 × 40960 × 4096
139addedAttention_23
Grouped Query Attention
42M1 × 40960 × 4096
140addedAdd_23_attn
Add
1 × 40960 × 4096
141addedRMSNorm_23_2
Rms Norm
4.1K1 × 40960 × 4096
142addedFFN_23
Swiglu
151M1 × 40960 × 4096
143addedAdd_23_ffn
Add
1 × 40960 × 4096
144addedRMSNorm_24_1
Rms Norm
4.1K1 × 40960 × 4096
145addedAttention_24
Grouped Query Attention
42M1 × 40960 × 4096
146addedAdd_24_attn
Add
1 × 40960 × 4096
147addedRMSNorm_24_2
Rms Norm
4.1K1 × 40960 × 4096
148addedFFN_24
Swiglu
151M1 × 40960 × 4096
149addedAdd_24_ffn
Add
1 × 40960 × 4096
150addedRMSNorm_25_1
Rms Norm
4.1K1 × 40960 × 4096
151addedAttention_25
Grouped Query Attention
42M1 × 40960 × 4096
152addedAdd_25_attn
Add
1 × 40960 × 4096
153addedRMSNorm_25_2
Rms Norm
4.1K1 × 40960 × 4096
154addedFFN_25
Swiglu
151M1 × 40960 × 4096
155addedAdd_25_ffn
Add
1 × 40960 × 4096
156addedRMSNorm_26_1
Rms Norm
4.1K1 × 40960 × 4096
157addedAttention_26
Grouped Query Attention
42M1 × 40960 × 4096
158addedAdd_26_attn
Add
1 × 40960 × 4096
159addedRMSNorm_26_2
Rms Norm
4.1K1 × 40960 × 4096
160addedFFN_26
Swiglu
151M1 × 40960 × 4096
161addedAdd_26_ffn
Add
1 × 40960 × 4096
162addedRMSNorm_27_1
Rms Norm
4.1K1 × 40960 × 4096
163addedAttention_27
Grouped Query Attention
42M1 × 40960 × 4096
164addedAdd_27_attn
Add
1 × 40960 × 4096
165addedRMSNorm_27_2
Rms Norm
4.1K1 × 40960 × 4096
166addedFFN_27
Swiglu
151M1 × 40960 × 4096
167addedAdd_27_ffn
Add
1 × 40960 × 4096
168addedRMSNorm_28_1
Rms Norm
4.1K1 × 40960 × 4096
169addedAttention_28
Grouped Query Attention
42M1 × 40960 × 4096
170addedAdd_28_attn
Add
1 × 40960 × 4096
171addedRMSNorm_28_2
Rms Norm
4.1K1 × 40960 × 4096
172addedFFN_28
Swiglu
151M1 × 40960 × 4096
173addedAdd_28_ffn
Add
1 × 40960 × 4096
174addedRMSNorm_29_1
Rms Norm
4.1K1 × 40960 × 4096
175addedAttention_29
Grouped Query Attention
42M1 × 40960 × 4096
176addedAdd_29_attn
Add
1 × 40960 × 4096
177addedRMSNorm_29_2
Rms Norm
4.1K1 × 40960 × 4096
178addedFFN_29
Swiglu
151M1 × 40960 × 4096
179addedAdd_29_ffn
Add
1 × 40960 × 4096
180addedRMSNorm_30_1
Rms Norm
4.1K1 × 40960 × 4096
181addedAttention_30
Grouped Query Attention
42M1 × 40960 × 4096
182addedAdd_30_attn
Add
1 × 40960 × 4096
183addedRMSNorm_30_2
Rms Norm
4.1K1 × 40960 × 4096
184addedFFN_30
Swiglu
151M1 × 40960 × 4096
185addedAdd_30_ffn
Add
1 × 40960 × 4096
186addedRMSNorm_31_1
Rms Norm
4.1K1 × 40960 × 4096
187addedAttention_31
Grouped Query Attention
42M1 × 40960 × 4096
188addedAdd_31_attn
Add
1 × 40960 × 4096
189addedRMSNorm_31_2
Rms Norm
4.1K1 × 40960 × 4096
190addedFFN_31
Swiglu
151M1 × 40960 × 4096
191addedAdd_31_ffn
Add
1 × 40960 × 4096
192addedRMSNorm_32_1
Rms Norm
4.1K1 × 40960 × 4096
193addedAttention_32
Grouped Query Attention
42M1 × 40960 × 4096
194addedAdd_32_attn
Add
1 × 40960 × 4096
195addedRMSNorm_32_2
Rms Norm
4.1K1 × 40960 × 4096
196addedFFN_32
Swiglu
151M1 × 40960 × 4096
197addedAdd_32_ffn
Add
1 × 40960 × 4096
198addedRMSNorm_33_1
Rms Norm
4.1K1 × 40960 × 4096
199addedAttention_33
Grouped Query Attention
42M1 × 40960 × 4096
200addedAdd_33_attn
Add
1 × 40960 × 4096
201addedRMSNorm_33_2
Rms Norm
4.1K1 × 40960 × 4096
202addedFFN_33
Swiglu
151M1 × 40960 × 4096
203addedAdd_33_ffn
Add
1 × 40960 × 4096
204addedRMSNorm_34_1
Rms Norm
4.1K1 × 40960 × 4096
205addedAttention_34
Grouped Query Attention
42M1 × 40960 × 4096
206addedAdd_34_attn
Add
1 × 40960 × 4096
207addedRMSNorm_34_2
Rms Norm
4.1K1 × 40960 × 4096
208addedFFN_34
Swiglu
151M1 × 40960 × 4096
209addedAdd_34_ffn
Add
1 × 40960 × 4096
210addedRMSNorm_35_1
Rms Norm
4.1K1 × 40960 × 4096
211addedAttention_35
Grouped Query Attention
42M1 × 40960 × 4096
212addedAdd_35_attn
Add
1 × 40960 × 4096
213addedRMSNorm_35_2
Rms Norm
4.1K1 × 40960 × 4096
214addedFFN_35
Swiglu
151M1 × 40960 × 4096
215addedAdd_35_ffn
Add
1 × 40960 × 4096
216addedRMSNorm_36_1
Rms Norm
4.1K1 × 40960 × 4096
217addedAttention_36
Grouped Query Attention
42M1 × 40960 × 4096
218addedAdd_36_attn
Add
1 × 40960 × 4096
219addedRMSNorm_36_2
Rms Norm
4.1K1 × 40960 × 4096
220addedFFN_36
Swiglu
151M1 × 40960 × 4096
221sameresidual_2
Add
1 × 1024 × 768Add_36_ffn
Add
1 × 40960 × 4096
222changed
type, normalizedShape
ln_f
Layer Norm
1.5K1 × 1024 × 768Final_RMSNorm
Rms Norm
4.1K1 × 40960 × 4096
223changed
outFeatures, inFeatures, bias
lm_head
Linear
1 × 1024 × 50257LM_Head
Linear
622M1 × 40960 × 151936
224samelogits
Output
1 × 1024 × 50257Output
Output
1 × 40960 × 151936

What this is not

Take it further

Open either graph in the editor, change it, and check it again: GPT-2 · Qwen3-8B

Compare any two models of your own, including anything on Hugging Face: the comparison tool.

Machine-readable: this page as markdown · the pair index · POST https://www.neurarch.com/api/v1/plan for a graph of your own.

Related comparisons

GPT-2 vs BERT Base
Decoder-only against encoder-only, same era, same size class.
Qwen3-8B vs Phi-3 Mini Block
What gets cut to make a small model small.
Qwen3-8B vs Llama-4 Scout
Two 2026 open models with different attention budgets.