whatmodel.sh / Flan-T5 XL

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.

37.1±0.9#617 of 743 LLMsfrom 22 benchmark results across 14 sources

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.

#modelscorewhereRAMreleased
730Mistral 7B v0.1 (base) Mistral AI37±1local~5.8GB2023-09
731Llama 3 8B (base) Meta37±1local~6.7GB2024-04
732Flan-T5 XL Google37±1local~14GB2022-10
733Gemma 7B (base) Google37±1local~7.1GB2024-02
734Tulu 2 DPO 7B Allen Institute for AI37±1local~5.8GB2023-11
more from Google
3Gemini 4 Carbon Google84±1api $4.00/M2026-10
9Gemini 4 Argon Google81±1api $4.00/M2026-09
14Gemini 4 Hydrogen Google79±2api $3.00/M2026-11

see all LLMs · find the ones that fit your machine

$ 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.

testresultvs the others in its rundifficultycountswhy
GSM8K +113.5% ✎▂▂▂▂▃▄▅▇██▆▄ beats 40/206medium · avg 50%▇▇▇▇▇▇▇ 17%sharp · several runs
MGSM lab1.9% ✎▆·▃·▄▂▂▂▂█▄▆ beats 3/18medium · avg 48%▇▇▇ 7.0%sharp
other tests16 not in a task · 75% of its score
testresultvs the others in its rundifficultycountswhy
MMLU lab +252.4% ✎▁···▁··▃▁▅▅█ beats 6/18easy · avg 74%▇▇▇▇▇▇▇▇▇▇▇ 27%at its level · several runs
BIG-Bench Hard lab +141.0% ✎▂▂▂▂·▅·▃▂█▃▃ beats 7/18medium · avg 68%▇▇▇▇▇▇▇▇▇ 24%sharp · several runs
TyDiQA-GoldP (1-shot, EM, 8-language average) lab16.6% ✎▂··▂·▂▄▄·███ beats 3/18medium · avg 61%▇▇ 4.3%at its level
POSQA general (yes/no) size questions, plain zero-shot prompt58.0% ✎█···█·····██ beats 3/3medium · avg 68%▇ 3.3%typical
ZeroSCROLLS QuALITY (zero-shot accuracy)69.6% ✎▃····▃·▃▃█▅▅ beats 6/10easy · avg 82%▇ 2.6%at its level
ZeroSCROLLS Qasper (zero-shot F1)46.6% ✎▂▂··▂·▂··▃█▄ beats 4/10medium · avg 56%▇ 2.3%blunt · at its level
SciTab 3-class claim verification (zero-shot, macro-F1)38.0% ✎█···▄▄·▄▄▄·▄ beats 6/7medium · avg 51%▇ 2.0%blunt · at its level
CSK-PN boolean commonsense QA (10-shot)81.4% ✎▃·▃·····▃▃▃█ beats 3/7easy · avg 87%▇ 1.9%blunt · at its level
8 more tests
testresultvs the others in its rundifficultycountswhy
BIG-Bench Hard, 27 subsets, zero-shot direct (CoT Collection protocol)37.1% ✎█····█··█··█ beats 2/3medium · avg 57%▇ 1.8%blunt · at its level
PopQA11.3% ✎▁▂▃▃▃█▂█▆▅▁▆ beats 3/40hard · avg 31%▇ 1.6%typical
HateCheck functional tests, zero-shot accuracy77.7% ✎█·····█·█··█ beats 2/3easy · avg 84%▇ 1.3%blunt · at its level
ZeroSCROLLS NarrativeQA (zero-shot F1)21.6% ✎▃··▃·█▃·█▃·▃ beats 5/10hard · avg 29%▇ 1.1%blunt
ConvRe Re2Text, normal relation, zero-shot (prompt 1#)91.5% ✎▂▂▄··▂▂█▄··▂ beats 11/12easy · avg 90%▇ 1.0%at its level · noisy
Zero-shot relation extraction, vanilla prompt (TACRED/RETACRED/TACREV/SemEval avg F1)46.6% ✎█····▄····█▄ beats 4/5medium · avg 51%▇ 0.9%blunt · at its level
ZeroSCROLLS MuSiQue (zero-shot F1)42.8% ✎▄·█··██·▄▄▄▄ beats 8/10medium · avg 43%▇ 0.3%blunt · at its level
FANToM BeliefQ [Choice], short context (zero-shot)30.5% ✎█·····▂····▁ beats 8/11very hard · avg 55%▇ 0.2%sharp · too hard for it · noisy

$ 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

  1. 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

sourceresultsshare of the scorelicence
Scaling Instruction-Finetuned Language Models — authors' own runs · maker-reported4CC BY 4.0
InstructEval (DeCLaRe Lab) README results table2MIT / Apache-2.0
Specializing Smaller Language Models towards Multi-Step Reasoning — authors' own runs1CC BY 4.0
Augmentation-Adapted Retriever Improves Generalization of Language Models as Generic Plug-In — authors' own runs2CC BY 4.0
ZeroSCROLLS: A Zero-Shot Benchmark for Long Text Understanding — authors' own runs4CC BY 4.0
Chain-of-Thought Hub: A Continuous Effort to Measure Large Language Models' Reasoning Performance — authors' own runs1CC BY 4.0
POSQA: Probe the World Models of LLMs with Size Comparisons — authors' own runs1CC BY 4.0
SCITAB: A Challenging Benchmark for Compositional Reasoning and Claim Verification on Scientific Tables — authors' own runs1CC BY 4.0
Say What You Mean! Large Language Models Speak Too Positively about Negative Commonsense Knowledge — authors' own runs1CC BY 4.0
The CoT Collection: Improving Zero-shot and Few-shot Learning of Language Models via Chain-of-Thought Fine-Tuning — authors' own runs1CC BY 4.0
InstructSafety: A Unified Framework for Building Multidimensional and Explainable Safety Detector through Instruction Tuning — authors' own runs1CC BY 4.0
An Investigation of LLMs' Inefficacy in Understanding Converse Relations — authors' own runs1CC BY 4.0
Aligning Instruction Tasks Unlocks Large Language Models as Zero-Shot Relation Extractors — authors' own runs1CC BY 4.0
FANToM: A Benchmark for Stress-testing Machine Theory of Mind in Interactions — authors' own runs1CC BY 4.0
prior · pull toward the middle
weighted average= 37.1

$ 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