Mojourney

jjvraw / mograd

Autograd Tensor Library written in pure Mojo 🔥

GitHub ↗ · first seen in GH Archive 2026-08-03 (description / language) · 22,696 lines of Mojo in 74 files at the last of 268 commits (2026-05-04 to 2026-08-18)

Stars4as of 2026-11-23
Forks1as of 2026-11-23
Depends on0Mojo libraries, of 1 declared
Used by0census repos that depend on it
Open issues13
Watchers0
Created2026-05-046 months ago
Lines of Mojo22,69674 files
Commits2682026-05-04 to 2026-08-18
Contributors41 new in 2026-08
Mojo version1.1.0.dev2026081605from lock file
CategoryML and inferenceapproximate
Toolingpixi
Packagingrattler
LicenseApache-2.0

Over time

2026-05-04 to 2026-08-18; 268 commits, counted up by commit date

Dependencies

Declared in its manifests at HEAD (toolchain left out): gcc.

Similar repos

RepoDescriptionSimilarity
bpr/minigradA tensor library with automatic differentiation in Mojo, modeled on Tinygrad.93%
ratulb/tenmoA fast, lean and high performance Tensor library in Mojo🔥87%
JulianChaoul16/AbscissaTensor compute library87%
SergiuDeveloper/mojo-tensorA GPU-accelerated deep learning framework written in Mojo. Provides tensors, automatic differentiation, and neural network layers with explicit GPU kernel implementations.84%
basalt-org/basaltA Machine Learning framework from scratch in Pure Mojo 🔥84%

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-05 to 2026-08032026-052026-062026-072026-08
  • contributors
  • new

4 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

10 open and 9 closed issues; 3 open, 18 merged and 50 closed pull requests, from GitHub by mojo_issues.

Open issues

#TitleUpdatedLabelsComments
13Cleanup `__init__`s for Op, OpRef, Buffer2026-07-09–1
63Fixed Point Simplification2026-07-09–0
62Custom lib kernels need more complete testing2026-07-02–0
58Broadcasting2026-06-26–0
51Vendor matmul support2026-06-26–0
50Graph Assertions / Paramaterised Tensor2026-06-26–0
55Casting Rules2026-06-22–0
37Copies vs Views2026-06-15–0
25Clean up realise/materialise ops2026-06-11–0
4KGEN_CompilerRT_DestroyGlobals2026-06-07–0

Pull requests

#TitleOpenedStateComments
90[Deps] Bump to Mojo 1.1.0.dev2026082505 / MAX 26.6.0.dev20260825052026-08-26open0
89[Deps] Pin compiler2026-08-18closed0
88[Deps] Migrate to Mojo 1.1 nightly2026-08-16closed0
87[Runtime] Add caching device-memory allocator2026-08-16closed0
86[Deps] Pin lockfiles to Mojo 1.0.0b3.dev2026062206, MAX 26.5.0.dev20260622062026-08-06open0
85[Device][Tensor] Draw factory seeds from a per-device RNG stream2026-08-05closed0
84Dtype semantics2026-08-05closed1
83[Deps] Pin lockfiles to Mojo 1.0.0b3.dev2026062206, MAX 26.5.0.dev20260622062026-08-05closed0
82[Docs][CI] mograd docs site2026-08-04open0
81[Docs][CI] mograd site and API generation2026-08-04closed0

Migrations

DateWhatFromToCommit
2026-05-04mojo_version–1.0.0faf5d96b39
2026-05-04toolingnonepixifaf5d96b39
2026-06-22packagingnonerattler41721923ba
2026-08-18mojo_version1.0.01.1.0.dev20260816059f872acfe6

Commits

Commit types: Feature 8% · Fix 10% · Mojo version 5% · Migration 0% · Refactor 22% · Docs 3% · Tests 3% · Build and chores 6% · Other 43%

