google / byt5-small

huggingface.co
Total runs: 343.5K
24-hour runs: 0
7-day runs: 1.9K
30-day runs: 81.6K
Model's Last Updated: January 25 2023
text-generation

Introduction of byt5-small

Model Details of byt5-small

ByT5 - Small

ByT5 is a tokenizer-free version of Google's T5 and generally follows the architecture of MT5 .

ByT5 was only pre-trained on mC4 excluding any supervised training with an average span-mask of 20 UTF-8 characters. Therefore, this model has to be fine-tuned before it is useable on a downstream task.

ByT5 works especially well on noisy text data, e.g. , google/byt5-small significantly outperforms mt5-small on TweetQA .

Paper: ByT5: Towards a token-free future with pre-trained byte-to-byte models

Authors: Linting Xue, Aditya Barua, Noah Constant, Rami Al-Rfou, Sharan Narang, Mihir Kale, Adam Roberts, Colin Raffel

Example Inference

ByT5 works on raw UTF-8 bytes and can be used without a tokenizer:

from transformers import T5ForConditionalGeneration
import torch

model = T5ForConditionalGeneration.from_pretrained('google/byt5-small')

input_ids = torch.tensor([list("Life is like a box of chocolates.".encode("utf-8"))]) + 3  # add 3 for special tokens
labels = torch.tensor([list("La vie est comme une boîte de chocolat.".encode("utf-8"))]) + 3  # add 3 for special tokens

loss = model(input_ids, labels=labels).loss # forward pass

For batched inference & training it is however recommended using a tokenizer class for padding:

from transformers import T5ForConditionalGeneration, AutoTokenizer

model = T5ForConditionalGeneration.from_pretrained('google/byt5-small')
tokenizer = AutoTokenizer.from_pretrained('google/byt5-small')

model_inputs = tokenizer(["Life is like a box of chocolates.", "Today is Monday."], padding="longest", return_tensors="pt")
labels = tokenizer(["La vie est comme une boîte de chocolat.", "Aujourd'hui c'est lundi."], padding="longest", return_tensors="pt").input_ids

loss = model(**model_inputs, labels=labels).loss # forward pass
Abstract

Most widely-used pre-trained language models operate on sequences of tokens corresponding to word or subword units. Encoding text as a sequence of tokens requires a tokenizer, which is typically created as an independent artifact from the model. Token-free models that instead operate directly on raw text (bytes or characters) have many benefits: they can process text in any language out of the box, they are more robust to noise, and they minimize technical debt by removing complex and error-prone text preprocessing pipelines. Since byte or character sequences are longer than token sequences, past work on token-free models has often introduced new model architectures designed to amortize the cost of operating directly on raw text. In this paper, we show that a standard Transformer architecture can be used with minimal modifications to process byte sequences. We carefully characterize the trade-offs in terms of parameter count, training FLOPs, and inference speed, and show that byte-level models are competitive with their token-level counterparts. We also demonstrate that byte-level models are significantly more robust to noise and perform better on tasks that are sensitive to spelling and pronunciation. As part of our contribution, we release a new set of pre-trained byte-level Transformer models based on the T5 architecture, as well as all code and data used in our experiments.

model image

Runs of google byt5-small on huggingface.co

343.5K
Total runs
0
24-hour runs
-4.9K
3-day runs
1.9K
7-day runs
81.6K
30-day runs

More Information About byt5-small huggingface.co Model

More byt5-small license Visit here:

https://choosealicense.com/licenses/apache-2.0

byt5-small huggingface.co

byt5-small huggingface.co is an AI model on huggingface.co that provides byt5-small's model effect (), which can be used instantly with this google byt5-small model. huggingface.co supports a free trial of the byt5-small model, and also provides paid use of the byt5-small. Support call byt5-small model through api, including Node.js, Python, http.

byt5-small huggingface.co Url

https://huggingface.co/google/byt5-small

google byt5-small online free

byt5-small huggingface.co is an online trial and call api platform, which integrates byt5-small's modeling effects, including api services, and provides a free online trial of byt5-small, you can try byt5-small online for free by clicking the link below.

google byt5-small online free url in huggingface.co:

https://huggingface.co/google/byt5-small

byt5-small install

byt5-small is an open source model from GitHub that offers a free installation service, and any user can find byt5-small on GitHub to install. At the same time, huggingface.co provides the effect of byt5-small install, users can directly use byt5-small installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

byt5-small install url in huggingface.co:

https://huggingface.co/google/byt5-small

Url of byt5-small

byt5-small huggingface.co Url

Provider of byt5-small huggingface.co

google
ORGANIZATIONS

Other API from google

huggingface.co

Total runs: 8.8M
Run Growth: -948.9K
Growth Rate: -10.84%
Updated:July 21 2026
huggingface.co

Total runs: 4.6M
Run Growth: -665.1K
Growth Rate: -14.31%
Updated:July 21 2026
huggingface.co

