tokiers/t5-base

Model

t5-base

0

7 commits

2 linked in READMEs

updated Jul 23, 2026

See the code
tokie

README

tokie

t5-base

Pre-built tokie tokenizer for google-t5/t5-base.

Quick Start (Python)

pip install tokie
import tokie

tokenizer = tokie.Tokenizer.from_pretrained("tokiers/t5-base")
encoding = tokenizer.encode("Hello, world!")
print(encoding.ids)
print(encoding.attention_mask)

Quick Start (Rust)

[dependencies]
tokie = { version = "0.0.4", features = ["hf"] }
use tokie::Tokenizer;

let tokenizer = Tokenizer::from_pretrained("tokiers/t5-base").unwrap();
let encoding = tokenizer.encode("Hello, world!", true);
println!("{:?}", encoding.ids);

Files

  • tokenizer.tkz β€” tokie binary format (~10x smaller, loads in ~5ms)
  • tokenizer.json β€” original HuggingFace tokenizer

About tokie

50x faster tokenization, 10x smaller model files, 100% accurate.

tokie is a drop-in replacement for HuggingFace tokenizers, built in Rust. See GitHub for benchmarks and documentation.

License

MIT OR Apache-2.0 (tokie library). Original model files retain their original license from google-t5/t5-base.

Contributors

bhavnicksm

7 commits

tokiers/t5-base

Model

t5-base

0

7 commits

2 linked in READMEs

updated Jul 23, 2026

See the code
tokie

README

tokie

t5-base

Pre-built tokie tokenizer for google-t5/t5-base.

Quick Start (Python)

pip install tokie
import tokie

tokenizer = tokie.Tokenizer.from_pretrained("tokiers/t5-base")
encoding = tokenizer.encode("Hello, world!")
print(encoding.ids)
print(encoding.attention_mask)

Quick Start (Rust)

[dependencies]
tokie = { version = "0.0.4", features = ["hf"] }
use tokie::Tokenizer;

let tokenizer = Tokenizer::from_pretrained("tokiers/t5-base").unwrap();
let encoding = tokenizer.encode("Hello, world!", true);
println!("{:?}", encoding.ids);

Files

  • tokenizer.tkz β€” tokie binary format (~10x smaller, loads in ~5ms)
  • tokenizer.json β€” original HuggingFace tokenizer

About tokie

50x faster tokenization, 10x smaller model files, 100% accurate.

tokie is a drop-in replacement for HuggingFace tokenizers, built in Rust. See GitHub for benchmarks and documentation.

License

MIT OR Apache-2.0 (tokie library). Original model files retain their original license from google-t5/t5-base.

Contributors

bhavnicksm

7 commits