mempirate / mojobag
BPE tokenizer in Mojo
Over time
2026-08-30 to 2026-09-07; peak 1,114 lines
2026-08-30 to 2026-09-07; 23 commits, counted up by commit date
mojo_issues hasn't read this repository's issues and pull requests yet.
Dependencies
Declared in its manifests at HEAD (toolchain left out): git-lfs, pcre2, samply, unzip.
Similar repos
| Repo | Description | Similarity |
|---|---|---|
| Ahajha/mojo-parser | Parser for Mojo, in Mojo | 91% |
| Terapines/llm.mojo | Using mojo to implement llm | 90% |
| ratulb/simple_bpe | A simple BPE tokenizer implementation Mojo | 90% |
| atsentia/mojo-tokenizer | Pure Mojo tokenizer for LLM inference - BPE, tiktoken, HuggingFace compatible | 89% |
| phomola/mojolibs | Utils for Mojo | 89% |
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
0 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
1 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
No published release in the GH Archive days loaded, and no git tag in the clone.
Migrations
| Date | What | From | To | Commit |
|---|---|---|---|---|
| 2026-08-30 | mojo_version | – | 1.0.0 | 55506500bb |
| 2026-08-30 | tooling | none | pixi | 55506500bb |
Commits
Commit types: Feature 39% · Fix 13% · Mojo version 4% · Refactor 4% · Performance 39%
| Date | Commit | Type | Subject | Lines of Mojo | Tooling | Mojo version |
|---|---|---|---|---|---|---|
| 2026-09-07 | b25e74565e | Performance | perf: small improvements | 1,114 | pixi | 1.0.0 |
| 2026-09-07 | 81b6bd4c55 | Feature | feat: validate corpus file | 1,094 | pixi | 1.0.0 |
| 2026-09-07 | 71b40fab17 | Feature +tests | feat: mmap corpus file | 1,088 | pixi | 1.0.0 |
| 2026-09-05 | 65e87c2136 | Performance | perf: use a nil hasher for initial word counting | 858 | pixi | 1.0.0 |
| 2026-09-05 | d8b942ca57 | Feature | feat: remove stale reverse index for 0 pair counts | 833 | pixi | 1.0.0 |
| 2026-09-04 | 7427808a75 | Refactor | refactor: cleanup | 831 | pixi | 1.0.0 |
| 2026-09-04 | dcd31255ac | Fix | fix(pcre2): fallback to non JIT variants if unavailable | 836 | pixi | 1.0.0 |
| 2026-09-04 | a2f192e061 | Feature | feat: Apple Silicon support | 828 | pixi | 1.0.0 |
| 2026-09-04 | 822e921467 | Performance | perf: replace word dicts with lists | 824 | pixi | 1.0.0 |
| 2026-09-04 | b23663210d | Performance | perf: optimize pretokenization allocations | 824 | pixi | 1.0.0 |
| 2026-09-04 | 8bb40816de | Feature | feat: separate tokenizer | 812 | pixi | 1.0.0 |
| 2026-09-04 | e2c31146ec | Feature | feat: new word abstraction | 743 | pixi | 1.0.0 |
| 2026-09-03 | b89b85507f | Performance | perf: various improvements | 985 | pixi | 1.0.0 |
| 2026-09-03 | 8acc6cb9d1 | Performance | perf: optimize count_word | 964 | pixi | 1.0.0 |
| 2026-09-03 | dd62290da1 | Feature | feat: only recount deltas | 963 | pixi | 1.0.0 |
| 2026-09-03 | feaa7c5c90 | Fix | fix: build new word | 950 | pixi | 1.0.0 |
| 2026-09-03 | 94c1cb9b9c | Feature | feat: consolidate 2 word passes during merge into 1 | 948 | pixi | 1.0.0 |
| 2026-09-02 | 1ca03324ed | Fix | fix: don't stop merging at freq < 2 | 918 | pixi | 1.0.0 |
| 2026-09-02 | 724d541f65 | Performance | perf: optimize top pair search with a heap | 913 | pixi | 1.0.0 |
| 2026-09-02 | 6f86d05f07 | Feature | feat: new approach baseline | 742 | pixi | 1.0.0 |
| 2026-08-31 | 346826f460 | Performance | perf: store top modified candidates in a max-heap | 374 | pixi | 1.0.0 |
| 2026-08-31 | ff65895381 | Performance | perf: preallocate dirty list, get rid of Optional | 310 | pixi | 1.0.0 |
| 2026-08-30 | 55506500bb | Mojo version | feat: initial commit | 310 | pixi | 1.0.0 |