Total runs: 3.0M
Run Growth: -895.3K
Growth Rate: -29.66%
Updated:July 21 2026
huggingface.co

Total runs: 3.0M
Run Growth: -251.9K
Growth Rate: -8.38%
Updated:July 21 2026
huggingface.co

Total runs: 2.8M
Run Growth: -2.3M
Growth Rate: -82.98%
Updated:April 04 2025
huggingface.co

Total runs: 1.7M
Run Growth: 393.0K
Growth Rate: 23.12%
Updated:March 22 2025
huggingface.co

Total runs: 1.5M
Run Growth: -145.0K
Growth Rate: -9.68%
Updated:July 17 2023
huggingface.co

Total runs: 1.1M
Run Growth: 454.6K
Growth Rate: 42.36%
Updated:October 29 2025
huggingface.co

Total runs: 730.9K
Run Growth: 191.3K
Growth Rate: 26.17%
Updated:August 28 2024
huggingface.co

Total runs: 693.7K
Run Growth: -530.0K
Growth Rate: -76.40%
Updated:March 22 2025
huggingface.co

Total runs: 684.4K
Run Growth: -64.3K
Growth Rate: -9.39%
Updated:July 16 2026
huggingface.co

Total runs: 684.1K
Run Growth: 77.5K
Growth Rate: 11.37%
Updated:February 29 2024
huggingface.co

Total runs: 655.0K
Run Growth: -85.6K
Growth Rate: -13.07%
Updated:August 28 2024
huggingface.co

Total runs: 648.4K
Run Growth: -1.0M
Growth Rate: -160.70%
Updated:August 14 2025
huggingface.co

Total runs: 575.5K
Run Growth: 201.1K
Growth Rate: 34.95%
Updated:July 16 2026
huggingface.co

Total runs: 443.4K
Run Growth: -179.5K
Growth Rate: -39.16%
Updated:October 11 2023
huggingface.co

Total runs: 417.3K
Run Growth: -86.4K
Growth Rate: -20.74%
Updated:July 17 2023
huggingface.co

Total runs: 353.5K
Run Growth: -416.4K
Growth Rate: -117.79%
Updated:March 22 2025
huggingface.co

Total runs: 244.5K
Run Growth: 80.2K
Growth Rate: 32.79%
Updated:August 18 2026
huggingface.co

Total runs: 243.9K
Run Growth: -364.7K
Growth Rate: -149.50%
Updated:September 18 2023
huggingface.co

Total runs: 214.6K
Run Growth: -84.3K
Growth Rate: -39.29%
Updated:January 25 2023
huggingface.co

Total runs: 213.8K
Run Growth: 57.1K
Growth Rate: 26.71%
Updated:January 25 2023
huggingface.co

Total runs: 213.1K
Run Growth: 91.3K
Growth Rate: 42.85%
Updated:January 25 2023
huggingface.co

Total runs: 185.5K
Run Growth: -16.2K
Growth Rate: -8.75%
Updated:July 03 2023
huggingface.co

Total runs: 178.8K
Run Growth: 17.3K
Growth Rate: 9.81%
Updated:November 28 2023
huggingface.co

Total runs: 175.3K
Run Growth: -113.6K
Growth Rate: -64.79%
Updated:August 08 2024
huggingface.co

Total runs: 161.5K
Run Growth: -208.1K
Growth Rate: -128.83%
Updated:July 14 2025
huggingface.co

Total runs: 153.0K
Run Growth: 50.2K
Growth Rate: 32.79%
Updated:July 16 2026
huggingface.co

Total runs: 144.5K
Run Growth: 34.5K
Growth Rate: 23.85%
Updated:September 27 2024
huggingface.co

Total runs: 139.5K
Run Growth: -362.3K
Growth Rate: -259.66%
Updated:April 29 2024
huggingface.co

Total runs: 113.4K
Run Growth: 27.1K
Growth Rate: 23.87%
Updated:May 27 2022
huggingface.co

Total runs: 95.2K
Run Growth: 12.4K
Growth Rate: 13.04%
Updated:July 16 2026
huggingface.co

Total runs: 90.9K
Run Growth: -26.7K
Growth Rate: -29.39%
Updated:August 14 2025
huggingface.co

Total runs: 88.6K
Run Growth: 4.5K
Growth Rate: 5.11%
Updated:March 22 2025
huggingface.co

Total runs: 72.3K
Run Growth: 54.0K
Growth Rate: 74.71%
Updated:January 25 2023
huggingface.co

Total runs: 72.1K
Run Growth: -157.8K
Growth Rate: -218.89%
Updated:November 27 2023
huggingface.co

Total runs: 62.7K
Run Growth: 757
Growth Rate: 1.21%
Updated:March 22 2025
huggingface.co

Total runs: 62.7K
Run Growth: -8.2K
Growth Rate: -13.07%
Updated:August 08 2024