Set up a working environment, run the repository, and learn the lesson workflow before choosing a specialization.
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.
npx skills add rohitg00/ai-engineering-from-scratch > Use start-learning to begin the course.
Your agent becomes your tutor: placement quiz, personalized path, lessons taught interactively in your terminal.
“Obsessed with the AI Engineering from Scratch repo.” - AI engineer at Google
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.
Start with linear algebra, then move through optimization, probability, classical ML, and neural networks.
Build prompting, structured outputs, embeddings, retrieval, evaluation, fine-tuning, serving, and observability.
Build the observe, think, act cycle by hand with tool dispatch, real observations, budgets, and explicit stop conditions.
Build agent state-graph orchestration with typed nodes, conditional edges, checkpoints, interrupts, and resumable execution.
Wrap the model with instructions, durable state, scope, runtime feedback, verification, review, and handoff.
Build, secure, verify, and operate stateless MCP systems from wire envelopes through release gates.
Build, invoke, route, secure, evaluate, package, and verify portable skills in real agent hosts.
Choose a certification route, complete practical labs, keep learner-owned artifacts, and use original assessments.
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.
Not affiliated with, endorsed by, sponsored by, or authorized by Anthropic. This curriculum does not issue credentials or guarantee a passing result.
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