Views
No views yet
| Dataset | Rouge-1 | Rouge-2 | Rouge-Lsum |
|---|---|---|---|
| arXiv (16k input) | 48.28 | 21.63 | 44.11 |
| PubMed (16k input) | 49.98 | 24.69 | 46.46 |
| BigPatent (16k input) | 70.38 | 56.81 | 62.73 |
| MultiNews (8k input) | 47.18 | 18.44 | 24.18 |
| MediaSum (4k input) | 35.54 | 19.04 | 32.20 |
| CNN / DailyMail (4k input) | 42.49 | 20.51 | 40.18 |
| Dataset | EM | F1 |
|---|---|---|
| Natural Questions (4k input) | 60.77 | 65.38 |
| Trivia QA (16k input) | 78.38 | 82.45 |
1from transformers import AutoTokenizer, LongT5Model
2
3tokenizer = AutoTokenizer.from_pretrained("google/long-t5-tglobal-large")
4model = LongT5Model.from_pretrained("google/long-t5-tglobal-large")
5
6inputs = tokenizer("Hello, my dog is cute", return_tensors="pt")
7outputs = model(**inputs)
8
9last_hidden_states = outputs.last_hidden_state1@article{guo2021longt5,
2 title={LongT5: Efficient Text-To-Text Transformer for Long Sequences},
3 author={Guo, Mandy and Ainslie, Joshua and Uthus, David and Ontanon, Santiago and Ni, Jianmo and Sung, Yun-Hsuan and Yang, Yinfei},
4 journal={arXiv preprint arXiv:2112.07916},
5 year={2021}
6}