Upload showcase.png e2e9697 verified
Lifu Wang commited on
How to use LifuWang/DistillT5 with Transformers:
# Load model directly
from transformers import AutoTokenizer, T5EncoderWithProjection
tokenizer = AutoTokenizer.from_pretrained("LifuWang/DistillT5")
model = T5EncoderWithProjection.from_pretrained("LifuWang/DistillT5", device_map="auto")