Skip to content
fn

t5_3b

→T5Model2.9B
t5_3b(pretrained: bool = False, overrides: object = {})

T5-3B trunk — Large's depth and width, a wider inside.

The feed-forward grows to dff=16384d_{ff} = 16384 and attention to 32 heads of width 128, so each block attends at 4096 channels while the residual stream stays at 1024.

Model Size

Parameters

pretrainedbool= False
No converted 3B checkpoint exists for Lucid yet; True raises.
**overridesobject= {}
Changes to the 3B configuration.

Returns

T5Model

2.85B-parameter trunk.

Notes

Reference: Raffel et al., JMLR 2020 (arXiv:1910.10683), §3.7. Building it allocates about 11 GB of float32 weights.

Examples

>>> from lucid.models.text.t5 import t5_3b
>>> t5_3b().config.inner_dim
4096

Used by 1