google / byt5-small

huggingface.co
Total runs: 93.1K
24-hour runs: 0
7-day runs: -33.7K
30-day runs: -232.9K
Model's Last Updated: 1월 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

93.1K
Total runs
0
24-hour runs
-13.0K
3-day runs
-33.7K
7-day runs
-232.9K
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: 5.2M
Run Growth: -3.0M
Growth Rate: -54.83%
Updated:7월 21 2026
huggingface.co

Total runs: 2.5M
Run Growth: -511.7K
Growth Rate: -20.08%
Updated:11월 04 2026
huggingface.co

Total runs: 1.5M
Run Growth: -252.0K
Growth Rate: -16.42%
Updated:10월 30 2026
huggingface.co

Total runs: 1.2M
Run Growth: 212.4K
Growth Rate: 18.06%
Updated:3월 22 2025
huggingface.co

Total runs: 811.4K
Run Growth: 29.6K
Growth Rate: 3.65%
Updated:7월 17 2023
huggingface.co

Total runs: 546.4K
Run Growth: 78.5K
Growth Rate: 14.24%
Updated:2월 29 2024
huggingface.co

Total runs: 476.1K
Run Growth: 64.6K
Growth Rate: 13.52%
Updated:10월 29 2025
huggingface.co

Total runs: 412.5K
Run Growth: 74.7K
Growth Rate: 18.07%
Updated:3월 22 2025
huggingface.co

Total runs: 368.7K
Run Growth: -211.8K
Growth Rate: -57.06%
Updated:11월 04 2026
huggingface.co

Total runs: 271.9K
Run Growth: 34.7K
Growth Rate: 12.79%
Updated:7월 17 2023
huggingface.co

Total runs: 249.3K
Run Growth: -95.9K
Growth Rate: -39.06%
Updated:3월 22 2025
huggingface.co

Total runs: 227.9K
Run Growth: -8.7K
Growth Rate: -4.01%
Updated:8월 28 2024
huggingface.co

Total runs: 226.0K
Run Growth: 44.7K
Growth Rate: 21.04%
Updated:8월 28 2024
huggingface.co

Total runs: 203.5K
Run Growth: -81.9K
Growth Rate: -39.85%
Updated:10월 11 2023
huggingface.co

Total runs: 195.3K
Run Growth: 17.2K
Growth Rate: 8.90%
Updated:1월 25 2023
huggingface.co

Total runs: 193.4K
Run Growth: -533.7K
Growth Rate: -281.95%
Updated:4월 04 2025
huggingface.co

Total runs: 175.8K
Run Growth: -52.2K
Growth Rate: -29.69%
Updated:3월 22 2025
huggingface.co

Total runs: 147.4K
Run Growth: -22.6K
Growth Rate: -13.60%
Updated:9월 18 2023
huggingface.co

Total runs: 145.3K
Run Growth: 12.0K
Growth Rate: 8.35%
Updated:7월 03 2023
huggingface.co

Total runs: 138.0K
Run Growth: 101.3K
Growth Rate: 59.69%
Updated:6월 27 2024
huggingface.co

Total runs: 117.9K
Run Growth: -357
Growth Rate: -0.31%
Updated:9월 27 2024
huggingface.co

Total runs: 101.3K
Run Growth: -15.2K
Growth Rate: -12.72%
Updated:4월 29 2024
huggingface.co

Total runs: 92.2K
Run Growth: 22.3K
Growth Rate: 24.25%
Updated:8월 14 2025
huggingface.co

Total runs: 91.5K
Run Growth: 71.6K
Growth Rate: 78.02%
Updated:1월 25 2023
huggingface.co

Total runs: 87.3K
Run Growth: -75.7K
Growth Rate: -82.66%
Updated:11월 04 2026
huggingface.co

Total runs: 84.4K
Run Growth: -23.4K
Growth Rate: -27.72%
Updated:8월 08 2024
huggingface.co

Total runs: 68.3K
Run Growth: -72.5K
Growth Rate: -105.37%
Updated:11월 28 2023
huggingface.co

Total runs: 67.9K
Run Growth: -34.9K
Growth Rate: -49.86%
Updated:1월 25 2023
huggingface.co

Total runs: 62.8K
Run Growth: 17.7K
Growth Rate: 27.48%
Updated:8월 03 2023
huggingface.co

Total runs: 57.3K
Run Growth: 24.4K
Growth Rate: 42.59%
Updated:3월 22 2025
huggingface.co

Total runs: 47.6K
Run Growth: 6.3K
Growth Rate: 13.18%
Updated:7월 03 2023
huggingface.co

Total runs: 47.0K
Run Growth: -8.9K
Growth Rate: -18.85%
Updated:10월 30 2026
huggingface.co

Total runs: 39.5K
Run Growth: -135.5K
Growth Rate: -338.80%
Updated:7월 16 2026