{"id":26678533,"url":"https://github.com/milansuk/cmicrograd","last_synced_at":"2025-07-21T15:05:18.574Z","repository":{"id":78840811,"uuid":"586572204","full_name":"MilanSuk/cmicrograd","owner":"MilanSuk","description":"C implementation of micrograd","archived":false,"fork":false,"pushed_at":"2023-01-10T14:33:57.000Z","size":31,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-19T05:37:29.691Z","etag":null,"topics":["micrograd"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MilanSuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-01-08T16:01:10.000Z","updated_at":"2025-03-11T02:17:40.000Z","dependencies_parsed_at":"2023-03-12T05:58:32.566Z","dependency_job_id":null,"html_url":"https://github.com/MilanSuk/cmicrograd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MilanSuk/cmicrograd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilanSuk%2Fcmicrograd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilanSuk%2Fcmicrograd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilanSuk%2Fcmicrograd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilanSuk%2Fcmicrograd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MilanSuk","download_url":"https://codeload.github.com/MilanSuk/cmicrograd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MilanSuk%2Fcmicrograd/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266324457,"owners_count":23911226,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-21T11:47:31.412Z","response_time":64,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["micrograd"],"created_at":"2025-03-26T05:16:08.477Z","updated_at":"2025-07-21T15:05:18.561Z","avatar_url":"https://github.com/MilanSuk.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# cmicrograd\ncmicrograd is C implementation of Andrej Karpathy's([Twitter](https://twitter.com/karpathy)) micrograd([GitHub repo](https://github.com/karpathy/micrograd)).\n\n\nThis is my first interaction with neural networks. The original Python code is well explained in the video [\"The spelled-out intro to neural networks and backpropagation\"](https://www.youtube.com/watch?v=VMj-3S1tku0) and [notebooks](https://github.com/karpathy/nn-zero-to-hero/tree/master/lectures/micrograd). Thanks, Andrej, I learned a lot!\n\n\nMore visual explanations of what is a neural network, gradient descent and how backpropagation works can be found in [this series](https://www.youtube.com/playlist?list=PLZHQObOWTQDNU6R1_67000Dx_ZCJB-3pi).\n\n\nThe training loop is free of malloc() and free() for speed. The 'topo_mt.h' executes NN in multiple threads.\n\n\n\n## Current state\n- All tests passed\n- under 1K LOC\n- Linux only\n\n\n\n## TODO\n- Windows OS support\n- read/write parameters on disk\n- add example - https://github.com/karpathy/micrograd/blob/master/demo.ipynb\n- more examples(recognizing handwritten numbers/letters, etc.)\n\n\n\n## Compile \u0026 Run\n\u003cpre\u003e\u003ccode\u003egit clone https://github.com/milansuk/cmicrograd\ncd cmicrograd/linux\nsh build_r\n./cmicrograd_r\n\u003c/code\u003e\u003c/pre\u003e\n\n\n\n## Repository\n- /src\n    - main.c - runs examples\n    - examples.h\n    - value.h - Value is node in neural netowrk\n    - mlp.h - MLP neural network\n    - topo.h - orders Values for execution(training)\n    - topo_mt.h - executes Values in multiple threads\n    - std.h - bridge to operation systems\n- /linux - compile/run/debug scripts for Linux OS\n\n\n\n## Author\nMilan Suk\n\nEmail: milan@skyalt.com\n\nTwitter: https://twitter.com/milansuk/\n\n\n\n## Contributing\nYour feedback and code are welcome!\n\nFor bug reports, please use GitHub's issues.\n\ncmicrograd is licensed under **Apache v2.0** license.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilansuk%2Fcmicrograd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilansuk%2Fcmicrograd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilansuk%2Fcmicrograd/lists"}