EncT5 is a variant of T5 that utilizes mainly the encoder for non-autoregressive (ie. classification and regression)
tasks. The model is from the paper
Fine-tuning T5 Encoder for Non-autoregressive Tasks
by Frederick Liu, Terry Huang, Shihang Lyu, Siamak Shakeri, Hongkun Yu, Jing Li
Research has shown that this model can be more efficient and usable over T5 and BERT for non-autoregressive
tasks such as classification and regression.
Use the code below to get started with the model.
1model = AutoModelForSequenceClassification.from_pretrained("hackyon/enct5-base", trust_remote_code=True)
2# Fine-tune the model before use.
See the
github repro for a more comprehensive guide.
The weights of this model are directly copied from
t5-base.