Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Type
/
to search
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
huggingface
/
tokenizers
Public
Notifications
You must be signed in to change notification settings
Fork
1.2k
Star
11k
Code
Issues
119
Pull requests
129
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
perf(bpe): Last missing nits to get up to speed
- #2313
#2313
Open
ArthurZucker
wants to merge 10 commits into
feat/train_encode_split
huggingface/tokenizers:feat/train_encode_split
from
perf/bpe-hash-word-once
huggingface/tokenizers:perf/bpe-hash-word-once
Copy head branch name to clipboard
Conversation
Commits
10
(10)
Checks
Files changed
Open
perf(bpe): Last missing nits to get up to speed
#2313
ArthurZucker
wants to merge 10 commits into
feat/train_encode_split
huggingface/tokenizers:feat/train_encode_split
from
perf/bpe-hash-word-once
huggingface/tokenizers:perf/bpe-hash-word-once
Copy head branch name to clipboard
Commits
Commits on Aug 7, 2026
perf(bpe): hash a word once for both the fold and the cache probe
Show description for d0b7750
ArthurZucker
committed
d0b7750
View commit details
Copy full SHA for d0b7750
Browse repository at this point
perf(bpe): pack a short word into its key instead of hashing it (#2315)
Show description for 473db76
ArthurZucker
authored
473db76
View commit details
Copy full SHA for 473db76
Browse repository at this point
Merge branch 'feat/train_encode_split' into perf/bpe-hash-word-once
ArthurZucker
authored
d00cce3
View commit details
Copy full SHA for d00cce3
Browse repository at this point
perf(bpe): put the key in the entry, so the fold probe is two loads (#2316)
Show description for 246d122
ArthurZucker
authored
246d122
View commit details
Copy full SHA for 246d122
Browse repository at this point
perf(bpe): hash once on the batched path too
Show description for dcb3132
ArthurZucker
committed
dcb3132
View commit details
Copy full SHA for dcb3132
Browse repository at this point
perf(pipeline): let the caller own the output buffer
Show description for 574ee9b
ArthurZucker
committed
574ee9b
View commit details
Copy full SHA for 574ee9b
Browse repository at this point
perf(bpe): u64 keys and a digest instead of storing the length
Show description for 900b6a4
ArthurZucker
committed
900b6a4
View commit details
Copy full SHA for 900b6a4
Browse repository at this point
perf(bpe): probe the cache before the fold, through the fused emit
Show description for 44f3b4f
ArthurZucker
committed
44f3b4f
View commit details
Copy full SHA for 44f3b4f
Browse repository at this point
perf(added-vocab): search the whole prefix, not just its first byte
Show description for 2ab49f9
ArthurZucker
committed
2ab49f9
View commit details
Copy full SHA for 2ab49f9
Browse repository at this point
fix(vocab): confirm a probe on the whole hash, not 32 bits of it
Show description for 3a2787b
ArthurZucker
committed
3a2787b
View commit details
Copy full SHA for 3a2787b
Browse repository at this point
You can’t perform that action at this time.