thomas-gale / micrograd
Micrograd written in Mojo
Over time
2023-08-28 to 2024-07-16; peak 1,015 lines
2023-08-28 to 2024-07-16; 76 commits, counted up by commit date
mojo_issues hasn't read this repository's issues and pull requests yet.
Dependencies
Declared in its manifests at HEAD (toolchain left out): matplotlib, numpy, pillow, python, torch.
Similar repos
| Repo | Description | Similarity |
|---|---|---|
| jekel1818/mojo-micrograd | – | 89% |
| dorjeduck/momograd | A Learning Journey: Micrograd in Mojo 🔥 | 88% |
| Ayushlm10/micromojograd | Mojo port of Micrograd | 86% |
| witoldszejgis/mojograd | micrograd inspired mojo library | 84% |
| kraudy/mojo-grad | Karpathy micrograd implementation in mojo | 83% |
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
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
- 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 published release in the GH Archive days loaded, and no git tag in the clone.
Migrations
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%
| Date | Commit | Type | Subject | Lines of Mojo | Tooling | Mojo version |
|---|---|---|---|---|---|---|
| 2024-07-16 | 19161ed50c | Other | Moving the tests files to a canonical location. Updated the makefile script. | 795 | none | – |
| 2024-06-28 | ed65d81ac7 | Docs | Updated README notes. | 808 | none | – |
| 2024-06-28 | 23c1592904 | Other +tests | Tweaked topological sort again, to exactly mimic a recursive stack with an explict stack. | 808 | none | – |
| 2024-06-28 | 75113d22c3 | Other +tests | WIP: Starting on making the more_ops test pass. | 813 | none | – |
| 2024-06-28 | 4db5fa5965 | Refactor +tests | Refactoring trait Numeric -> Gradable | 687 | none | – |
| 2024-06-28 | 85ebe899ae | Fix +tests | Fixing bug in topological sort! | 767 | none | – |
| 2024-06-28 | c42d480df7 | Other +tests | WIP: Finished fiddling around. Given up try to implement diamond shaped graphs implicity with operators. This will have to be a dedicated fork operator. | 775 | none | – |
| 2024-06-28 | ce7fb53234 | Other +tests | The topological sort appears to be not runnng back prop on a converging branches. | 785 | none | – |
| 2024-06-28 | fa1acbd45f | Feature | Created working version. This issue is related to some issue with rvalue and the reference semantics of the Value wrapper. | 784 | none | – |
| 2024-06-27 | df7995dd98 | Fix +tests | Simple failing test to identify the relu * relu rvalue issue. | 778 | none | – |
| 2024-06-27 | 06f77e0486 | Fix +tests | Trying to isolate the failing problem. | 774 | none | – |
| 2024-06-27 | 66ba6e93b8 | Fix +tests | Relu Fixed by changing equality checks to pointer address rather than value. | 735 | none | – |
| 2024-06-27 | 43eeea496f | Feature | Add a failing test_add_mul_relu | 719 | none | – |
| 2024-06-27 | aec05c173d | Fix +tests | Fixing from float_32 as from scalar. test_add_mul_pow passing. | 689 | none | – |
| 2024-06-19 | 899ce241b0 | Build and chores | Update Makefile | 695 | none | – |
| 2024-06-19 | cf8f899a59 | Docs | Update README.md | 695 | none | – |
| 2024-06-19 | 84939da4cb | Docs | Update LICENSE | 695 | none | – |
| 2024-06-19 | d96288e6e6 | Build and chores | Update pyproject.toml | 695 | none | – |
| 2024-06-19 | c4d699f2a2 | Docs | Update README.md | 695 | none | – |
| 2024-06-19 | 67376fd8d0 | Fix +tests | Tweaking tests for a little demo. | 695 | none | – |
| 2024-06-19 | 93b125df7d | Other +tests | Leaving failing test with the from_scalar in numeric. | 685 | none | – |
| 2024-06-19 | c47909dc67 | Feature | Adding pytorch check to test_grad | 634 | none | – |
| 2024-06-19 | c954d64c3b | Other | Renabling the pytorch sanity test. | 617 | none | – |
| 2024-06-19 | b0f4abb1ad | Other | Moving the prev into out c'tor as the value semantics of Value don't effect the internal RCs. | 621 | none | – |
| 2024-06-19 | 120d57a1dd | Other | Updating relu. | 623 | none | – |
| 2024-06-19 | 6304e7ef6e | Refactor | Starting on some notes for pow (and the need to support conversion from scalar) | 630 | none | – |
| 2024-06-19 | 9730148f2e | Other | Tidied | 611 | none | – |
| 2024-06-19 | 7047271b66 | Other | Backward pass working! | 671 | none | – |
| 2024-06-18 | 39efc05c93 | Refactor +tests | WIP: Updating value to use RC. Final detail is to fix the topological sort in backward. | 709 | none | – |
| 2024-06-18 | 1260fd3f59 | Feature | Adding some docs to the RC. | 1,015 | none | – |
| 2024-06-18 | aa7c5b106c | Other +tests | Moving the code around, added some notes. | 997 | none | – |
| 2024-06-17 | 6fb7ba2a56 | Other | Updating comments in Value. | 960 | none | – |
| 2024-06-17 | 9c946aaa45 | Refactor | Refactored tests name. | 954 | none | – |
| 2024-06-17 | 064785bf83 | Fix | Leaving a failing unit test. | 954 | none | – |
| 2024-06-17 | 96595fd5e4 | Feature | Adding some TODO notes on where to add the RCs next time. | 954 | none | – |
| 2024-06-17 | 7953ab347b | Feature | Adding a move test for RC. | 945 | none | – |
| 2024-06-17 | 3d041bda37 | Feature +tests | Adding get_data_copy and get_ref_count util functions to remove the need for explicit lifetimes. | 930 | none | – |
| 2024-06-17 | cf0473d186 | Other +tests | Set link to docs on explicit lifetimes. | 887 | none | – |
| 2024-06-17 | 264fba6770 | Refactor +tests | Found strange bug in the lifetime of my RC test. | 890 | none | – |
| 2024-06-17 | 964bc6596d | Feature | Added a basic rc | 870 | none | – |
| 2024-06-17 | 9c57569b2b | Refactor | WIP: Coming to the slow realisation, that backward will only work if we wrap data and grad in pointers. | 834 | none | – |
| 2024-06-17 | fd7223f3ac | Other +tests | WIP: Backward not capturing a reference to self. | 812 | none | – |
| 2024-06-17 | 18cc564002 | Feature | Adding torch and the code adapted from Karpathy's test sanity check. | 753 | none | – |
| 2024-06-17 | 29c2cd6f80 | Feature | Adding concept of zero and one to Numeric trait. | 649 | none | – |
| 2024-06-17 | 33342eb76e | Feature | Adding an mul and relu. | 620 | none | – |
| 2024-06-17 | 9e322104ec | Other | Moving around code, reading Karpathy's code to align names. | 565 | none | – |
| 2024-06-17 | 57a36d36f0 | Refactor | Tweaking printing logic. | 516 | none | – |
| 2024-06-14 | 5afd3fdad4 | Feature | WIP: Adding NumericFloat32 | 498 | none | – |
| 2024-06-14 | f94889b52b | Other | WIP: Messing about with trying to get a window showing from vscode devcontainer docker in wsl (wslg) host. | 418 | none | – |
| 2024-06-14 | 54bacfd27b | Other | Removing settings.json as modular home path is default anyway. | 485 | none | – |
The latest 50 of 76 commits; all of them are in the JSON.