kraudy / mojo-grad
Karpathy micrograd implementation in mojo
Over time
2025-01-15 to 2025-05-09; peak 1,411 lines
2025-01-15 to 2025-05-09; 183 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, scikit-learn.
Similar repos
| Repo | Description | Similarity |
|---|---|---|
| witoldszejgis/mojograd | micrograd inspired mojo library | 91% |
| jekel1818/mojo-micrograd | – | 88% |
| gstoner/Mojo_Applications | Mojo Applications | 88% |
| Ayushlm10/micromojograd | Mojo port of Micrograd | 87% |
| dorjeduck/momograd | A Learning Journey: Micrograd in Mojo 🔥 | 87% |
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
2 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
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 published release in the GH Archive days loaded, and no git tag in the clone.
Migrations
| Date | What | From | To | Commit |
|---|---|---|---|---|
| 2025-01-15 | mojo_version | – | 24.6.0 | d97b6f9b65 |
| 2025-01-15 | tooling | none | magic | d97b6f9b65 |
Commits
Commit types: Feature 34% · Fix 14% · Mojo version 1% · Migration 1% · Refactor 20% · Performance 1% · Docs 4% · Build and chores 1% · Merge 1% · Other 26%
| Date | Commit | Type | Subject | Lines of Mojo | Tooling | Mojo version |
|---|---|---|---|---|---|---|
| 2025-05-09 | 360d3d579c | Refactor | Generate uniform row | 1,411 | magic | 24.6.0 |
| 2025-05-09 | 9e52e98118 | Other | Generate random Value list | 1,409 | magic | 24.6.0 |
| 2025-05-08 | 620e4ca3ec | Other | Define linear layer | 1,395 | magic | 24.6.0 |
| 2025-03-13 | 6f31812566 | Feature +tests | Implement tanh | 1,379 | magic | 24.6.0 |
| 2025-03-08 | b343536a0a | Refactor | Move zero grad logic to function | 1,370 | magic | 24.6.0 |
| 2025-03-08 | 893c6321e4 | Refactor | Clean loss calculation process | 1,363 | magic | 24.6.0 |
| 2025-03-08 | b8308a3a52 | Other | Collapse logits and probs logic together | 1,373 | magic | 24.6.0 |
| 2025-03-08 | 5c9acb2c3f | Refactor | Refacto log acummulation and inplace sub method | 1,377 | magic | 24.6.0 |
| 2025-03-08 | 04cda0c9f3 | Other | Refacto loss calculation | 1,371 | magic | 24.6.0 |
| 2025-03-08 | b896c8b32c | Other | Calculate loss | 1,358 | magic | 24.6.0 |
| 2025-03-08 | 4266da701e | Feature | Implement batch processing | 1,349 | magic | 24.6.0 |
| 2025-03-07 | 3163f60321 | Other | Reafacto one_hot to multiple list | 1,327 | magic | 24.6.0 |
| 2025-03-07 | 9ffbfb6c63 | Other | Refacto train logic | 1,322 | magic | 24.6.0 |
| 2025-03-07 | 9b4257f7aa | Other | Make inputs from words | 1,327 | magic | 24.6.0 |
| 2025-03-07 | 505c05230d | Refactor | Convert chars to int | 1,291 | magic | 24.6.0 |
| 2025-03-06 | 915367b855 | Other | Get alphabet from words | 1,287 | magic | 24.6.0 |
| 2025-03-06 | 10152cd2ab | Refactor | Read text and split words | 1,276 | magic | 24.6.0 |
| 2025-03-06 | 3e8a0248d8 | Docs | Read words for makemore | 1,271 | magic | 24.6.0 |
| 2025-03-06 | ffa0a71201 | Other | Actual one_hot function | 1,253 | magic | 24.6.0 |
| 2025-03-06 | 52a305e701 | Feature | Create one_hot functin | 1,242 | magic | 24.6.0 |
| 2025-03-06 | c51c355646 | Fix +tests | Refacto loss check asserts | 1,245 | magic | 24.6.0 |
| 2025-03-06 | 9c47f0fdaa | Fix +tests | Fix normalization acumulation | 1,245 | magic | 24.6.0 |
| 2025-03-05 | e9fb4e5154 | Feature | Create loss check | 1,240 | magic | 24.6.0 |
| 2025-03-05 | 3a8581ad1a | Feature +tests | Create log function | 1,231 | magic | 24.6.0 |
| 2025-03-05 | 1bd918c8e4 | Feature +tests | Add probs test | 1,218 | magic | 24.6.0 |
| 2025-03-04 | 5ea7b4a905 | Feature | Add soft_max function and itrue_div methods | 1,208 | magic | 24.6.0 |
| 2025-03-04 | 6e9ace6388 | Fix +tests | Write exp test | 1,189 | magic | 24.6.0 |
| 2025-03-04 | cfbb9ed90b | Other | Crete exp funcion | 1,176 | magic | 24.6.0 |
| 2025-03-02 | 50846b4199 | Docs | Document neuron and layer description | 1,162 | magic | 24.6.0 |
| 2025-03-02 | 5931ea4e0a | Fix | Fix shuffle | 1,158 | magic | 24.6.0 |
| 2025-02-28 | e8fb09eb25 | Feature +tests | Add suffle logic. Needs fixing | 1,165 | magic | 24.6.0 |
| 2025-02-28 | 170b1c149b | Feature | Add tests | 1,165 | magic | 24.6.0 |
| 2025-02-28 | beda86ca9f | Feature | Add vector size test | 1,154 | magic | 24.6.0 |
| 2025-02-27 | d56f23cf89 | Feature | Add y creation | 1,133 | magic | 24.6.0 |
| 2025-02-27 | 4bd0a9d82a | Fix | Fix pointer error on moons dataset | 1,133 | magic | 24.6.0 |
| 2025-02-25 | 4066142729 | Migration | Update some deprecated functions | 987 | magic | 24.6.0 |
| 2025-02-25 | ba5a91d28f | Other | Refacto backprop for | 987 | magic | 24.6.0 |
| 2025-02-24 | 304cf65d2d | Feature | Implement backprop function for all operations | 1,042 | magic | 24.6.0 |
| 2025-02-24 | 6ff3260f4d | Feature | Implement _backprop for add | 1,023 | magic | 24.6.0 |
| 2025-02-24 | f4d3f2713b | Refactor | Define _func for backward like momograd implementation | 1,015 | magic | 24.6.0 |
| 2025-02-24 | d43794071c | Feature | Add simple beanchmark to training example | 1,007 | magic | 24.6.0 |
| 2025-02-23 | 694e54d3c4 | Refactor | Remove imports from test engine | 1,003 | magic | 24.6.0 |
| 2025-02-23 | 0a5848d2f8 | Docs | Update README.md | 1,007 | magic | 24.6.0 |
| 2025-02-23 | 6a47e44073 | Other | Update mlp comments | 1,007 | magic | 24.6.0 |
| 2025-02-23 | 254e571041 | Docs | Update documentation on nn | 1,020 | magic | 24.6.0 |
| 2025-02-23 | a693c43fb4 | Docs | Document nn logic and refacto some operations | 1,067 | magic | 24.6.0 |
| 2025-02-23 | 94130275af | Feature | Implement ^ on nn lists | 1,097 | magic | 24.6.0 |
| 2025-02-23 | 405f6dfe6d | Refactor | Change visited list to set. Fastgit add .! | 1,105 | magic | 24.6.0 |
| 2025-02-23 | 753f334f62 | Feature | Add sequential id to nodes as suggested by Owen | 1,105 | magic | 24.6.0 |
| 2025-02-23 | d1a2e4b7a7 | Refactor | Remove ArcPointer from topo list | 1,093 | magic | 24.6.0 |
The latest 50 of 183 commits; all of them are in the JSON.