From: google <huggingface.co/google>Newsgroups: alt.freeweights.textSubject:

flan-t5-xl

Date: 2026-11-15Commit: 7d6315dSigned: 2DC28CC7B26A283B ✓

Model with 2.8B parameters. Safetensors weights, 45.6 GB in all. Published by google under Apache-2.0.

2.8B params45.6GBflan-t5-xlsafetensorspermissive
FactsParams2.8BSize45.6 GBFormatssafetensorsTasknot taggedLicenseApache-2.0From sourcepermissive
$ fw get google/flan-t5-xl
# manifest sha256 bd7eab02baaa… · 45.6 GB · 20 files
$ fw verify ./flan-t5-xl google/flan-t5-xl
From sourceHosted (signed)google/flan-t5-xlLast check: 2026-11-15 02:30 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Overview

Size
45.6 GB
Weights
11.4 GB (safetensors)
Parameters
2.8B
Formats
safetensors
Task
not tagged
License
Apache-2.0 (permissive)
Files
20, each with a sha256
Publisher
google
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:30 UTCpassed

Model card

From the publisher at commit 7d6315d. Shown as plain text with links; images open at the publisher.

Model Card for FLAN-T5 XL#

Image: drawing

Table of Contents#

  1. TL;DR
  2. Model Details
  3. Usage
  4. Uses
  5. Bias, Risks, and Limitations
  6. Training Details
  7. Evaluation
  8. Environmental Impact
  9. Citation

TL;DR#

If you already know T5, FLAN-T5 is just better at everything. For the same number of parameters, these models have been fine-tuned on more than 1000 additional tasks covering also more languages. As mentioned in the first few lines of the abstract :

Flan-PaLM 540B achieves state-of-the-art performance on several benchmarks, such as 75.2% on five-shot MMLU. We also publicly release Flan-T5 checkpoints,1 which achieve strong few-shot performance even compared to much larger models, such as PaLM 62B. Overall, instruction finetuning is a general method for improving the performance and usability of pretrained language models.

Disclaimer: Content from this model card has been written by the Hugging Face team, and parts of it were copy pasted from the T5 model card.

Model Details#

Model Description#

  • Model type: Language model
  • Language(s) (NLP): English, Spanish, Japanese, Persian, Hindi, French, Chinese, Bengali, Gujarati, German, Telugu, Italian, Arabic, Polish, Tamil, Marathi, Malayalam, Oriya, Panjabi, Portuguese, Urdu, Galician, Hebrew, Korean, Catalan, Thai, Dutch, Indonesian, Vietnamese, Bulgarian, Filipino, Central Khmer, Lao, Turkish, Russian, Croatian, Swedish, Yoruba, Kurdish, Burmese, Malay, Czech, Finnish, Somali, Tagalog, Swahili, Sinhala, Kannada, Zhuang, Igbo, Xhosa, Romanian, Haitian, Estonian, Slovak, Lithuanian, Greek, Nepali, Assamese, Norwegian
  • License: Apache 2.0
  • Related Models: All FLAN-T5 Checkpoints
  • Original Checkpoints: All Original FLAN-T5 Checkpoints
  • Resources for more information:

Usage#

Find below some example scripts on how to use the model in transformers:

Using the Pytorch model#

Running the model on a CPU#

Click to expand


from transformers import T5Tokenizer, T5ForConditionalGeneration

tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-xl")
model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-xl")

input_text = "translate English to German: How old are you?"
input_ids = tokenizer(input_text, return_tensors="pt").input_ids

outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))
Running the model on a GPU#

Click to expand

# pip install accelerate
from transformers import T5Tokenizer, T5ForConditionalGeneration

tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-xl")
model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-xl", device_map="auto")

input_text = "translate English to German: How old are you?"
input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")

outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))
Running the model on a GPU using different precisions#
FP16#

Click to expand

# pip install accelerate
import torch
from transformers import T5Tokenizer, T5ForConditionalGeneration

tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-xl")
model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-xl", device_map="auto", torch_dtype=torch.float16)

input_text = "translate English to German: How old are you?"
input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")

outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))
INT8#

Click to expand

# pip install bitsandbytes accelerate
from transformers import T5Tokenizer, T5ForConditionalGeneration

