← Back to models

T5Gemma

Google (USA) July 9, 2025

Parameters

Dense encoder-decoder totals: S-S 312,517,632; B-B 591,490,560; L-L 1,241,761,792; ML-ML 2,200,345,344; XL-XL 3,766,980,608; 2B-2B 5,596,853,760; 9B-2B 12,292,375,296; 9B-9B 20,333,401,088. Size-pair labels name encoder/decoder configurations, not summed checkpoint totals.

Context Window

Unknown (supported checkpoint maximum not verified; mirrors configure 8,192 positions separately for encoder and decoder)

License

Custom Gemma Terms of Use plus Gemma Prohibited Use Policy (all pretrained and IT weights); not Apache 2.0. Implementation code is Apache 2.0.

Key Features

Original text-only, primarily English T5Gemma research family: eight encoder-decoder configurations, each released as UL2 and PrefixLM pretrained checkpoints plus their instruction-tuned counterparts (32 checkpoints); excludes December T5Gemma 2. Uses a bidirectional encoder, causal autoregressive decoder and separate global cross-attention, with Gemma 2-style alternating local/global self-attention, RoPE, gated GELU and RMSNorm; Gemma-sized variants use grouped-query attention. Encoder and decoder embeddings are separate; decoder input/output embeddings are tied. The 2B-2B, 9B-2B and 9B-9B models adapt pretrained Gemma 2 weights with 2T further tokens; Small/Base/Large/Medium-Large/XL first receive 2T decoder-only pretraining under the Gemma 2 recipe and then 2T encoder-decoder adaptation. PrefixLM uses prefix-to-continuation learning with knowledge distillation; UL2 combines denoising objectives and favors contextual representations. Balanced models initialize cross-attention from self-attention; the unbalanced 9B-2B model warms up newly initialized cross-attention before tuning all weights. Public pretrained variants can generate text via AutoModelForSeq2SeqLM but are not instruction-following chat models; released IT variants support Gemma turn formatting. The paper studies supervised instruction tuning and RLHF, but the public cards do not establish the exact post-training stage of every IT checkpoint. Supports QA, summarization and reasoning, with encoders useful for classification after task-specific fine-tuning. Google reports an improved quality/inference-efficiency frontier; paper PrefixLM RLHF experiments score 61.5 vs 49.8 on MMLU and 70.7 vs 58.0 on GSM8K for 2B-2B versus Gemma 2 2B. These are experimental post-training results, not independently verified scores for every released IT variant, and compare similar inference budgets rather than equal parameter counts or total training compute. Benefits are task-dependent: the paper reports weaker pretrained ARC-C and some instruction-tuned translation results than decoder-only comparators. Primarily English evaluation, factual errors, bias and harmful output remain limitations; translation use cases do not imply broad multilingual certification. Encoder and decoder position limits are separate, not a single 16K context; training sequence lengths are objective-specific and do not establish validated long-context support.

Paper / Source

https://arxiv.org/abs/2504.06225

Official Links