About
About this course
AI Tutorial is a free, public course that takes a STEM graduate from gradient descent to the Jacobian lens by having them build and run each idea.
Who made it
AI Tutorial is a project of Beneficus AI, written by Swami Sethuraman. Beneficus AI works on AI for education and social good; this course is free and will stay free.
The text and code were drafted with Claude, Anthropic’s AI model, working from a written specification. Nothing is taken on trust for that reason: see the next section for how each page is checked.
How it is built and checked
- A static site. Every page is plain HTML with JavaScript modules. There is no server and no build step.
- Demos run in JavaScript on one small tensor and automatic-differentiation library,
lib/tinygrad.js. Every operation in it is tested against finite differences. - Exercises run real Python and NumPy in your browser through Pyodide. It downloads the first time you press “Run tests” (about 10 MB) and never sends your code anywhere.
- Tests. A module is published only when automated browser tests show that its page loads without errors at laptop and phone width, that its reference solution passes its own hidden tests, and that a plausible wrong answer fails them.
- Sources. Each module ends with standard references for its formulas, and every gradient formula is also verified numerically.
Licence
The text and figures are released under Creative Commons Attribution 4.0 (CC BY 4.0): share and adapt them for any purpose, with credit. The code, including the exercises and tinygrad.js, is released under the MIT licence.
The site loads four open-source libraries: KaTeX and CodeMirror (MIT), Pyodide (MPL 2.0) and NumPy (BSD 3-Clause).
The handwritten digits in module 6 are a subset of the Optical Recognition of Handwritten Digits dataset by E. Alpaydin and C. Kaynak (UCI Machine Learning Repository, 1998, doi:10.24432/C50P49), used under CC BY 4.0. The images were taken from the copy distributed with scikit-learn and are unmodified apart from the selection of 850 of them.
Privacy
There are no trackers, no analytics, no cookies and no login. Your progress and your draft code are kept in your browser’s local storage on your own device and are never uploaded. The libraries above are fetched from the jsDelivr content delivery network, which, like any web host, sees the request your browser makes for them.
Reporting errors
If a formula, an explanation or an exercise is wrong or unclear, please say so. Tell us which module and what you expected to see.
Contact: swami@swsethuraman.org. Corrections and suggestions are welcome.