huggingface/tokenizers
💥 Fast State-of-the-Art Tokenizers optimized for Research and Production observed · 2026-08-28
Health v2 · maintenance only
93/100
- Activity 99
- Release rhythm 81
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 25
- age_days: 2497
- days_rel: 128
- days_push: 7
- n_releases_24m: 12
Adoption not part of the score
10997 stars · 1177 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Hugging Face Tokenizers is a fast, Rust-based library implementing state-of-the-art tokenization algorithms (BPE, WordPiece, Unigram) with bindings for Python, Rust, and Node.js. It handles the full tokenization pipeline including normalization, pre-tokenization, training new vocabularies, and pre-processing like padding, truncation, and special token handling.
Use cases
- train a BPE tokenizer on my own corpus
- tokenize text for a transformer model
- convert text to token ids for BERT or GPT
- build a custom vocabulary for a language model
- fast tokenization of large text datasets
- map tokens back to original text offsets
- pad and truncate sequences for model input
When to choose
- you need extremely fast tokenization or vocabulary training (GBs of text in seconds)
- you are training or fine-tuning transformer models and need consistent tokenization
- you need alignment tracking to map tokens back to original text
- you want the standard tokenizer used by the Hugging Face Transformers ecosystem
When to avoid
- you need a general-purpose text segmentation tool unrelated to ML models
- you only need simple whitespace splitting or regex tokenization
- you need subword tokenization for a language/model family with incompatible requirements
Facets
library · maturity stable
nlp parser machine-learning sdk machine-learning large-language-models developer-tools rust python cross-platform tokenizer bpe wordpiece unigram hugging-face transformers text-preprocessing natural-language-processing nodejs
10 sources
- readme: https://github.com/huggingface/tokenizers · fetched 2026-08-28 · 881ffd60cc27
- homepage: https://huggingface.co/docs/tokenizers · fetched 2026-08-29 · a89855921333
- site_page: https://huggingface.co/docs · fetched 2026-08-29 · bdec26667b98
- site_page: https://huggingface.co/docs/tokenizers/quicktour · fetched 2026-08-29 · 9ffd46723168
- site_page: https://huggingface.co/docs/tokenizers/installation · fetched 2026-08-29 · 120e11ad6eb6
- site_page: https://huggingface.co/docs/tokenizers/pipeline · fetched 2026-08-29 · 969882ba95f0
- site_page: https://huggingface.co/docs/tokenizers/components · fetched 2026-08-29 · 8a1b71b2e1a0
- site_page: https://huggingface.co/docs/tokenizers/training_from_memory · fetched 2026-08-29 · c02abec9c9b6
- site_page: https://huggingface.co/docs/tokenizers/api/input-sequences · fetched 2026-08-29 · 21cbf2ad7e53
- registry_crates: https://crates.io/api/v1/crates/tokenizers · fetched 2026-08-29 · 6d1245fb5b91
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| huggingface/tokenizers | main | 93 |
For agents
markdown · JSON · MCP: product_card(name="huggingface/tokenizers")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem