FIG_000 · curriculum v1.0 · 2026 open source · MIT

AI Engineering
from Scratch

Every published lesson. Every phase. Every algorithm built from raw math before a single framework gets imported.

Maintained by Rohit Ghumare and contributors. Run on your own machine.

Learn in your terminal
npx skills add rohitg00/ai-engineering-from-scratch
> Use start-learning to begin the course.
Claude Cursor Codex + any SKILL.md agent

Your agent becomes your tutor: placement quiz, personalized path, lessons taught interactively in your terminal.

FIG_001 · FORWARD PASS y = σ(Wx + b) x h₁ h₂ ŷ
Plate 1 of 3. Every layer of this diagram is a lesson you implement by hand.
Read by engineers and students at
Apple Google Meta OpenAI NVIDIA IIT Bombay University of Windsor

“Obsessed with the AI Engineering from Scratch repo.” - AI engineer at Google

How this works

Most AI material teaches in scattered pieces. A paper here, a fine-tuning post there, a flashy agent demo somewhere else. The pieces rarely line up. You ship a chatbot but can't explain its loss curve. You hook a function to an agent but can't say what attention does inside the model that's calling it.

This curriculum is the spine. Every phase, every published lesson, four languages: Python, TypeScript, Rust, Julia. Linear algebra at one end, autonomous swarms at the other. Every algorithm gets built from raw math first. Backprop. Tokenizer. Attention. Agent loop. By the time PyTorch shows up, you already know what it's doing under the hood.

Each lesson runs the same loop: read the problem, derive the math, write the code, run the test, keep the artifact. No five-minute videos, no copy-paste deploys, no hand-holding. Free, open source, and built to run on your own laptop.

Choose the work you want to do

Each route starts with a real lesson. Learn in the browser or open the same source, code, tests, and artifacts on GitHub.

Build the baseMath and ML foundations

Start with linear algebra, then move through optimization, probability, classical ML, and neural networks.

Ship model featuresLLM engineering

Build prompting, structured outputs, embeddings, retrieval, evaluation, fine-tuning, serving, and observability.

Control every turnLoop engineering

Build the observe, think, act cycle by hand with tool dispatch, real observations, budgets, and explicit stop conditions.

Make state explicitGraph engineering

Build agent state-graph orchestration with typed nodes, conditional edges, checkpoints, interrupts, and resumable execution.

Engineer the runtimeHarness engineering

Wrap the model with instructions, durable state, scope, runtime feedback, verification, review, and handoff.

Focused pathModel Context Protocol (MCP)

Build, secure, verify, and operate stateless MCP systems from wire envelopes through release gates.

Focused pathAgent Skills

Build, invoke, route, secure, evaluate, package, and verify portable skills in real agent hosts.

Practice by evidenceCertification preparation

Choose a certification route, complete practical labs, keep learner-owned artifacts, and use original assessments.

Current Progress
Finished Lessons 0 / 0
Phases 0 / 0
Languages 4
Glossary Terms ···
Curriculum · 20 phases · 511 lessons
Tap a phase to expand its lessons. Each one ships when its math, code, and test are all written.
Complete In progress Planned
The book edition · six volumes
The course, compiled. EPUB and PDF built from the same lessons and attached to every GitHub release. The site stays the living edition. Every chapter links back here for the animated figures, quizzes, and code.
Links resolve to the newest GitHub release · rebuilt by CI from the lessons on every release · how it's made
Independent certification preparation

Prepare by building the real systems

Four Claude certification paths taught the same way as the course: step by step, with interactive labs, practical artifacts, and an AI tutor that works from the GitHub repo.

4 tracks 33 certification lessons 295 original practice questions

Not affiliated with, endorsed by, sponsored by, or authorized by Anthropic. This curriculum does not issue credentials or guarantee a passing result.

Colophon

The entire curriculum is on GitHub. Clone it, fork it, learn at your own pace. No paywall, no signup. Every lesson has runnable code in Python, TypeScript, Rust, or Julia, depending on what fits the concept best.

git clone https://github.com/rohitg00/ai-engineering-from-scratch.git