Mojourney

mikeleppane / llm.mojo

A GPT-2, built from scratch in Mojo — tokenizer to trained weights, no ML framework, every FLOP tested and explained.

GitHub ↗ · first seen in GH Archive 2026-07-11 (name,description / language) · 25,299 lines of Mojo in 135 files at the last of 24 commits (2026-07-02 to 2026-07-12)

Stars1as of 2026-11-23
Forks0as of 2026-11-23
Depends on0Mojo libraries, of 6 declared
Used by0census repos that depend on it
Open issues0
Watchers0
Created2026-07-094 months ago
Lines of Mojo25,299135 files
Commits242026-07-02 to 2026-07-12
Contributors11 new in 2026-07
Mojo version1.0.0from lock file
CategoryML and inferenceapproximate
Toolingpixi
Packagingnone
LicenseMIT

Over time

2026-07-02 to 2026-07-12; peak 25,299 lines

Dependencies

Declared in its manifests at HEAD (toolchain left out): ipykernel, jupyterlab, matplotlib, numpy, python, regex.

Similar repos

RepoDescriptionSimilarity
ulmentflam/llm.mojoGPT-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/mojobagBPE tokenizer in Mojo87%
atsentia/mojo-tokenizerPure Mojo tokenizer for LLM inference - BPE, tiktoken, HuggingFace compatible86%
itsdevcoffee/mojo-visageFoundational ML/AI library in Mojo for building neural networks and training pipelines from the ground up86%
Terapines/llm.mojoUsing mojo to implement llm86%

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 (WatchEvents) and forks per month in GH Archive, 2023-01 to 2026-10012023-012023-052023-092024-012024-052024-092025-012025-052025-092026-012026-052026-09
  • 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

People with a commit each month, and the ones with their first, 2026-07 to 2026-07012026-07
  • 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 releases or 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

#TitleOpenedStateComments
1Review fixes post part192026-07-12merged0

Migrations

DateWhatFromToCommit
2026-07-02mojo_version–1.0.01d61f1503b
2026-07-02toolingnonepixi1d61f1503b

Commits

Commit types: Feature 25% · Mojo version 4% · Refactor 13% · Docs 25% · Build and chores 8% · Merge 4% · Other 21%

DateCommitTypeSubjectLines of MojoToolingMojo version
2026-07-122b49f918c4Merge +docsMerge pull request #1 from mikeleppane/review-fixes-post-part1925,299pixi1.0.0
2026-07-12efd2c7edbcRefactor +testsMerge docs/google-style-docstrings: Google-style docstrings repo-wide24,478pixi1.0.0
2026-07-12c220e1184eOther +tests +docsMerge part-18-performance: the arithmetic (SIMD + threading)22,797pixi1.0.0
2026-07-1195c3925ed2Other +tests +docsMerge part-17-kv-cache: the KV cache22,095pixi1.0.0
2026-07-1166a49a193bDocsMerge docs and toolchain sync: license, docs currency, CI gate20,903pixi1.0.0
2026-07-115331612bfaBuild and choresci: run test-fast as the green gate20,903pixi1.0.0
2026-07-11891b486a65Build and choresbuild(pixi): make test-fast the canonical test task20,903pixi1.0.0
2026-07-09d09a5e35abRefactor +testsMerge Mojo idioms upgrade: ref/@ tensor core, Span rows, move-based caches20,903pixi1.0.0
2026-07-052d014c1ac3Feature +tests +docsMerge Part XVI: Loading real GPT-2 weights (the MVP)20,335pixi1.0.0
2026-07-05cf0b053fb7Feature +tests +docsMerge Part XV: Generation (top-k/top-p, SamplerConfig, generate loop, four-policy demo)19,449pixi1.0.0
2026-07-0528fd8fb6e4Other +tests +docsMerge Part XIV: Training (AdamW, schedule, clipping, checkpoints, train_gpt)18,267pixi1.0.0
2026-07-04aa11f48244Feature +tests +docsMerge Part XIII: The GPT-2 model15,443pixi1.0.0
2026-07-041ba9ab6e9bFeature +testsMerge Part XII: Encoder-decoder lab12,947pixi1.0.0
2026-07-0450d9676bceRefactor +tests +docsMerge Part XI: Backpropagation by hand9,261pixi1.0.0
2026-07-042f0a6d1f49Docsdocs(readme): clarify GPT-2 is a completion model, not a chatbot6,775pixi1.0.0
2026-07-0461fbafb0fdOther +tests +docsMerge Part X: Attention6,775pixi1.0.0
2026-07-03177dfbc07dFeature +tests +docsMerge Part IX: NN building blocks5,689pixi1.0.0
2026-07-0309b68583c7Docs +testsMerge Part VIII: architecture family4,669pixi1.0.0
2026-07-035e59f27e54Docsdocs(readme): rewrite introduction and add architecture document4,508pixi1.0.0
2026-07-0377832ba788Feature +tests +docsMerge Part VII: tiny bigram LM4,508pixi1.0.0
2026-07-033785c8f6caOther +tests +docsMerge foundation-restore: Parts II-III foundation3,675pixi1.0.0
2026-07-039afe91ed17DocsMerge Part VI: dataset pipeline2,127pixi1.0.0
2026-07-03a998a49d27DocsMerge Part V: tokenization1,165pixi1.0.0
2026-07-021d61f1503bMojo version +docsfeat(scaffold): bootstrap pixi toolchain, ci, and smoke test36pixi1.0.0