Mojourney

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.

GitHub ↗ · first seen in GH Archive 2026-06-16 (name / language) · 63,872 lines of Mojo in 96 files at the last of 406 commits (2026-05-31 to 2026-11-02)

Stars33as of 2026-11-23
Forks6as of 2026-11-23
Depends on2Mojo libraries, of 17 declared
Used by0census repos that depend on it
Open issues0
Watchers2
Created2026-05-315 months ago
Lines of Mojo63,87296 files
Commits4062026-05-31 to 2026-11-02
Contributors3commit authors, bots left out
Mojo version1.2.0from lock file
CategoryML and inferenceapproximate
Toolingpixi
Packagingnone
LicenseMIT

Over time

2026-05-31 to 2026-11-02; peak 63,872 lines

Dependencies

Depends on lyffseba/mlx, Mosaad-M/requests.

Declared in its manifests at HEAD (toolchain left out): datasets, matplotlib, mlx, muon-optimizer, numpy, pre-commit, pyrefly, pytest, pytest-xdist, python, pytorch, pytorch-gpu, requests, tiktoken, torch, tqdm, transformers.

Similar repos

RepoDescriptionSimilarity
mojolearn/mojolearnGPU machine learning in Mojo that supports bitwise identical inference and training on Apple Metal, NVIDIA CUDA and AMD HIP.88%
mikeleppane/llm.mojoA GPT-2, built from scratch in Mojo — tokenizer to trained weights, no ML framework, every FLOP tested and explained.87%
attilio-castano/llm-mojoLLM inference from first principles in Mojo on Apple Silicon: GPU kernels, a serving engine, reproducible studies, and compile-time correctness checks.87%
SergiuDeveloper/mojo-tensorA GPU-accelerated deep learning framework written in Mojo. Provides tensors, automatic differentiation, and neural network layers with explicit GPU kernel implementations.86%
michael-lehn/mojo-gemmDGEMM in Mojo with NEON and SME2 micro kernels, benchmarked on Apple M585%

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

1 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-05 to 2026-11032026-052026-062026-072026-082026-092026-102026-11
  • contributors
  • new

3 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, 0 merged and 3 closed pull requests, from GitHub by mojo_issues.

Pull requests

#TitleOpenedStateComments
3Fix encoder CPU dwte bucket width2026-08-03closed2
2Configure Renovate2026-07-26closed1
1Add linux-64 platform so make install works on x86_64 hosts2026-07-14closed1

Migrations

DateWhatFromToCommit
2026-05-31mojo_version–1.0.08df6eb9c24
2026-05-31toolingnonepixi8df6eb9c24
2026-09-28mojo_version1.0.01.1.030c1dee9e3
2026-10-22mojo_version1.1.01.2.0c17e37ae7c

Commits

Commit types: Feature 17% · Fix 8% · Mojo version 0% · Migration 4% · Refactor 2% · Docs 28% · Tests 7% · Build and chores 6% · Merge 11% · Other 17%