tokenizer = T5Tokenizer.from_pretrained("google/flan-t5-xl")
model = T5ForConditionalGeneration.from_pretrained("google/flan-t5-xl", device_map="auto", load_in_8bit=True)

input_text = "translate English to German: How old are you?"
input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda")

outputs = model.generate(input_ids)
print(tokenizer.decode(outputs[0]))

Uses#

Direct Use and Downstream Use#

The authors write in the original paper's model card that:

The primary use is research on language models, including: research on zero-shot NLP tasks and in-context few-shot learning NLP tasks, such as reasoning, and question answering; advancing fairness and safety research, and understanding limitations of current large language models

See the research paper for further details.

Out-of-Scope Use#

More information needed.

Bias, Risks, and Limitations#

The information below in this section are copied from the model's official model card:

Language models, including Flan-T5, can potentially be used for language generation in a harmful way, according to Rae et al. (2021). Flan-T5 should not be used directly in any application, without a prior assessment of safety and fairness concerns specific to the application.

Ethical considerations and risks#

Flan-T5 is fine-tuned on a large corpus of text data that was not filtered for explicit content or assessed for existing biases. As a result the model itself is potentially vulnerable to generating equivalently inappropriate content or replicating inherent biases in the underlying data.

Known Limitations#

Flan-T5 has not been tested in real world applications.

Sensitive Use:#

Flan-T5 should not be applied for any unacceptable use cases, e.g., generation of abusive speech.

Training Details#

Training Data#

The model was trained on a mixture of tasks, that includes the tasks described in the table below (from the original paper, figure 2):

Image: table.png

Training Procedure#

According to the model card from the original paper:

These models are based on pretrained T5 (Raffel et al., 2020) and fine-tuned with instructions for better zero-shot and few-shot performance. There is one fine-tuned Flan model per T5 model size.

The model has been trained on TPU v3 or TPU v4 pods, using t5x codebase together with jax.

Evaluation#

Testing Data, Factors & Metrics#

The authors evaluated the model on various tasks covering several languages (1836 in total). See the table below for some quantitative evaluation: Image: image.png For full details, please check the research paper.

Results#

For full results for FLAN-T5-XL, see the research paper, Table 3.

Environmental Impact#

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

  • Hardware Type: Google Cloud TPU Pods - TPU v3 or TPU v4 | Number of chips ≥ 4.
  • Hours used: More information needed
  • Cloud Provider: GCP
  • Compute Region: More information needed
  • Carbon Emitted: More information needed

Citation#

BibTeX:

