Skip to content
fn

t5_base_seq2seq

→T5ForSeq2SeqLM223M
t5_base_seq2seq(pretrained: bool = False, overrides: object = {})

t5_base with the tied text-to-text head.

Model Size

Parameters

pretrainedbool= False
The T5-Base text-to-text weights are not hosted for Lucid, so True raises.
**overridesobject= {}
Field overrides applied on top of the Base configuration.

Returns

T5ForSeq2SeqLM

The baseline model of the paper's systematic study.

Notes

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

Examples

>>> from lucid.models.text.t5 import t5_base_seq2seq
>>> t5_base_seq2seq().lm_head.out_features
32128

Used by 1