google-t5/t5-small
Xenova/t5-small
translation · text2text-generation
1. Multi-Prefix Text-to-Text Studio
pipeline("text2text-generation", "Xenova/t5-small", { device: "wasm", dtype: "q8" })
via shared Transformers.js 3.7.5 in a dedicated Web Worker. Pick a task prefix tab below
to prepend the canonical C4/GLUE/WMT control grammar to your input.
Task prefix tabs (switches the exact control string prepended to the encoder input):
Or load a calibrated preset across translation, summarization, CoLA, and MNLI:
.txt, .md, .csv, .srt)
File contents stay 100% on your device.
2. See Inside: 32,128-Piece SentencePiece Tokenization
T5 prepends the task prefix inside the exact same 32,128-token SentencePiece stream as your
text (▁ marks word boundaries, </s> is token ID 1, and
<pad> is decoder start ID 0). Inspect how prefix tokens separate from
content subwords below.
SentencePiece breakdown will appear after running T5-Small.
3. Why Google T5-Small Matters & Worker Source
Published by Colin Raffel et al. (2020), T5 proved that a single encoder-decoder trained on the Colossal Clean Crawled Corpus (C4) plus supervised task prefixes can translate, summarize, and classify without task-specific output heads. At 78.07 MB quantized q8, it remains one of the lightest multi-task seq2seq baselines on the web.