N Neurarch Architectures Models Checks Data Docs Open the app

Models / gpt_neox

pythia-160m

Reconstructed from its own config.json with no weights read. 3.4M 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
164M
163,946,112 parameters
In the published checkpoint
213M
212,654,688 scalars · safetensors.total, read 2026-09-06
Delta
-22.9%

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

Structure

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

LayerTypeOutput shape
1InputInput1 × 2048
2EmbeddingEmbedding1 × 2048 × 768
3Positional_EmbeddingLearned Pos Embed1 × 2048 × 768
4LayerNorm_1_1LayerNorm1 × 2048 × 768
5Attention_1Multi-Head Attention1 × 2048 × 768
6Add_1_attnAdd1 × 2048 × 768
7LayerNorm_1_2LayerNorm1 × 2048 × 768
8FFN_1Feed Forward1 × 2048 × 768
9Add_1_ffnAdd1 × 2048 × 768
10LayerNorm_2_1LayerNorm1 × 2048 × 768
11Attention_2Multi-Head Attention1 × 2048 × 768
12Add_2_attnAdd1 × 2048 × 768
13LayerNorm_2_2LayerNorm1 × 2048 × 768
14FFN_2Feed Forward1 × 2048 × 768
15Add_2_ffnAdd1 × 2048 × 768
16LayerNorm_3_1LayerNorm1 × 2048 × 768
17Attention_3Multi-Head Attention1 × 2048 × 768
18Add_3_attnAdd1 × 2048 × 768
19LayerNorm_3_2LayerNorm1 × 2048 × 768
20FFN_3Feed Forward1 × 2048 × 768
21Add_3_ffnAdd1 × 2048 × 768
22LayerNorm_4_1LayerNorm1 × 2048 × 768
23Attention_4Multi-Head Attention1 × 2048 × 768
24Add_4_attnAdd1 × 2048 × 768
25LayerNorm_4_2LayerNorm1 × 2048 × 768
26FFN_4Feed Forward1 × 2048 × 768
27Add_4_ffnAdd1 × 2048 × 768
28LayerNorm_5_1LayerNorm1 × 2048 × 768
29Attention_5Multi-Head Attention1 × 2048 × 768
30Add_5_attnAdd1 × 2048 × 768
31LayerNorm_5_2LayerNorm1 × 2048 × 768
32FFN_5Feed Forward1 × 2048 × 768
33Add_5_ffnAdd1 × 2048 × 768
34LayerNorm_6_1LayerNorm1 × 2048 × 768
35Attention_6Multi-Head Attention1 × 2048 × 768
36Add_6_attnAdd1 × 2048 × 768
37LayerNorm_6_2LayerNorm1 × 2048 × 768
38FFN_6Feed Forward1 × 2048 × 768
39Add_6_ffnAdd1 × 2048 × 768
40LayerNorm_7_1LayerNorm1 × 2048 × 768
41Attention_7Multi-Head Attention1 × 2048 × 768
42Add_7_attnAdd1 × 2048 × 768
43LayerNorm_7_2LayerNorm1 × 2048 × 768
44FFN_7Feed Forward1 × 2048 × 768
45Add_7_ffnAdd1 × 2048 × 768
46LayerNorm_8_1LayerNorm1 × 2048 × 768
47Attention_8Multi-Head Attention1 × 2048 × 768
48Add_8_attnAdd1 × 2048 × 768
49LayerNorm_8_2LayerNorm1 × 2048 × 768
50FFN_8Feed Forward1 × 2048 × 768
51Add_8_ffnAdd1 × 2048 × 768
52LayerNorm_9_1LayerNorm1 × 2048 × 768
53Attention_9Multi-Head Attention1 × 2048 × 768
54Add_9_attnAdd1 × 2048 × 768
55LayerNorm_9_2LayerNorm1 × 2048 × 768
56FFN_9Feed Forward1 × 2048 × 768
57Add_9_ffnAdd1 × 2048 × 768
58LayerNorm_10_1LayerNorm1 × 2048 × 768
59Attention_10Multi-Head Attention1 × 2048 × 768
60Add_10_attnAdd1 × 2048 × 768
61LayerNorm_10_2LayerNorm1 × 2048 × 768
62FFN_10Feed Forward1 × 2048 × 768
63Add_10_ffnAdd1 × 2048 × 768
64LayerNorm_11_1LayerNorm1 × 2048 × 768
65Attention_11Multi-Head Attention1 × 2048 × 768
66Add_11_attnAdd1 × 2048 × 768
67LayerNorm_11_2LayerNorm1 × 2048 × 768
68FFN_11Feed Forward1 × 2048 × 768
69Add_11_ffnAdd1 × 2048 × 768
70LayerNorm_12_1LayerNorm1 × 2048 × 768
71Attention_12Multi-Head Attention1 × 2048 × 768
72Add_12_attnAdd1 × 2048 × 768
73LayerNorm_12_2LayerNorm1 × 2048 × 768
74FFN_12Feed Forward1 × 2048 × 768
75Add_12_ffnAdd1 × 2048 × 768
76Final_LayerNormLayerNorm1 × 2048 × 768
77LM_HeadLinear1 × 2048 × 50304
78OutputOutput1 × 2048 × 50304

What the verifier says

infoAt 12 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 EleutherAI/pythia-160m --plan --share