whatmodel.sh / Flan-T5 XL
Flan-T5 XL
↗ share
+ contribute
Flan-T5 XL is an open-weights language model from Google, released October 2022. Its published size is 2.85B parameters. Licence: apache-2.0.
Catalogue identity notes
Instruction-finetuned T5 v1.1 LM-adapted checkpoint released with Chung et al. 2022.
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Flan-T5 XL, out of 897 with a score, then more from Google.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 730 | 37±1 | local | |||
| 731 | 37±1 | local | |||
| 732 | 37±1 | local | |||
| 733 | 37±1 | local | |||
| 734 | 37±1 | local | |||
| more from Google | |||||
| 3 | 84±1 | api $4.00/M | |||
| 9 | 81±1 | api $4.00/M | |||
| 14 | 79±2 | api $3.00/M | |||
$ what it's good at
math▁▁▃▅█▆▅█▄▁▁▁ #414 of 440 · 24% of its score · 2 tests
Beats Command R (03-2024), Mistral 7B Instruct v0.3, Llama-3-Instruct-8B-SimPO-v0.2 here, though they rank higher overall. Trails GPT-Neo 125M, OPT-125M, GPT-2 XL (1.5B) here, though they rank lower overall.
other tests16 not in a task · 75% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| MMLU lab +2 | 52.4% ✎ | ▁···▁··▃▁▅▅█ beats 6/18 | 27% |
| BIG-Bench Hard lab +1 | 41.0% ✎ | ▂▂▂▂·▅·▃▂█▃▃ beats 7/18 | 24% |
| TyDiQA-GoldP (1-shot, EM, 8-language average) lab | 16.6% ✎ | ▂··▂·▂▄▄·███ beats 3/18 | 4.3% |
| POSQA general (yes/no) size questions, plain zero-shot prompt | 58.0% ✎ | █···█·····██ beats 3/3 | 3.3% |
| ZeroSCROLLS QuALITY (zero-shot accuracy) | 69.6% ✎ | ▃····▃·▃▃█▅▅ beats 6/10 | 2.6% |
| ZeroSCROLLS Qasper (zero-shot F1) | 46.6% ✎ | ▂▂··▂·▂··▃█▄ beats 4/10 | 2.3% |
| SciTab 3-class claim verification (zero-shot, macro-F1) | 38.0% ✎ | █···▄▄·▄▄▄·▄ beats 6/7 | 2.0% |
| CSK-PN boolean commonsense QA (10-shot) | 81.4% ✎ | ▃·▃·····▃▃▃█ beats 3/7 | 1.9% |
8 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BIG-Bench Hard, 27 subsets, zero-shot direct (CoT Collection protocol) | 37.1% ✎ | █····█··█··█ beats 2/3 | 1.8% |
| PopQA | 11.3% ✎ | ▁▂▃▃▃█▂█▆▅▁▆ beats 3/40 | 1.6% |
| HateCheck functional tests, zero-shot accuracy | 77.7% ✎ | █·····█·█··█ beats 2/3 | 1.3% |
| ZeroSCROLLS NarrativeQA (zero-shot F1) | 21.6% ✎ | ▃··▃·█▃·█▃·▃ beats 5/10 | 1.1% |
| ConvRe Re2Text, normal relation, zero-shot (prompt 1#) | 91.5% ✎ | ▂▂▄··▂▂█▄··▂ beats 11/12 | 1.0% |
| Zero-shot relation extraction, vanilla prompt (TACRED/RETACRED/TACREV/SemEval avg F1) | 46.6% ✎ | █····▄····█▄ beats 4/5 | 0.9% |
| ZeroSCROLLS MuSiQue (zero-shot F1) | 42.8% ✎ | ▄·█··██·▄▄▄▄ beats 8/10 | 0.3% |
| FANToM BeliefQ [Choice], short context (zero-shot) | 30.5% ✎ | █·····▂····▁ beats 8/11 | 0.2% |
$ where to run it
Memory is what a version takes in GPU memory (or a Mac's unified memory) with an 8k-token conversation. With less, it runs partly from system RAM, more slowly. Enter your machine to see what runs at full speed.
Other ways to run it
- Run it as published · needs 13.5 GB memory, 11.4 GB download · from huggingface.co/google (official)
uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text2text-generation', model='google/flan-t5-xl', torch_dtype='auto', device_map='auto')('Answer the question: what is the capital of France?', max_new_tokens=40)[0]['generated_text'])"
Model repository and documentation: huggingface.co/google ↗
$ how the score was worked out · Scaling Instruction-Finetuned… 31%, InstructEval (DeCLaRe Lab) RE… 24%, Specializing Smaller Language… 14% and 11 more
Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works
$ improve this page
Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.
data updated · sources and licences · json