DateCommitTypeSubjectLines of MojoToolingMojo version
2026-11-024446eec0aeDocsREADME: the headline repo's history is squashed, but old commit IDs still resolve63,872pixi1.2.0
2026-11-02a0c8dd15d2Fixtest_zero_untied: derive the ownership test's AdamW ranges for -D LLMM_ROTARY=1 instead of refusing to compile63,872pixi1.2.0
2026-11-02a15da14b2aOtherfigure_adoption_headline: stop two panel labels clipping and overlapping63,872pixi1.2.0
2026-11-022fab58b578Fix +docsCorrect the headline comparison: a second AdamW run reaches 3.2784 on the same val63,872pixi1.2.0
2026-11-02f2063e96aeDocsdocs: record the gate results and the re-export check for the review-fix commit (test_zero_untied does not compile under -D LLMM_ROTARY=1 by design, same as before the fix)63,872pixi1.2.0
2026-11-02bd8f584104Other +testsReview fixes for the QK-norm flag and safetensors export: infer_gpt2 exited 1 on a legacy-magic (20240326) pretrained .bin because its pre-constructor flag peek used the strict magic check (now the co63,872pixi1.2.0
2026-11-028258dfa4fdFixtest_checkpointing: pin ARCH_FLAGS/STATE_ARCH_FLAGS to the -D defines with literals; the mismatch sweep alone passed with the QK-norm bit dropped from the build's word (mutant: ARCH_FLAGS without QK_N63,500pixi1.2.0
2026-11-02a4fb42ae99Feature +docsSafetensors export for rotary + QK-norm checkpoints: model_type llm_mojo_gpt2 so transformers refuses it instead of loading it as stock GPT-263,476pixi1.2.0
2026-11-022ff99b61b4TestsRecord QK-norm as bit 2 of the checkpoint flags word: a build without -D LLMM_QK_NORM=1 silently loaded a QK-norm checkpoint and computed the wrong model63,273pixi1.2.0
2026-11-02c714346342DocsREADME: link the headline checkpoint on Hugging Face63,135pixi1.2.0
2026-11-0223a7ab8476Merge +docsMerge branch 'mn/reshead': headline result, recipe passes AdamW's final val at 2.88B tokens63,135pixi1.2.0
2026-10-316a712bae02Docsdocs: correct the combined recipe's step-time cost and the softmax cause after W10 verification63,135pixi1.2.0
2026-10-31fdb52620b0Fixtest_qk_rotary_fused: add a bf16 GPU case against the float64 model, since every fused-kernel case was fp32 while training runs bf16 (0.03 tolerance is two ulps of the largest outputs; the forward-rot63,134pixi1.2.0
2026-10-31715881147bDocsW10 doc: profile of the combined-recipe step cost (row passes ~45 ms/step idle, softmax +44 ms/step), fused-kernel design, gates, mutants63,089pixi1.2.0
2026-10-31ae97fe0827Fix +testsFuse rotary into the QK-norm row kernels: one pass per direction over head-layout q/k63,089pixi1.2.0
2026-10-3121a2e4c086Merge +docsMerge branch 'mn/results2': three-seed confirmation of the combined recipe, headline-run design62,411pixi1.2.0
2026-10-316b8ed59daaMerge +docsMerge branch 'mn/results': modded-nanogpt adoption campaign report, figures and log collection62,411pixi1.2.0
2026-10-313646f63e0cDocsdocs: clean gelu-vs-relu2 step-time measurement in the adoption plan (+3.2% for relu2)62,411pixi1.2.0
2026-10-31a7ec37e632Docsdocs: W3 600-step cosine-vs-cooldown pair in the adoption plan (val@600 4.3470 vs 4.2541)62,411pixi1.2.0
2026-10-3147265b11fcDocsdocs: W9 untie-at-two-thirds ranking result in the adoption plan (val@300 5.0351 vs tied 5.0347)62,411pixi1.2.0
2026-10-319cd6d6978eDocsdocs: W9 untied + low head rate ranking result in the adoption plan (val@300 5.5097)62,411pixi1.2.0
2026-10-313a97f9cd5bDocsdocs: W9 untied-from-scratch ranking result in the adoption plan (val@300 5.1503 vs tied 5.0347)62,411pixi1.2.0
2026-10-31d74c9f3ae3Docsdocs: W5 small-init ranking result in the adoption plan (val@300 5.0274)62,411pixi1.2.0
2026-10-319c79cbbdb4Docsdocs: W3 warmup-50 ranking result in the adoption plan (val@300 4.8017 vs zero-warmup 4.7588)62,411pixi1.2.0
2026-10-31684e05fbecDocsdocs: W3 0.45-cooldown ranking result in the adoption plan (val@300 4.7675)62,411pixi1.2.0
2026-10-315cbd4b09fdDocsdocs: W5+W6 zero-init+ReLU^2 ranking result in the adoption plan (val@300 5.0088)62,411pixi1.2.0
2026-10-318f4c91a955Docsdocs: W7 QK-norm 0.12-scale ranking result in the adoption plan (val@300 4.9790)62,411pixi1.2.0
2026-10-31bbdd82c8ceDocsdocs: W3 WSD linear-cooldown ranking result in the adoption plan (val@300 4.7588 vs base 5.0347)62,411pixi1.2.0
2026-10-31afbebb938eDocsdocs: W5 zero-init ranking result in the adoption plan (val@300 5.0436 vs base 5.0347)62,411pixi1.2.0
2026-10-31f8824645c1Merge +tests +docsMerge branch 'mn/w9': untied LM head behind -D LLMM_UNTIED_HEAD=1, with -l_head and -untie_at62,411pixi1.2.0
2026-10-312f5c599194Docsdocs: W6 ReLU^2 ranking result in the adoption plan (val@300 5.0184 vs base 5.0347)59,567pixi1.2.0
2026-10-3145caec9299Docsdocs: W7 QK-norm ranking result in the adoption plan (val@300 4.9657 vs base 5.0347)59,567pixi1.2.0
2026-10-31d8be93e6f1Docsdocs: W8 rotary ranking result in the adoption plan (val@300 4.8031 vs base 5.0347)59,567pixi1.2.0
2026-10-317c8ba22e85Docsdocs: W2 ranking results in the adoption plan (momentum warmup, val@300)59,567pixi1.2.0
2026-10-31f34c8d84a4FeatureAdd Muon-vs-AdamW result figure (val loss at 600 steps x 3 seeds, 2000 steps, lr sweep), embedded in README and campaign doc; regenerate with make figure-muon (renders committed logs, no GPU)59,567pixi1.2.0
2026-10-31841ea95c3fMerge +tests +docsMerge branch 'mn/w7': QK-norm and fixed attention scale behind -D LLMM_QK_NORM=1 / -attn_scale59,567pixi1.2.0
2026-10-3078c0806da8Merge +tests +docsMerge branch 'mn/w56': zero-init residual projections and ReLU^2 behind build flags59,015pixi1.2.0
2026-10-3096364b824aDocsdocs: W1 ranking results in the adoption plan (AdamW-range lr ladder, val@300)58,683pixi1.2.0
2026-10-30aeabaf4efaMerge +tests +docsMerge branch 'mn/w8': rotary position embeddings behind -D LLMM_ROTARY=158,683pixi1.2.0
2026-10-30a4db4d5a80MergeMerge branch 'main' into fu/seedsv57,958pixi1.2.0
2026-10-30f02fe5626cDocsdocs: Muon vs AdamW write-up re-verified against the committed logs; step-time and caveat corrections57,955pixi1.2.0
2026-10-3035078dc19fMergeMerge branch 'fu/seeds' into fu/seedsv57,955pixi1.2.0
2026-10-306f75a00c9eDocsREADME: 2000-step Muon vs AdamW result (4.226 / 4.005 / 3.804 at step 2000)57,955pixi1.2.0
2026-10-301353df8021Merge +testsMerge branch 'mn/w2': Muon momentum warmup (-mu_start, -mu_warmup)57,955pixi1.2.0
2026-10-30af6cad64f0Merge +testsMerge branch 'mn/w3': WSD scheduler cooldown fraction, linear decay shape, zero warmup57,755pixi1.2.0
2026-10-307b36b40f16Merge +testsMerge branch 'mn/w1': -l_adam multiplier for the AdamW ranges under Muon57,574pixi1.2.0
2026-10-30fe3312a8caDocsdocs: modded-nanogpt adoption plan for the Muon track (W1-W9 work items)57,253pixi1.2.0
2026-10-30a2c2282ef3DocsREADME: Muon vs AdamW results table for the 600-step three-seed runs57,253pixi1.2.0
2026-10-30fa4b8b48d2MergeMerge branch 'fu/seeds'57,253pixi1.2.0
2026-10-3024884b77d5Docsdocs: S7 trim and the resume-race fix are landed, not in progress57,252pixi1.2.0

The latest 50 of 406 commits; all of them are in the JSON.