N Neurarch Architectures Models Checks Data Docs Open the app

Models / t5

t5-small

Reconstructed from its own config.json with no weights read. 23.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
60.6M
60,576,000 parameters
In the published checkpoint
60.5M
60,506,880 scalars · safetensors.total, read 2026-09-06
Delta
+0.11%

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

Structure

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

LayerTypeOutput shape
1InputInput1 × 512
2Encoder_EmbeddingEmbedding1 × 512 × 512
3Relative_Position_BiasRelative Position Bias1 × 512 × 512
4Enc_Attn_1Multi-Head Attention1 × 512 × 512
5Enc_Add_1Add1 × 512 × 512
6Enc_Norm_1LayerNorm1 × 512 × 512
7Enc_FFN_1Feed Forward1 × 512 × 512
8Enc_Attn_2Multi-Head Attention1 × 512 × 512
9Enc_Add_2Add1 × 512 × 512
10Enc_Norm_2LayerNorm1 × 512 × 512
11Enc_FFN_2Feed Forward1 × 512 × 512
12Enc_Attn_3Multi-Head Attention1 × 512 × 512
13Enc_Add_3Add1 × 512 × 512
14Enc_Norm_3LayerNorm1 × 512 × 512
15Enc_FFN_3Feed Forward1 × 512 × 512
16Enc_Attn_4Multi-Head Attention1 × 512 × 512
17Enc_Add_4Add1 × 512 × 512
18Enc_Norm_4LayerNorm1 × 512 × 512
19Enc_FFN_4Feed Forward1 × 512 × 512
20Enc_Attn_5Multi-Head Attention1 × 512 × 512
21Enc_Add_5Add1 × 512 × 512
22Enc_Norm_5LayerNorm1 × 512 × 512
23Enc_FFN_5Feed Forward1 × 512 × 512
24Enc_Attn_6Multi-Head Attention1 × 512 × 512
25Enc_Add_6Add1 × 512 × 512
26Enc_Norm_6LayerNorm1 × 512 × 512
27Enc_FFN_6Feed Forward1 × 512 × 512
28Decoder_EmbeddingEmbedding1 × 512 × 512
29Dec_SelfAttn_1Multi-Head Attention1 × 512 × 512
30Dec_Add_1Add1 × 512 × 512
31Dec_Norm1_1LayerNorm1 × 512 × 512
32Dec_CrossAttn_1Cross-Attention1 × 512 × 512
33Dec_Add2_1Add1 × 512 × 512
34Dec_Norm2_1LayerNorm1 × 512 × 512
35Dec_FFN_1Feed Forward1 × 512 × 512
36Dec_SelfAttn_2Multi-Head Attention1 × 512 × 512
37Dec_Add_2Add1 × 512 × 512
38Dec_Norm1_2LayerNorm1 × 512 × 512
39Dec_CrossAttn_2Cross-Attention1 × 512 × 512
40Dec_Add2_2Add1 × 512 × 512
41Dec_Norm2_2LayerNorm1 × 512 × 512
42Dec_FFN_2Feed Forward1 × 512 × 512
43Dec_SelfAttn_3Multi-Head Attention1 × 512 × 512
44Dec_Add_3Add1 × 512 × 512
45Dec_Norm1_3LayerNorm1 × 512 × 512
46Dec_CrossAttn_3Cross-Attention1 × 512 × 512
47Dec_Add2_3Add1 × 512 × 512
48Dec_Norm2_3LayerNorm1 × 512 × 512
49Dec_FFN_3Feed Forward1 × 512 × 512
50Dec_SelfAttn_4Multi-Head Attention1 × 512 × 512
51Dec_Add_4Add1 × 512 × 512
52Dec_Norm1_4LayerNorm1 × 512 × 512
53Dec_CrossAttn_4Cross-Attention1 × 512 × 512
54Dec_Add2_4Add1 × 512 × 512
55Dec_Norm2_4LayerNorm1 × 512 × 512
56Dec_FFN_4Feed Forward1 × 512 × 512
57Dec_SelfAttn_5Multi-Head Attention1 × 512 × 512
58Dec_Add_5Add1 × 512 × 512
59Dec_Norm1_5LayerNorm1 × 512 × 512
60Dec_CrossAttn_5Cross-Attention1 × 512 × 512
61Dec_Add2_5Add1 × 512 × 512
62Dec_Norm2_5LayerNorm1 × 512 × 512
63Dec_FFN_5Feed Forward1 × 512 × 512
64Dec_SelfAttn_6Multi-Head Attention1 × 512 × 512
65Dec_Add_6Add1 × 512 × 512
66Dec_Norm1_6LayerNorm1 × 512 × 512
67Dec_CrossAttn_6Cross-Attention1 × 512 × 512
68Dec_Add2_6Add1 × 512 × 512
69Dec_Norm2_6LayerNorm1 × 512 × 512
70Dec_FFN_6Feed Forward1 × 512 × 512
71LM_HeadLinear1 × 512 × 32128
72OutputOutput1 × 512 × 32128

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 google-t5/t5-small --plan --share