T5 Pre-training › T5 Training Scale
Language AI HandbookAll chapters T5 Pre-training › T5 Training ScaleOne section · Sections in this chapter7 / 11 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
The T5 paper introduced models at five different scales, letting systematic study of how performance varies with model size.
Model Variants
T5 was released in five sizes:
| Model | Parameters | Encoder Layers | Decoder Layers | Hidden Size | Attention Heads |
|---|---|---|---|---|---|
| T5-Small | 60M | 6 | 6 | 512 | 8 |
| T5-Base | 220M | 12 | 12 | 768 | 12 |
| T5-Large | 770M | 24 | 24 | 1024 | 16 |
| T5-3B | 3B | 24 | 24 | 1024 | 32 |
| T5-11B | 11B | 24 | 24 | 1024 | 128 |
As shown in Table t5-variants, the largest model (T5-11B) achieved state-of-the-art results on numerous benchmarks at the time of release. The size progression allowed researchers to study scaling laws and helped establish that larger models consistently perform better when trained appropriately.

Training Configuration
T5 models were trained with the following key hyperparameters:
- Sequence length: 512 tokens for both encoder and decoder
- Batch size: 128 sequences (65,536 tokens per batch for T5-Base)
- Training steps: 1 million steps for the base setup
- Optimizer: Adafactor, a memory-efficient variant of Adam
- Learning rate: Inverse square root decay schedule
The total compute for T5-11B was substantial, requiring multiple TPU pods running for weeks. This level of investment established a new baseline for what's possible with sufficient resources.
Effective Training Tokens
With 1 million training steps and batch size 128, the model sees:
With 512 tokens per sequence:
This means T5 was trained for less than one epoch over C4, seeing each example on average less than once. This is common in large-scale pre-training: the dataset is so large that even partial coverage gives sufficient training signal.