T5 11B
Google · T5 · open weights · encoder-decoder
- MHA
- Relative bias
- Pre-norm
- Encoder-decoder
Facts and where they come from
| Released | 2019-10 | paperarXiv 1910.10683arXiv v1, October 2019 |
|---|---|---|
| Licence | apache-2.0 | config.jsonconfig.jsonREADME metadata: license |
| Total parameters | 11B | labmodel cardREADME: T5-11B is the checkpoint with 11 billion parameters |
| Active parameters | not disclosed | not disclosed |
| Context length | 512 tokens | config.jsonconfig.jsonn_positions |
| Norm placement | pre | codemodelling codetransformers 5.18.0 t5: layer_norm before each sub-layer (T5LayerNorm, no bias or mean) |
| Norm type | RMSNorm | codemodelling codetransformers 5.18.0 t5: layer_norm before each sub-layer (T5LayerNorm, no bias or mean) |
| QK-norm | no | codemodelling codeno q/k normalisation in the attention block |
| Positional encoding | relative position bias | codemodelling codetransformers 5.18.0 t5: bucketed relative position bias |
| Parallel attention and MLP | no | codemodelling codetransformers 5.18.0 t5: layer_norm before each sub-layer (T5LayerNorm, no bias or mean) |
Architecture, drawn from the data
MHA 128q/128kv. Each column is one layer: its token mixer above, its feed-forward block below. Paler columns reuse another layer’s keys and values.
Modelled costs
From the cost model, batch size 1. Totals the lab states are in the table above; differences come from rounding, from what a lab counts, or from parts the model does not describe (listed on the about page).
| Parameters (modelled) | 11.3B |
|---|---|
| Active per token (modelled) | 11.3B |
| Without embeddings and output head | 11.3B total, 11.3B active |
| KV cache per token, BF16 (layers that grow with context) | 3 MiB |
| KV cache + state at 512 tokens, BF16 | 1.5 GiB |
| Decode FLOPs per token at 4K context | 35.5 GFLOP |
| Prefill FLOPs for a 4K prompt | 106 TFLOP |
KV cache against context
Every architecture field
| Field | Value | Source |
|---|---|---|
| d_model | 1,024 | config.jsonconfig.jsond_model |
| vocab | 32,128 | config.jsonconfig.jsonvocab_size |
| tied_embeddings | true | codemodelling codetransformers 5.18.0 t5: tie_word_embeddings default true |
| mixers.full.type | attn | codemodelling codeattention |
| mixers.full.heads | 128 | config.jsonconfig.jsonnum_heads |
| mixers.full.kv_heads | 128 | config.jsonconfig.jsonnum_heads |
| mixers.full.head_dim | 128 | config.jsonconfig.jsond_kv |
| ffns.dense.type | dense | codemodelling codeMLP |
| ffns.dense.d_ff | 65,536 | config.jsonconfig.jsond_ff |
| ffns.dense.gated | false | codemodelling codefeed_forward_proj |
| layout | 24× full/dense | config.jsonconfig.jsonnum_decoder_layers |
| encoder_layout | 24× full/dense | config.jsonconfig.jsonnum_layers |
| norms_per_layer | 2 | codemodelling codepre-norm RMSNorm |
Sources
- config.json @ 90f3770
- model card
- arXiv 1910.10683
- modelling code · transformers 5.18.0 modelling code, or the model repository's own modelling file at the pinned revision