google / byt5-small

huggingface.co
Total runs: 284.6K
24-hour runs: -3.3K
7-day runs: 3.0K
30-day runs: -10.8K
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

284.6K
Total runs
-3.3K
24-hour runs
1.8K
3-day runs
3.0K
7-day runs
-10.8K
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: 2.1M
Run Growth: 327.2K
Growth Rate: 15.94%
Updated:March 22 2025
huggingface.co

Total runs: 1.6M
Run Growth: 435.7K
Growth Rate: 27.17%
Updated:July 17 2023
huggingface.co

Total runs: 587.0K
Run Growth: 9.5K
Growth Rate: 1.61%
Updated:October 11 2023
huggingface.co

Total runs: 580.8K
Run Growth: -46.8K
Growth Rate: -8.06%
Updated:February 29 2024
huggingface.co

Total runs: 530.7K
Run Growth: -1.4M
Growth Rate: -256.95%
Updated:April 04 2025
huggingface.co

Total runs: 505.2K
Run Growth: 89.1K
Growth Rate: 18.13%
Updated:July 17 2023
huggingface.co

Total runs: 495.6K
Run Growth: -603.3K
Growth Rate: -121.72%
Updated:March 22 2025
huggingface.co

Total runs: 457.1K
Run Growth: 85.6K
Growth Rate: 19.31%
Updated:November 27 2023
huggingface.co

Total runs: 424.4K
Run Growth: 150.4K
Growth Rate: 35.45%
Updated:August 28 2024
huggingface.co

Total runs: 406.2K
Run Growth: -89.4K
Growth Rate: -22.01%
Updated:August 08 2024
huggingface.co

Total runs: 403.7K
Run Growth: 402.1K
Growth Rate: 99.60%
Updated:April 03 2026
huggingface.co

Total runs: 368.3K
Run Growth: -194.2K
Growth Rate: -52.84%
Updated:January 25 2023
huggingface.co

Total runs: 348.7K
Run Growth: -49.2K
Growth Rate: -14.12%
Updated:August 28 2024
huggingface.co

Total runs: 289.2K
Run Growth: 288.0K
Growth Rate: 99.58%
Updated:April 03 2026
huggingface.co

Total runs: 258.3K
Run Growth: -84.9K
Growth Rate: -31.25%
Updated:January 25 2023
huggingface.co

Total runs: 241.9K
Run Growth: 72.7K
Growth Rate: 30.22%
Updated:October 29 2025
huggingface.co

Total runs: 203.4K
Run Growth: -7.9K
Growth Rate: -3.87%
Updated:September 18 2023
huggingface.co

Total runs: 200.8K
Run Growth: 191.1K
Growth Rate: 95.14%
Updated:April 03 2026
huggingface.co

Total runs: 190.9K
Run Growth: -42.3K
Growth Rate: -21.46%
Updated:January 25 2023
huggingface.co

Total runs: 160.6K
Run Growth: -12.7K
Growth Rate: -7.70%
Updated:September 27 2024
huggingface.co

Total runs: 137.9K
Run Growth: 105.7K
Growth Rate: 76.90%
Updated:June 27 2024
huggingface.co

Total runs: 132.7K
Run Growth: 8.5K
Growth Rate: 6.40%
Updated:March 22 2025
huggingface.co

Total runs: 122.4K
Run Growth: 58.9K
Growth Rate: 49.08%
Updated:January 25 2023
huggingface.co

Total runs: 105.2K
Run Growth: 50.2K
Growth Rate: 47.69%
Updated:January 25 2023
huggingface.co

Total runs: 99.0K
Run Growth: 10.0K
Growth Rate: 10.08%
Updated:August 14 2025
huggingface.co

Total runs: 90.5K
Run Growth: 28.7K
Growth Rate: 31.75%
Updated:July 03 2023
huggingface.co

Total runs: 90.1K
Run Growth: -35.2K
Growth Rate: -37.04%
Updated:May 27 2022
huggingface.co

Total runs: 87.4K
Run Growth: 18.5K
Growth Rate: 21.15%
Updated:March 22 2025
huggingface.co

Total runs: 76.6K
Run Growth: -64.6K
Growth Rate: -84.23%
Updated:November 28 2023
huggingface.co

Total runs: 71.4K
Run Growth: 14.0K
Growth Rate: 20.40%
Updated:September 27 2024
huggingface.co

Total runs: 67.7K
Run Growth: 10.8K
Growth Rate: 15.88%
Updated:August 08 2024
huggingface.co

Total runs: 66.9K
Run Growth: -18.6K
Growth Rate: -27.73%
Updated:January 25 2023
huggingface.co

Total runs: 50.0K
Run Growth: -24.8K
Growth Rate: -49.60%
Updated:December 19 2025
huggingface.co

Total runs: 49.1K
Run Growth: 22.7K
Growth Rate: 46.62%
Updated:January 25 2023
huggingface.co

Total runs: 44.4K
Run Growth: 16.3K
Growth Rate: 40.66%
Updated:July 10 2025
huggingface.co

Total runs: 43.5K
Run Growth: -18.2K
Growth Rate: -42.04%
Updated:August 14 2024
huggingface.co

Total runs: 43.4K
Run Growth: -312.7K
Growth Rate: -721.19%
Updated:August 28 2024