huggingface/tokenizers

💥 Fast State-of-the-Art Tokenizers optimized for Research and Production

View on GitHub ↗Jump to charts ↓Open shareable report →

Summary Information

Updated 32 minutes ago
Added to GitGenius on September 5th, 2026
Created on November 1st, 2019
Open Issues & Pull Requests: 258 (+0)
GitHub issues: Enabled
Number of forks: 1,192
Total Stargazers: 11,025 (+0)
Total Subscribers: 122 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.0 days
Mean response time: 32.8 days
90th percentile: 62.0 days
Tracked items: 207

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 99% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 63% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 4% of issues opened in the past year have been closed. Three people close 66% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 106
New in 7 days: 0
Closed in 7 days: 1
Avg open age: 436 days
Stale 30+ days: 99
Stale 90+ days: 81

Recent activity

Opened in 7 days: 0
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • Feature Request (18)
  • Stale (18)
  • bug (6)
  • good second issue (2)
  • bindings (1)
  • bytefallback (1)
  • decoding (1)
  • enhancement (1)

Detailed Description

Tokenizers is a library that implements state-of-the-art tokenization algorithms optimized for both research and production use.

The library addresses the need for fast, flexible tokenization in natural language processing pipelines. It provides implementations of widely-used tokenization methods including Byte-Pair Encoding, WordPiece, and Unigram algorithms. The core implementation is written in Rust to achieve high performance, enabling tokenization of a gigabyte of text in under twenty seconds on a standard CPU. The library handles the full preprocessing pipeline, including normalization with alignment tracking that lets you map tokens back to their original source text, as well as truncation, padding, and special token insertion.

The tool suits projects that need to train custom vocabularies or apply existing tokenization schemes with minimal latency. It works well for teams building language model infrastructure where performance matters, whether in research settings or production systems. The library provides bindings for Python, Node.js, and Rust, making it accessible across different technology stacks. The straightforward API allows basic tokenization in a single line of code while supporting extensive customization of pre-tokenization behavior and training parameters.

Development activity shows consistent maintenance with regular updates to the codebase. The project maintains active continuous integration workflows for the Rust implementation. The library receives ongoing improvements and bug fixes across its multiple language bindings. Documentation is actively maintained with examples and detailed guides available through the project's homepage.