atsentia / mojo-tokenizer
Pure Mojo tokenizer for LLM inference - BPE, tiktoken, HuggingFace compatible
Over time
2026-01-02 to 2026-01-09; peak 8,299 lines
2026-01-02 to 2026-01-09; 15 commits, counted up by commit date
mojo_issues hasn't read this repository's issues and pull requests yet.
Similar repos
| Repo | Description | Similarity |
|---|---|---|
| shreyanshtiwari02/mojo-inference-engine | Mini neural net / LLM inference engine in Mojo from scratch — naive CPU phase (Tensor, dot, matmul, linear, ReLU, softmax) | 91% |
| jaher/llm-mojo | A from-scratch rewrite of vLLM + SGLang's inference stack in pure Mojo | 91% |
| mempirate/mojobag | BPE tokenizer in Mojo | 89% |
| Terapines/llm.mojo | Using mojo to implement llm | 88% |
| attilio-castano/llm-mojo | LLM inference from first principles in Mojo on Apple Silicon: GPU kernels, a serving engine, reproducible studies, and compile-time correctness checks. | 87% |
By the cosine of the embeddings of each repo's name, description and topics: bge-small-en-v1.5 at bbddccb7, from snapshot 3454761910736014829 of mojo.repo_embeddings, which mojo_embed writes.
Stars per month
- stars
- forks
2 stars over the months of GH Archive loaded so far (47; months in between aren't loaded yet), counted from its events.
Contributors per month
- contributors
- new
2 people authored or co-authored its commits (every commit reachable from HEAD, Co-authored-by trailers included, bots left out), counted by email.
Releases and tags
| Date | Tag | Name | From | Mojo version | Commit |
|---|---|---|---|---|---|
| 2026-01-07 | v0.5.0 | – | git tag | 24.6 | dd6b417c42 |
| 2026-01-06 | v0.4.0 | – | git tag | 24.6 | 5f0779943d |
| 2026-01-06 | v0.3.1 | – | git tag | 24.6 | 030ff09cbd |
| 2026-01-06 | v0.3.0-tiktoken-bpe-docs | – | git tag | – | 66bf358d11 |
| 2026-01-06 | v0.3.0-tiktoken-bpe | – | git tag | – | e2e3b21b5e |
| 2026-01-02 | v0.2.0 | – | git tag | 24.6 | 33f3e83736 |
| 2026-01-02 | v0.1.0 | – | git tag | 24.6 | cc7d5fe7fa |
Migrations
| Date | What | From | To | Commit |
|---|---|---|---|---|
| 2026-01-02 | mojo_version | – | 24.6 | cc7d5fe7fa |
| 2026-01-02 | tooling | none | pixi | cc7d5fe7fa |
Commits
Commit types: Feature 47% · Fix 7% · Mojo version 7% · Performance 7% · Docs 27% · Tests 7%
| Date | Commit | Type | Subject | Lines of Mojo | Tooling | Mojo version |
|---|---|---|---|---|---|---|
| 2026-01-09 | 515f44be84 | Docs | docs: Update README with latest benchmarks, make concise | 8,299 | pixi | 24.6 |
| 2026-01-09 | 812c4d5c7f | Feature +docs | feat: Add HuggingFace BPE validation tests and fix pretokenize bug | 8,299 | pixi | 24.6 |
| 2026-01-09 | 947f89a602 | Feature | feat: Add o200k_base (GPT-4o) vocabulary support | 7,487 | pixi | 24.6 |
| 2026-01-09 | 6f6d0bb6f0 | Tests | test: Add tokenizer validation suite | 7,355 | pixi | 24.6 |
| 2026-01-07 | dd6b417c42 | Feature | feat: O(n) direct backtracking encoder - 13.2M tok/s (86% of rs-bpe) | 7,355 | pixi | 24.6 |
| 2026-01-06 | e8592f9227 | Feature +docs | feat: Phase 4 SIMD word boundary detection | 6,182 | pixi | 24.6 |
| 2026-01-06 | 5ac2b289f5 | Docs | docs: Phase 2 byte trie not viable - algorithm mismatch | 6,030 | pixi | 24.6 |
| 2026-01-06 | 460e76a7f2 | Feature | feat: Phase 2 infrastructure - ByteTrie for direct token lookup (disabled) | 6,035 | pixi | 24.6 |
| 2026-01-06 | 5f0779943d | Feature +docs | feat: v0.4.0 Phase 1 - Zero-allocation core achieves 6.2M tok/s | 5,687 | pixi | 24.6 |
| 2026-01-06 | 1000dd36cb | Docs | docs: Update README with v0.3.1 performance improvements | 5,514 | pixi | 24.6 |
| 2026-01-06 | 030ff09cbd | Performance | perf: Fix LRU cache eviction bottleneck for 256x speedup | 5,514 | pixi | 24.6 |
| 2026-01-03 | c38d58cbff | Fix +docs | fix: Mojo 25.4.0 compatibility and HuggingFace merge format | 5,514 | pixi | 24.6 |
| 2026-01-02 | b768685515 | Docs | docs: Update README for v0.2.0 features and add chat template example | 4,946 | pixi | 24.6 |
| 2026-01-02 | 33f3e83736 | Feature | feat: Complete tokenizer infrastructure with caching and templates | 4,870 | pixi | 24.6 |
| 2026-01-02 | cc7d5fe7fa | Mojo version +tests +docs | feat: Initial mojo-tokenizer foundation | 1,155 | pixi | 24.6 |