Skip to content
fn

t5_base

→T5Model223M
t5_base(pretrained: bool = False, overrides: object = {})

T5-Base trunk — the size every ablation of §3.1–§3.6 runs at.

BERT-Base on each side: twelve blocks, dmodel=768d_{\text{model}} = 768, dff=3072d_{ff} = 3072, twelve heads of width 64.

Model Size

Parameters

pretrainedbool= False
True raises: the released T5-Base weights have not been converted for Lucid.
**overridesobject= {}
T5Config fields to change from the Base defaults.

Returns

T5Model

The 220M-parameter trunk, about twice BERT-Base for its two stacks.

Notes

Reference: Raffel et al., JMLR 2020 (arXiv:1910.10683), §3.1.1 and §3.7. The baseline of the paper's systematic study pre-trains this model for 2192^{19} steps on C4.

Examples

>>> from lucid.models.text.t5 import t5_base
>>> t5_base().config.num_hidden_layers
12

Used by 1