~/talk

From Micrograd to coppergrad

Talkat Rustikon 2026 · 2026-03-19..03-20· [machine-learning, rust]
slides:none on file

Recreates Karpathy’s micrograd micrograd in Rust by implementing a scalar automatic differentiation engine and simple optimizer: defines Value nodes with Option<Box> children, implements Add/Mul via Rust operator traits, renders computation graphs with dot and plotters, and runs backprop + gradient descent on examples. Shows linear-regression math (single-parameter solution W=15.4, two-parameter solved to W=10, B=21), explains ownership issues and why Rc/RefCell and topological sort are needed for a full DAG. Works end-to-end.

AI-written summary · about

  1. 0:00Introduction
  2. 1:07Tiny learning model example
  3. 3:59Loss functions and derivatives
  4. 8:14Adding bias to linear model
  5. 11:04Why calculus isn’t enough
  6. 13:11Automatic differentiation in Rust
  7. 14:57Building AD engine
  8. 20:35Defining operations in Rust
  9. 24:30Implementing backprop
  10. 31:37Summary
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.