google / byt5-base

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

Introduction of byt5-base

Model Details of byt5-base

ByT5 - Base

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-base significantly outperforms mt5-base 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-base')

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-base')
tokenizer = AutoTokenizer.from_pretrained('google/byt5-base')

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-base on huggingface.co

58.5K
Total runs
0
24-hour runs
4.7K
3-day runs
10.3K
7-day runs
17.0K
30-day runs

More Information About byt5-base huggingface.co Model

More byt5-base license Visit here:

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

byt5-base huggingface.co

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

byt5-base huggingface.co Url

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

google byt5-base online free

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

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

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

byt5-base install

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

byt5-base install url in huggingface.co:

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

Url of byt5-base

byt5-base huggingface.co Url

Provider of byt5-base huggingface.co

google
ORGANIZATIONS

Other API from google

huggingface.co

Total runs: 8.5M
Run Growth: -1.4M
Growth Rate: -16.45%
Updated:July 21 2026
huggingface.co

Total runs: 4.2M
Run Growth: -193.4K
Growth Rate: -4.64%
Updated:July 21 2026
huggingface.co

Total runs: 1.8M
Run Growth: -100.9K
Growth Rate: -5.65%
Updated:October 30 2026
huggingface.co

Total runs: 956.0K
Run Growth: -380.7K
Growth Rate: -40.05%
Updated:March 22 2025
huggingface.co

Total runs: 754.5K
Run Growth: -489.1K
Growth Rate: -64.57%
Updated:July 17 2023
huggingface.co

Total runs: 572.8K
Run Growth: 37.9K
Growth Rate: 6.54%
Updated:July 16 2026
huggingface.co

Total runs: 567.3K
Run Growth: -2.5M
Growth Rate: -390.61%
Updated:April 04 2025
huggingface.co

Total runs: 494.3K
Run Growth: -184.1K
Growth Rate: -37.82%
Updated:February 29 2024
huggingface.co

Total runs: 406.0K
Run Growth: -585.3K
Growth Rate: -143.51%
Updated:October 29 2025
huggingface.co

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

Total runs: 350.7K
Run Growth: -74.1K
Growth Rate: -21.50%
Updated:March 22 2025
huggingface.co

Total runs: 297.9K
Run Growth: 179.3K
Growth Rate: 60.20%
Updated:March 22 2025
huggingface.co

Total runs: 266.5K
Run Growth: -116.1K
Growth Rate: -43.35%
Updated:January 25 2023
huggingface.co

Total runs: 258.6K
Run Growth: -187.9K
Growth Rate: -72.01%
Updated:October 11 2023
huggingface.co

Total runs: 240.7K
Run Growth: -76.8K
Growth Rate: -32.16%
Updated:July 17 2023
huggingface.co

Total runs: 201.9K
Run Growth: -29.0K
Growth Rate: -14.45%
Updated:September 18 2023
huggingface.co

Total runs: 197.0K
Run Growth: 85.8K
Growth Rate: 43.27%
Updated:January 25 2023
huggingface.co

Total runs: 162.3K
Run Growth: -453.2K
Growth Rate: -269.59%
Updated:August 28 2024
huggingface.co

Total runs: 148.3K
Run Growth: 21.5K
Growth Rate: 14.51%
Updated:April 29 2024
huggingface.co

Total runs: 145.9K
Run Growth: -46.9K
Growth Rate: -31.17%
Updated:July 16 2026
huggingface.co

Total runs: 134.8K
Run Growth: -17.7K
Growth Rate: -12.70%
Updated:November 28 2023
huggingface.co

Total runs: 134.7K
Run Growth: -48.8K
Growth Rate: -36.12%
Updated:July 03 2023
huggingface.co

Total runs: 134.4K
Run Growth: 87.2K
Growth Rate: 80.50%
Updated:June 27 2024
huggingface.co

Total runs: 130.3K
Run Growth: -975.3K
Growth Rate: -725.67%
Updated:August 28 2024
huggingface.co

Total runs: 104.5K
Run Growth: -526.6K
Growth Rate: -431.65%
Updated:July 16 2026
huggingface.co

Total runs: 98.3K
Run Growth: -65.5K
Growth Rate: -65.95%
Updated:August 08 2024
huggingface.co

Total runs: 96.1K
Run Growth: -91.5K
Growth Rate: -92.92%
Updated:January 25 2023
huggingface.co

Total runs: 90.4K
Run Growth: -47.7K
Growth Rate: -49.88%
Updated:September 27 2024
huggingface.co

Total runs: 73.2K
Run Growth: 28.0K
Growth Rate: 38.06%
Updated:January 25 2023
huggingface.co

Total runs: 70.4K
Run Growth: -7.1K
Growth Rate: -10.39%
Updated:August 14 2025
huggingface.co

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

Total runs: 54.1K
Run Growth: 24.0K
Growth Rate: 45.15%
Updated:August 03 2023
huggingface.co

Total runs: 52.4K
Run Growth: -76.3K
Growth Rate: -144.95%
Updated:October 30 2026
huggingface.co

Total runs: 51.6K
Run Growth: -11.9K
Growth Rate: -23.13%
Updated:December 19 2025
huggingface.co

Total runs: 48.4K
Run Growth: 8.8K
Growth Rate: 27.01%
Updated:July 03 2023
huggingface.co

Total runs: 40.8K
Run Growth: 14.5K
Growth Rate: 35.55%
Updated:July 06 2023