Mojourney

thomas-gale / micrograd

Micrograd written in Mojo

GitHub ↗ · first seen in GH Archive 2023-08-28 (name,description / language) · 795 lines of Mojo in 15 files at the last of 76 commits (2023-08-28 to 2024-07-16)

Stars1as of 2026-11-23
Forks0as of 2026-11-23
Depends on0Mojo libraries, of 5 declared
Used by0census repos that depend on it
Open issues0
Watchers1
Created2023-08-283.2 years ago
Lines of Mojo79515 files
Commits762023-08-28 to 2024-07-16
Contributors2commit authors, bots left out
Mojo versionno manifestno manifest or lock file; nothing states a version; ~24.4 by date
CategoryLibraries and toolsapproximate
Toolingnone
Packagingnone
LicenseApache-2.0

Over time

2023-08-28 to 2024-07-16; peak 1,015 lines

Dependencies

Declared in its manifests at HEAD (toolchain left out): matplotlib, numpy, pillow, python, torch.

Similar repos

RepoDescriptionSimilarity
jekel1818/mojo-micrograd–89%
dorjeduck/momogradA Learning Journey: Micrograd in Mojo 🔥 88%
Ayushlm10/micromojogradMojo port of Micrograd86%
witoldszejgis/mojogradmicrograd inspired mojo library84%
kraudy/mojo-gradKarpathy micrograd implementation in mojo83%

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, 2023-08 to 2024-07022023-082023-092023-102023-112023-122024-012024-022024-032024-042024-052024-062024-07
  • contributors
  • new

2 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.

Migrations

No migrations recorded

No change of Mojo version or tooling between the commits read so far.

Commits

Commit types: Feature 22% · Fix 9% · Refactor 13% · Docs 16% · Build and chores 4% · Other 36%

DateCommitTypeSubjectLines of MojoToolingMojo version
2024-07-1619161ed50cOtherMoving the tests files to a canonical location. Updated the makefile script.795none–
2024-06-28ed65d81ac7DocsUpdated README notes.808none–
2024-06-2823c1592904Other +testsTweaked topological sort again, to exactly mimic a recursive stack with an explict stack.808none–
2024-06-2875113d22c3Other +testsWIP: Starting on making the more_ops test pass.813none–
2024-06-284db5fa5965Refactor +testsRefactoring trait Numeric -> Gradable687none–
2024-06-2885ebe899aeFix +testsFixing bug in topological sort!767none–
2024-06-28c42d480df7Other +testsWIP: Finished fiddling around. Given up try to implement diamond shaped graphs implicity with operators. This will have to be a dedicated fork operator.775none–
2024-06-28ce7fb53234Other +testsThe topological sort appears to be not runnng back prop on a converging branches.785none–
2024-06-28fa1acbd45fFeatureCreated working version. This issue is related to some issue with rvalue and the reference semantics of the Value wrapper.784none–
2024-06-27df7995dd98Fix +testsSimple failing test to identify the relu * relu rvalue issue.778none–
2024-06-2706f77e0486Fix +testsTrying to isolate the failing problem.774none–
2024-06-2766ba6e93b8Fix +testsRelu Fixed by changing equality checks to pointer address rather than value.735none–
2024-06-2743eeea496fFeatureAdd a failing test_add_mul_relu719none–
2024-06-27aec05c173dFix +testsFixing from float_32 as from scalar. test_add_mul_pow passing.689none–
2024-06-19899ce241b0Build and choresUpdate Makefile695none–
2024-06-19cf8f899a59DocsUpdate README.md695none–
2024-06-1984939da4cbDocsUpdate LICENSE695none–
2024-06-19d96288e6e6Build and choresUpdate pyproject.toml695none–
2024-06-19c4d699f2a2DocsUpdate README.md695none–
2024-06-1967376fd8d0Fix +testsTweaking tests for a little demo.695none–
2024-06-1993b125df7dOther +testsLeaving failing test with the from_scalar in numeric.685none–
2024-06-19c47909dc67FeatureAdding pytorch check to test_grad634none–
2024-06-19c954d64c3bOtherRenabling the pytorch sanity test.617none–
2024-06-19b0f4abb1adOtherMoving the prev into out c'tor as the value semantics of Value don't effect the internal RCs.621none–
2024-06-19120d57a1ddOtherUpdating relu.623none–
2024-06-196304e7ef6eRefactorStarting on some notes for pow (and the need to support conversion from scalar)630none–
2024-06-199730148f2eOtherTidied611none–
2024-06-197047271b66OtherBackward pass working!671none–
2024-06-1839efc05c93Refactor +testsWIP: Updating value to use RC. Final detail is to fix the topological sort in backward.709none–
2024-06-181260fd3f59FeatureAdding some docs to the RC.1,015none–
2024-06-18aa7c5b106cOther +testsMoving the code around, added some notes.997none–
2024-06-176fb7ba2a56OtherUpdating comments in Value.960none–
2024-06-179c946aaa45RefactorRefactored tests name.954none–
2024-06-17064785bf83FixLeaving a failing unit test.954none–
2024-06-1796595fd5e4FeatureAdding some TODO notes on where to add the RCs next time.954none–
2024-06-177953ab347bFeatureAdding a move test for RC.945none–
2024-06-173d041bda37Feature +testsAdding get_data_copy and get_ref_count util functions to remove the need for explicit lifetimes.930none–
2024-06-17cf0473d186Other +testsSet link to docs on explicit lifetimes.887none–
2024-06-17264fba6770Refactor +testsFound strange bug in the lifetime of my RC test.890none–
2024-06-17964bc6596dFeatureAdded a basic rc870none–
2024-06-179c57569b2bRefactorWIP: Coming to the slow realisation, that backward will only work if we wrap data and grad in pointers.834none–
2024-06-17fd7223f3acOther +testsWIP: Backward not capturing a reference to self.812none–
2024-06-1718cc564002FeatureAdding torch and the code adapted from Karpathy's test sanity check.753none–
2024-06-1729c2cd6f80FeatureAdding concept of zero and one to Numeric trait.649none–
2024-06-1733342eb76eFeatureAdding an mul and relu.620none–
2024-06-179e322104ecOtherMoving around code, reading Karpathy's code to align names.565none–
2024-06-1757a36d36f0RefactorTweaking printing logic.516none–
2024-06-145afd3fdad4FeatureWIP: Adding NumericFloat32498none–
2024-06-14f94889b52bOtherWIP: Messing about with trying to get a window showing from vscode devcontainer docker in wsl (wslg) host.418none–
2024-06-1454bacfd27bOtherRemoving settings.json as modular home path is default anyway.485none–

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