TinyTorch from Harvard/ETH: build your own ML framework in pure Python, no GPU needed
lmoroney · x · 2026-10-12
TinyTorch is a free open-source curriculum born from Harvard's CS 249r Machine Learning Systems project, now maintained from ETH Zurich. You build a working ML framework in pure Python across 20 modules — tensors through transformers — using PyTorch's own API, on a 4 GB RAM laptop with no GPU.
- Module 01 has you compute memory footprints before writing matmul; later you measure why Adam needs 3x the optimizer memory of SGD
- Slowness is the point: your Conv2d taking 97 seconds vs PyTorch's 10 ms makes vectorization stick forever
- Team is candid: preview stage, CPU only, learning outcomes unmeasured
- Tip: pick the subsystem that keeps biting you (autograd, attention) and build that module this week
Related event: Harvard and ETH Launch TinyTorch, a Pure-Python ML Framework(2 posts)→
More from coding & agent
- Vibe-codevember day 28: 'Hive', a Three.js creative coding demo built with AI — thespite · 2026-11-29
- 'End user programming!': a three-word verdict on what LLM coding really unlocks — round · 2026-11-29
- Founder claims LLMs aren't even the right ML approach for writing programs — jfischoff · 2026-11-29
- Gmail's official MCP only drafts, never sends: devs slam over-cautious agent design — steipete · 2026-11-29
- a16z's Casado: agents are nowhere near production-ready for long-running tasks — lateinteraction · 2026-11-29
- Quail ships as a DataFusion extension with SQL + AI functions; DuckDB port underway — sh_reya · 2026-11-29