mikeleppane / llm.mojo
A GPT-2, built from scratch in Mojo — tokenizer to trained weights, no ML framework, every FLOP tested and explained.
Over time
2026-07-02 to 2026-07-12; peak 25,299 lines
2026-07-02 to 2026-07-12; 24 commits, counted up by commit date
- Opened 1
- Closed or merged 1
2026-07-12 to 2026-07-12; 1 issues and pull requests opened (0 issues, 1 pull requests), from GitHub by mojo_issues
Dependencies
Declared in its manifests at HEAD (toolchain left out): ipykernel, jupyterlab, matplotlib, numpy, python, regex.
Similar repos
| Repo | Description | Similarity |
|---|---|---|
| ulmentflam/llm.mojo | GPT-2 training in pure Mojo with hand-written CUDA and Metal GPU kernels. llm.c parity in bf16 on NVIDIA, 1.72x faster than PyTorch MPS on Apple Silicon. | 87% |
| mempirate/mojobag | BPE tokenizer in Mojo | 87% |
| atsentia/mojo-tokenizer | Pure Mojo tokenizer for LLM inference - BPE, tiktoken, HuggingFace compatible | 86% |
| itsdevcoffee/mojo-visage | Foundational ML/AI library in Mojo for building neural networks and training pipelines from the ground up | 86% |
| Terapines/llm.mojo | Using mojo to implement llm | 86% |
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.
Issues and pull requests
0 open and 0 closed issues; 0 open, 1 merged and 0 closed pull requests, from GitHub by mojo_issues.
Pull requests
| # | Title | Opened | State | Comments |
|---|---|---|---|---|
| 1 | Review fixes post part19 | 2026-07-12 | merged | 0 |
Migrations
| Date | What | From | To | Commit |
|---|---|---|---|---|
| 2026-07-02 | mojo_version | – | 1.0.0 | 1d61f1503b |
| 2026-07-02 | tooling | none | pixi | 1d61f1503b |
Commits
Commit types: Feature 25% · Mojo version 4% · Refactor 13% · Docs 25% · Build and chores 8% · Merge 4% · Other 21%
| Date | Commit | Type | Subject | Lines of Mojo | Tooling | Mojo version |
|---|---|---|---|---|---|---|
| 2026-07-12 | 2b49f918c4 | Merge +docs | Merge pull request #1 from mikeleppane/review-fixes-post-part19 | 25,299 | pixi | 1.0.0 |
| 2026-07-12 | efd2c7edbc | Refactor +tests | Merge docs/google-style-docstrings: Google-style docstrings repo-wide | 24,478 | pixi | 1.0.0 |
| 2026-07-12 | c220e1184e | Other +tests +docs | Merge part-18-performance: the arithmetic (SIMD + threading) | 22,797 | pixi | 1.0.0 |
| 2026-07-11 | 95c3925ed2 | Other +tests +docs | Merge part-17-kv-cache: the KV cache | 22,095 | pixi | 1.0.0 |
| 2026-07-11 | 66a49a193b | Docs | Merge docs and toolchain sync: license, docs currency, CI gate | 20,903 | pixi | 1.0.0 |
| 2026-07-11 | 5331612bfa | Build and chores | ci: run test-fast as the green gate | 20,903 | pixi | 1.0.0 |
| 2026-07-11 | 891b486a65 | Build and chores | build(pixi): make test-fast the canonical test task | 20,903 | pixi | 1.0.0 |
| 2026-07-09 | d09a5e35ab | Refactor +tests | Merge Mojo idioms upgrade: ref/@ tensor core, Span rows, move-based caches | 20,903 | pixi | 1.0.0 |
| 2026-07-05 | 2d014c1ac3 | Feature +tests +docs | Merge Part XVI: Loading real GPT-2 weights (the MVP) | 20,335 | pixi | 1.0.0 |
| 2026-07-05 | cf0b053fb7 | Feature +tests +docs | Merge Part XV: Generation (top-k/top-p, SamplerConfig, generate loop, four-policy demo) | 19,449 | pixi | 1.0.0 |
| 2026-07-05 | 28fd8fb6e4 | Other +tests +docs | Merge Part XIV: Training (AdamW, schedule, clipping, checkpoints, train_gpt) | 18,267 | pixi | 1.0.0 |
| 2026-07-04 | aa11f48244 | Feature +tests +docs | Merge Part XIII: The GPT-2 model | 15,443 | pixi | 1.0.0 |
| 2026-07-04 | 1ba9ab6e9b | Feature +tests | Merge Part XII: Encoder-decoder lab | 12,947 | pixi | 1.0.0 |
| 2026-07-04 | 50d9676bce | Refactor +tests +docs | Merge Part XI: Backpropagation by hand | 9,261 | pixi | 1.0.0 |
| 2026-07-04 | 2f0a6d1f49 | Docs | docs(readme): clarify GPT-2 is a completion model, not a chatbot | 6,775 | pixi | 1.0.0 |
| 2026-07-04 | 61fbafb0fd | Other +tests +docs | Merge Part X: Attention | 6,775 | pixi | 1.0.0 |
| 2026-07-03 | 177dfbc07d | Feature +tests +docs | Merge Part IX: NN building blocks | 5,689 | pixi | 1.0.0 |
| 2026-07-03 | 09b68583c7 | Docs +tests | Merge Part VIII: architecture family | 4,669 | pixi | 1.0.0 |
| 2026-07-03 | 5e59f27e54 | Docs | docs(readme): rewrite introduction and add architecture document | 4,508 | pixi | 1.0.0 |
| 2026-07-03 | 77832ba788 | Feature +tests +docs | Merge Part VII: tiny bigram LM | 4,508 | pixi | 1.0.0 |
| 2026-07-03 | 3785c8f6ca | Other +tests +docs | Merge foundation-restore: Parts II-III foundation | 3,675 | pixi | 1.0.0 |
| 2026-07-03 | 9afe91ed17 | Docs | Merge Part VI: dataset pipeline | 2,127 | pixi | 1.0.0 |
| 2026-07-03 | a998a49d27 | Docs | Merge Part V: tokenization | 1,165 | pixi | 1.0.0 |
| 2026-07-02 | 1d61f1503b | Mojo version +docs | feat(scaffold): bootstrap pixi toolchain, ci, and smoke test | 36 | pixi | 1.0.0 |