tairov / llama2.mojo
Inference Llama 2 in one file of pure 🔥
Over time
2023-09-10 to 2026-09-19; peak 2,989 lines
2023-09-10 to 2026-09-19; 100 commits, counted up by commit date
- Opened 98
- Closed or merged 98
2023-09-11 to 2026-09-12; 98 issues and pull requests opened (45 issues, 53 pull requests), from GitHub by mojo_issues
Similar repos
| Repo | Description | Similarity |
|---|---|---|
| mrvoll98/trellis2-mojo | Pure-Mojo inference port of Microsoft's TRELLIS.2 image-to-3D pipeline for Apple Silicon — Metal GPU offload, watertight dual-contouring remesh, textured GLB export | 82% |
| stelmanjones/llama2.mojo | – | 81% |
| TheAlgorithms/Mojo | All algorithms implemented in Mojo. (The first open-sourced Mojo repository on GitHub) | 81% |
| jagtesh/gguf-mojo | (WIP) Attempt to create Mojo binding for GGUF and hopefully use it to run inference with Llama 2 Mojo library | 81% |
| emd1tey/mojo-example-app | Sample llama2 with mojo🔥 lamguage | 81% |
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,104 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
15 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-09-30 | autotune/m1-h1-rope-barrier | – | git tag | – | 5de9501c21 |
| 2026-09-30 | autotune/m1-h2-row-tiles | – | git tag | – | b49116e3dc |
| 2026-09-30 | autotune/m1-h3-generation-pool | – | git tag | – | d2d83f045c |
| 2026-09-30 | autotune/m1-h4-barrier-padding | – | git tag | – | 93cc6750ee |
| 2026-09-30 | autotune/m1-h5-worker-arrivals | – | git tag | – | 7527b44205 |
| 2026-09-30 | autotune/m1-h6-worker-qos | – | git tag | – | 56c783fa68 |
Issues and pull requests
0 open and 45 closed issues; 0 open, 33 merged and 20 closed pull requests, from GitHub by mojo_issues.
Pull requests
| # | Title | Opened | State | Comments |
|---|---|---|---|---|
| 103 | perf: reduce CPU dispatch overhead for small inference kernels | 2026-09-12 | closed | 0 |
| 102 | Persistent worker pool: fix multi-threaded scaling after the Mojo 1.0 upgrade | 2026-09-12 | merged | 0 |
| 101 | Upgrade to Mojo 1.0 (Modular 26.5) | 2026-09-12 | merged | 0 |
| 100 | Fix tinyllama inference | 2025-11-23 | merged | 0 |
| 99 | Fix perfmance v0.25.7 | 2025-11-21 | merged | 0 |
| 98 | Upgrade to Mojo compiler ver. 0.25.7.0.dev2025111305 | 2025-11-20 | merged | 0 |
| 97 | Fix compilation errors by Sonnet 4.5 / cursor | 2025-11-14 | closed | 2 |
| 94 | Update to Mojo 24.3.0 | 2024-05-21 | closed | 2 |
| 91 | Use String, Dict, and read_bytes to shorten and simplify | 2024-04-22 | merged | 0 |
| 90 | Finalize Update to Mojo 24.2.1 | 2024-04-17 | closed | 1 |
Migrations
No change of Mojo version or tooling between the commits read so far.
Commits
Commit types: Feature 18% · Fix 9% · Mojo version 5% · Migration 1% · Refactor 20% · Docs 20% · Build and chores 2% · Merge 13% · Other 12%
| Date | Commit | Type | Subject | Lines of Mojo | Tooling | Mojo version |
|---|---|---|---|---|---|---|
| 2026-09-19 | b86ad446c7 | Mojo version +docs | Update for Mojo 1.1 compatibility | 2,941 | none | – |
| 2026-09-12 | 0baf4d4613 | Migration +docs | Persistent worker pool: fix multi-threaded scaling after the Mojo 1.0 upgrade (#102) | 2,989 | none | – |
| 2026-09-12 | f6ce354220 | Mojo version +tests +docs | Upgrade to Mojo 1.0 (Modular 26.5) (#101) | 2,710 | none | – |
| 2026-02-09 | 3c556c31b0 | Docs | Change compatible version in README.md | 2,696 | none | – |
| 2026-02-06 | ec2b84d6f1 | Mojo version +tests +docs | Upgrade to Mojo 0.26 and document refactor changes | 2,696 | none | – |
| 2025-11-30 | 00c28f673d | Refactor | Remove unused file | 2,637 | none | – |
| 2025-11-30 | 5a6afb0bf1 | Refactor | Remove outdated link to playground from README.md | 2,637 | none | – |
| 2025-11-23 | 48a82cdafe | Refactor | Remove unnecessary funcs | 2,637 | none | – |
| 2025-11-23 | 82d33da23d | Fix +tests | Fix tinyllama inference (#100) | 2,653 | none | – |
| 2025-11-21 | 95db1915f1 | Refactor | Refactor / Add Transformer struct Add workers param | 2,630 | none | – |
| 2025-11-21 | 9622301811 | Fix +tests +docs | Fix tests | 2,615 | none | – |
| 2025-11-21 | 1b2c4cf5e4 | Other | Improve performance v0.25.7 (#99) | 2,636 | none | – |
| 2025-11-20 | 866570eb94 | Other | Imports cleanup | 2,649 | none | – |
| 2025-11-20 | abc12c9a98 | Mojo version +tests | Upgrade to Mojo compiler ver. 0.25.7.0.dev2025111305 (#98) | 2,655 | none | – |
| 2025-10-13 | b1a5816c2b | Docs | Update README.md add research links | 937 | none | – |
| 2024-05-21 | 5ecae5ab60 | Other | Use String, Dict, and read_bytes to shorten and simplify (#91) | 937 | none | – |
| 2024-04-17 | b2ad8b0ff9 | Mojo version | Update to 24.2 WIP (#89) | 1,094 | none | – |
| 2024-03-05 | 8082755f65 | Docs | Update README.md | 1,095 | none | – |
| 2024-03-01 | c46f9b0137 | Merge | Merge pull request #82 from jackos/update-24.1 | 1,095 | none | – |
| 2024-01-29 | 2c0127af27 | Docs | Update compatible version link | 1,095 | none | – |
| 2024-01-29 | 5d375f9668 | Other | reduce memory use by streaming file to create weight tensors (#81) | 1,095 | none | – |
| 2023-12-06 | f292659f6b | Docs | Update README.md | 1,086 | none | – |
| 2023-12-02 | dc6cdfbb9c | Other | avoid data copy when reading files | 1,086 | none | – |
| 2023-11-15 | 3824f3b3f5 | Docs | Update README.md | 1,098 | none | – |
| 2023-11-15 | 06c5acae7e | Other | DRY _nelts < nelts checks with Accumulator | 1,098 | none | – |
| 2023-11-14 | eeb653dfce | Feature | Add print_config cli param | 1,091 | none | – |
| 2023-11-14 | a1a742b742 | Docs | Update README.md | 1,081 | none | – |
| 2023-11-13 | ae531d649d | Docs | Update README.md | 1,081 | none | – |
| 2023-11-12 | 0f214ffdce | Docs | Update README.md | 1,081 | none | – |
| 2023-11-12 | a4c60e7a30 | Feature | Add Mac M1 Max benchmarks | 1,081 | none | – |
| 2023-11-11 | d098eb324d | Docs | Update README.md add latest benchmark results | 1,081 | none | – |
| 2023-11-11 | 485fe286ef | Docs | Update README.md add latest benchmark results | 1,081 | none | – |
| 2023-11-03 | 1ec0fef3f7 | Refactor | free all allocated pointers | 1,081 | none | – |
| 2023-11-03 | 622120202d | Build and chores | Bump supported version to 0.5.0 | 1,071 | none | – |
| 2023-11-03 | 4380e14858 | Refactor | use mojo file reader, remove read/ folder (#50) | 1,071 | none | – |
| 2023-11-02 | 6a2b7ffd91 | Fix | bugfix: Dockerfile Modular Auth + Conda env | 1,414 | none | – |
| 2023-10-28 | 61b44ecde9 | Refactor | Change simd width multiplier 2->4 | 1,414 | none | – |
| 2023-10-28 | 1f93c27e67 | Other | fuse matmuls with shared inputs | 1,414 | none | – |
| 2023-10-21 | 1364705318 | Docs | Update README.md. Add huggingface link | 1,344 | none | – |
| 2023-10-21 | bfc7e9961a | Fix | fix typos in docker file | 1,344 | none | – |
| 2023-10-19 | 6889270b12 | Docs | Update README.md | 1,344 | none | – |
| 2023-10-10 | c9ed92cdfb | Refactor | Keep default value for workers = num_cores() | 1,344 | none | – |
| 2023-10-10 | 512c8cfb05 | Refactor | Rename cores to workers and set to opimal | 1,344 | none | – |
| 2023-10-08 | 6cdd951ef5 | Fix | Fix typo | 1,344 | none | – |
| 2023-10-08 | 8aa863694c | Feature | Add param to set threads | 1,345 | none | – |
| 2023-10-08 | 7c2bc3ba41 | Docs | Update README.md | 1,343 | none | – |
| 2023-10-08 | 75bc698a91 | Docs | Update README.md | 1,343 | none | – |
| 2023-10-08 | 6c5df134eb | Other | adapt to mojo 0.4 (#41) | 1,343 | none | – |
| 2023-10-04 | 1321b7c990 | Docs | Update benchmarks after merging latest PR | 1,345 | none | – |
| 2023-10-04 | 661b29caff | Docs | Update benchmarks after merging latest PR | 1,345 | none | – |
The latest 50 of 100 commits; all of them are in the JSON.