Skip to content
fn

t5_large

→T5Model738M
t5_large(pretrained: bool = False, overrides: object = {})

T5-Large trunk — BERT-Large on each side.

Twenty-four blocks per stack, dmodel=1024d_{\text{model}} = 1024, dff=4096d_{ff} = 4096, sixteen heads of width 64.

Model Size

Parameters

pretrainedbool= False
True raises until the released T5-Large checkpoint is hosted for Lucid.
**overridesobject= {}
Field overrides applied on top of the Large configuration.

Returns

T5Model

Trunk of 737.7M parameters (the paper quotes about 770M).

Notes

Reference: Raffel et al., JMLR 2020 (arXiv:1910.10683), §3.7.

Examples

>>> from lucid.models.text.t5 import t5_large
>>> t5_large().config.hidden_size
1024

Used by 1