micrograd is a tiny, educational automatic differentiation engine focused on scalar values, built to show how backpropagation works end to end with minimal code. It constructs a dynamic computation graph as you perform math operations and then computes gradients by walking that graph backward, making it an approachable “from scratch” autograd reference. On top of the core autograd “Value” concept, the project includes a small neural network library that lets you define and train simple models with a PyTorch-like feel, including multilayer perceptrons. The repository is intentionally compact and readable, prioritizing clarity over performance so learners can follow every step of gradient flow and parameter updates. It is commonly used as a learning bridge between basic calculus intuition and full-scale deep learning frameworks, helping developers understand why autodiff libraries behave the way they do.

Features

  • Scalar-valued automatic differentiation engine
  • Dynamic computation graph construction
  • Backpropagation with gradient accumulation
  • Minimal neural network utilities on top
  • PyTorch-like training patterns for small models
  • Reference-style tests and demos for learning

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow micrograd

micrograd Web Site

Other Useful Business Software
MicroStation by Bentley Systems is the trusted computer-aided design (CAD) software built specifically for infrastructure design. Icon
MicroStation by Bentley Systems is the trusted computer-aided design (CAD) software built specifically for infrastructure design.

Microstation enables architects, engineers, and designers to create precise 2D and 3D drawings that bring complex projects to life.

MicroStation is the only computer-aided design software for infrastructure design, helping architects and engineers like you bring their vision to life, present their designs to their clients, and deliver their projects to the community.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of micrograd!

Additional Project Details

Programming Language

Python

Related Categories

Python Artificial Intelligence Software

Registered

2026-03-02