DateCommitTypeSubjectLines of MojoToolingMojo version
2026-08-1838e0a72f03Build and chores[Deps] Pin compiler22,696pixi1.1.0.dev2026081605
2026-08-18a304919092Docs[Docs] Document memory pooling management22,696pixi1.1.0.dev2026081605
2026-08-189f872acfe6Migration +tests[Deps] Migrate to Mojo 1.1 nightly22,697pixi1.1.0.dev2026081605
2026-08-18f12ef9b6b2Other[Chore] Add CODEOWNERS22,399pixi1.0.0
2026-08-16a2e7883d39Feature +tests[Runtime] Add caching device-memory allocator22,399pixi1.0.0
2026-08-07ce194e52e9Refactor[Graph][NFC] Compute relu's grad mask from output21,687pixi1.0.0
2026-08-075d6f15d314Tests[Tests] Missing test for folding contiguous at construction21,687pixi1.0.0
2026-08-07edc875f662Feature +tests[Graph] Add layout equality, fold identify reshapes at construction21,682pixi1.0.0
2026-08-07e14784259eFix +tests[Graph] Raise for missing grad rules and add `non_differentiable` rule21,648pixi1.0.0
2026-08-075bc5b83b32Fix +tests[Tensor][Graph] Literal dtype inference and type promotion21,547pixi1.0.0
2026-08-06e8f8b39cbdFix +tests[Tensor][Graph] CAST simplification and gradient rule (#70)21,467pixi1.0.0
2026-08-0556ed214bb8Refactor[Runtime][NFC] Split host dispatch and strided device helpers21,427pixi1.0.0
2026-08-05a4cfed8581Fix +tests[Device][Tensor] Draw factory seeds from a per-device RNG stream21,352pixi1.0.0
2026-08-048f60752fecOther +tests[Graph][Tensor] Only floating-point tensors have gradients21,285pixi1.0.0
2026-08-047bb18e2283Other[NFC] Iterate directly where the index is only used to index (#79)21,248pixi1.0.0
2026-08-0234f41b7edaFix +tests[NN] Fix SGD gradient indexing past an unset Parameter (#72)21,251pixi1.0.0
2026-08-0280b390d28cFix +tests[Tensor] Zero gradient for disconnected targets (#71)21,215pixi1.0.0
2026-08-02e607200423Refactor[Tensor][NFC] Take `gradient` by read (#73)21,181pixi1.0.0
2026-08-019a5648e9abRefactor[Data][NFC] Remove numpy dep for LazyLoader21,181pixi1.0.0
2026-08-018207acac27Docs[Docs] Update readme example21,174pixi1.0.0
2026-08-01a0e6567aa7Feature +tests[Debug] Add `MOGRAD_DEBUG` levels for dispatch trace, throughput, graph dump, device stats21,174pixi1.0.0
2026-08-015913efd0bbFeature[Device][NFC] Add `Device.get_function` helper20,930pixi1.0.0
2026-07-31b12289680cBuild and chores[CI] Experimental fix for macOS compilation overflow20,926pixi1.0.0
2026-07-31f3812d0987Refactor[Tensor][NFC] Remove Tensor._grad, and unused imports20,926pixi1.0.0
2026-07-31c2ad0f02e9Feature +tests[NN] Introduce `Parameter`20,934pixi1.0.0
2026-07-317c06e624a1Refactor[NN][NFC] Restructure nn & optim20,907pixi1.0.0
2026-07-315020d52d26Refactor +tests[NN] Let `Module` inherit `Movable` and introduce seperate `Optimizer` trait20,903pixi1.0.0
2026-07-30116b8fdaa1Docs[Docs] Minimal example in readme20,885pixi1.0.0
2026-07-30032767228bMojo version[Deps] Pin mojo & max20,885pixi1.0.0
2026-07-30a3580b64bbOther +tests[Graph] Return Optional src grads, stop backprop into non-differentiable inputs20,885pixi1.0.0
2026-07-30d946b8d0c8Docs[Docs] Brief design philosophy20,888pixi1.0.0
2026-07-23c4b7ee200fTests[Tests] Add attention generic path, clean up test harness20,888pixi1.0.0
2026-07-104ba3db1a4cRefactor +tests[GPU] Attention metal-path20,042pixi1.0.0
2026-07-10bad4c3a76cOther[GPU] Single smem base with comptime offsets18,799pixi1.0.0
2026-07-10b3237b1ab1Feature +tests[GPU][Tensor][Graph] Fused flash attention, multi-output ops, SCALE optype18,815pixi1.0.0
2026-06-2882f28f6114Refactor[Examples] Tinyshakespear model config change + set_lr usage11,744pixi1.0.0
2026-06-28e8ea3f3633Other[Graph] Adam.set_lr11,732pixi1.0.0
2026-06-28e91d8fcbb4Other[GPU] Three pass LayerNorm backwards perf improvement11,726pixi1.0.0
2026-06-2799cd49fa75Other +tests[GPU] Fused LayerNorm11,551pixi1.0.0
2026-06-27313068a721Feature +tests[Graph] Support multi-output ops10,958pixi1.0.0
2026-06-27dd866de813Refactor[Examples] Clean up10,865pixi1.0.0
2026-06-270123cc7807Other +tests[Chore] Prefix transpose with argument (MATMUL_T -> MATMUL_BT)10,864pixi1.0.0
2026-06-27cacaab131bOther[Examples] Tinyshakespear10,864pixi1.0.0
2026-06-2650476f7da1Fix[Scripts] Fix MetalToolchain predicate10,699pixi1.0.0
2026-06-26a8ea3fa472Feature +tests[Graph] LayerNorm, Adam, AdamW10,699pixi1.0.0
2026-06-26a9a21eb1efFix +tests[Graph] Fix transpose grad, contiguous grad, and arbitrary-rank Linear10,360pixi1.0.0
2026-06-2559b45b6268Refactor[Graph] Simplify reshape grad10,272pixi1.0.0
2026-06-25d11bc2208eOther[Graph] Tensor.zeros and rank10,272pixi1.0.0
2026-06-25e66839b534Tests[Tests] Fix old SGD call10,265pixi1.0.0
2026-06-255c91c3bd62Other[Graph] ModuleParam10,262pixi1.0.0

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