@misc{https://doi.org/10.48550/arxiv.2210.11416,
  doi = {10.48550/ARXIV.2210.11416},
  
  url = {https://arxiv.org/abs/2210.11416},
  
  author = {Chung, Hyung Won and Hou, Le and Longpre, Shayne and Zoph, Barret and Tay, Yi and Fedus, William and Li, Eric and Wang, Xuezhi and Dehghani, Mostafa and Brahma, Siddhartha and Webson, Albert and Gu, Shixiang Shane and Dai, Zhuyun and Suzgun, Mirac and Chen, Xinyun and Chowdhery, Aakanksha and Narang, Sharan and Mishra, Gaurav and Yu, Adams and Zhao, Vincent and Huang, Yanping and Dai, Andrew and Yu, Hongkun and Petrov, Slav and Chi, Ed H. and Dean, Jeff and Devlin, Jacob and Roberts, Adam and Zhou, Denny and Le, Quoc V. and Wei, Jason},
  
  keywords = {Machine Learning (cs.LG), Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
  
  title = {Scaling Instruction-Finetuned Language Models},
  
  publisher = {arXiv},
  
  year = {2022},
  
  copyright = {Creative Commons Attribution 4.0 International}
}

Files

20 files · 45.6 GBWeights 11.4 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 20 files with their sha256
FileSizesha256
.gitattributes1.43 KB1765298ba035280ac5e6e4595ab9fadd10e66fb301213dea96014ea7ac0b25a0
README.md10.7 KBc2210a137e81d30d03f2176cf6fba8132793d2f0286c38d944bd1b0122366515
config.json1.44 KBed9df0075dda91de9e9431f193203a3f869189e4effa3fc00cf9d41864f514ba
flax_model-00001-of-00002.msgpack9.97 GB32309ed3c4c2c2dd040f9f2adc116f9cbb1ad180fe323d7d8b31153cb85ff8a0
flax_model-00002-of-00002.msgpack1.43 GBe4ab8e7cf8238bc7eff23d1f6f47a7f67cda1c506e0f4b041329625f636e6d6b
flax_model.msgpack.index.json51.2 KBd1017fa00f7abd027872ee88cab0f21a2444a75ec0424d2b11ee4d7ac0849058
generation_config.json147 Bf5a1c7e2be8092018d8835128987edf0111637dd98e90599cc80310fef75d95a
model-00001-of-00002.safetensors9.45 GB99196ddfbe886e8ef860f52de979df64890edfc792c3d94ce0502991f347dd18
model-00002-of-00002.safetensors1.95 GBc0c677ddeb21009b6efd97146f37fc3a0396707fb5e63ade7aff64884dce9806
model.safetensors.index.json53.0 KB4af536474e3441bab3996748fcf730cd47bb4bd66842efda0acdcfdcaa7c7429
pytorch_model-00001-of-00002.bin9.45 GBc43a96461e48c0218de822525f8ecd12a8318ed01364cb1ca595e9a238fa49d2
pytorch_model-00002-of-00002.bin1.95 GB60d971db8f7f7c6ccd566267e27ba7915d77dded5b3d755fedbb74ba157c5eb1
pytorch_model.bin.index.json50.8 KBe284be89e0861a19e01f152caf64c27614751fc80358746558c8c6f4ae65c51c
special_tokens_map.json2.20 KB5c87151ef0f72a99d1f766a4c418bd2a1f90aaa30a8e22fe5eca9641daebb64f
spiece.model792 KBd60acb128cf7b7f2536e8f38a5b18a05535c9e14c7a355904270e15b0945ea86
tf_model-00001-of-00002.h59.97 GB22e2ed0ca1e11ec66d512f02decb37fe5faf35778f675b436502bf0edc302922
tf_model-00002-of-00002.h51.43 GB62647226929ac416abc356c3a78cf31fc78a0d11f7519d27f1d8eab3c04e43fc
tf_model.h5.index.json68.5 KB135c8946d6bbe0420c37728e2e6e72e7cf8c853fbea5e06fa706c0c48f18627e
tokenizer.json2.42 MBfe2ebbbbde2985be723e0ce18217853e4020c5e9d35bd07be2c27ab9d3ead57a
tokenizer_config.json2.54 KBef30e0628a2d067c5d9d02d98cbf9a2040f4a51883e5d16e1809eea548db0eff
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
7d6315df2c pinned now2026-11-15 02:30 UTC20 files · 45.6 GB

Use it

$ fw get google/flan-t5-xl
# manifest sha256 bd7eab02baaa… · 45.6 GB · 20 files
$ fw verify ./flan-t5-xl google/flan-t5-xl
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/google/flan-t5-xl.json --dir ./flan-t5-xl $ python3 fw.py verify ./flan-t5-xl ./google__flan-t5-xl.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download google/flan-t5-xl --revision 7d6315df2c2fb742f0f5b556879d730926ca9001 --local-dir ./flan-t5-xl

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
c2210a137e81d30d03f2176cf6fba8132793d2f0286c38d944bd1b0122366515
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: google <huggingface.co/google>Newsgroups: alt.freeweights.textSubject: flan-t5-xlDate: 2026-11-15Commit: 7d6315dSigned: 2DC28CC7B26A283B ✓
Upstream
google/flan-t5-xl
Pinned commit
7d6315df2c2fb742f0f5b556879d730926ca9001
Manifest
flan-t5-xl.json · .minisig
Manifest sha256
bd7eab02baaa33d523a72a43e91d5667a5611c7bd4e015fa86ab65eb50a538e9
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:30 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/google/flan-t5-xl.json $ curl -O https://freeweights.allternit.com/manifests/google/flan-t5-xl.json.minisig $ minisign -Vm flan-t5-xl.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

No related models in this catalog.Nothing here lists this model as its parent, and it names no parent.
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download google/flan-t5-xl
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. flan-t5-xl.json. Provenance. Takedown history: none.
From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B