google / byt5-base

huggingface.co
Total runs: 48.5K
24-hour runs: 0
7-day runs: -737
30-day runs: 10.4K
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

48.5K
Total runs
0
24-hour runs
637
3-day runs
-737
7-day runs
10.4K
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: 4.2M
Run Growth: -267.5K
Growth Rate: -6.36%
Updated:July 21 2026
huggingface.co

Total runs: 2.7M
Run Growth: -831.8K
Growth Rate: -31.17%
Updated:July 21 2026
huggingface.co

Total runs: 1.8M
Run Growth: -1.2M
Growth Rate: -65.55%
Updated:April 04 2025
huggingface.co

Total runs: 1.7M
Run Growth: -1.0M
Growth Rate: -60.39%
Updated:July 21 2026
huggingface.co

Total runs: 1.1M
Run Growth: -711.0K
Growth Rate: -64.83%
Updated:March 22 2025
huggingface.co

Total runs: 939.2K
Run Growth: -431.9K
Growth Rate: -45.47%
Updated:July 17 2023
huggingface.co

Total runs: 737.0K
Run Growth: 2.5K
Growth Rate: 0.33%
Updated:August 28 2024
huggingface.co

Total runs: 580.8K
Run Growth: -506.4K
Growth Rate: -83.28%
Updated:October 29 2025
huggingface.co

Total runs: 565.3K
Run Growth: -43.9K
Growth Rate: -7.48%
Updated:July 16 2026
huggingface.co

Total runs: 505.0K
Run Growth: -202.7K
Growth Rate: -38.96%
Updated:February 29 2024
huggingface.co

Total runs: 395.9K
Run Growth: 41.7K
Growth Rate: 10.42%
Updated:March 22 2025
huggingface.co

Total runs: 365.0K
Run Growth: -246.2K
Growth Rate: -66.62%
Updated:March 22 2025
huggingface.co

Total runs: 351.5K
Run Growth: -304.3K
Growth Rate: -81.35%
Updated:July 16 2026
huggingface.co

Total runs: 344.9K
Run Growth: -71.7K
Growth Rate: -19.89%
Updated:October 11 2023
huggingface.co

Total runs: 342.6K
Run Growth: -17.6K
Growth Rate: -5.08%
Updated:January 25 2023
huggingface.co

Total runs: 341.6K
Run Growth: -311.7K
Growth Rate: -86.36%
Updated:August 28 2024
huggingface.co

Total runs: 244.5K
Run Growth: -149.0K
Growth Rate: -60.73%
Updated:July 17 2023
huggingface.co

Total runs: 213.4K
Run Growth: 95.9K
Growth Rate: 43.73%
Updated:July 16 2026
huggingface.co

Total runs: 209.2K
Run Growth: -40.6K
Growth Rate: -19.31%
Updated:September 18 2023
huggingface.co

Total runs: 150.8K
Run Growth: -42.0K
Growth Rate: -27.57%
Updated:January 25 2023
huggingface.co

Total runs: 143.6K
Run Growth: -22.5K
Growth Rate: -15.29%
Updated:August 08 2024
huggingface.co

Total runs: 140.3K
Run Growth: -3.8K
Growth Rate: -2.69%
Updated:April 29 2024
huggingface.co

Total runs: 139.8K
Run Growth: -48.6K
Growth Rate: -34.23%
Updated:July 03 2023
huggingface.co

Total runs: 134.0K
Run Growth: -53.5K
Growth Rate: -39.53%
Updated:November 28 2023
huggingface.co

Total runs: 131.2K
Run Growth: -84.5K
Growth Rate: -64.04%
Updated:January 25 2023
huggingface.co

Total runs: 125.3K
Run Growth: -29.5K
Growth Rate: -23.09%
Updated:September 27 2024
huggingface.co

Total runs: 125.0K
Run Growth: 40.9K
Growth Rate: 32.72%
Updated:March 22 2025
huggingface.co

Total runs: 75.7K
Run Growth: -75.5K
Growth Rate: -96.83%
Updated:July 16 2026
huggingface.co

Total runs: 71.7K
Run Growth: -24.5K
Growth Rate: -35.15%
Updated:August 14 2025
huggingface.co

Total runs: 66.4K
Run Growth: 23.7K
Growth Rate: 35.94%
Updated:January 25 2023
huggingface.co

Total runs: 63.4K
Run Growth: -554.6K
Growth Rate: -868.26%
Updated:August 14 2025
huggingface.co

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