AI

AI Engineering from Scratch: The 49K-Star Open Source Curriculum That Teaches You to Build AI, Not Just Use It

ai-engineering-from-scratch by Rohit Ghumare went from zero to 49,000 GitHub stars in 5 months — the fastest-growing AI curriculum on the internet. 511 lessons, 20 phases, ~329 hours, MIT licensed. Every lesson ships a reusable artifact: prompts, skills, agents, MCP servers. The 'Build It, Then Use It' method makes you implement backpropagation in raw NumPy before touching PyTorch. Complete review: curriculum, methodology, learning paths, and honest caveats.

AI Engineering from Scratch: The 49K-Star Open Source Curriculum That Teaches You to Build AI, Not Just Use It

Key takeaways

  • ai-engineering-from-scratch (rohitg00) went from launch (March 2026) to 49,000 GitHub stars in ~5 months — among the fastest-growing AI curricula ever. MIT licensed, 511 lessons across 20 phases (~329 hours), covering Python, TypeScript, Rust, and Julia. The pitch: 84% of students use AI tools, but only 18% feel prepared to use them professionally — this closes that gap.
  • The curriculum is a progressive stack: Phase 0 Setup → Math Foundations (linear algebra, SVD, Fourier) → ML Fundamentals → Deep Learning Core → Computer Vision → NLP → Speech → Transformers → Generative AI → RL → LLMs from Scratch (pretrain a 124M GPT) → LLM Engineering (RAG, LoRA) → Multimodal → Tools & Protocols (MCP) → Agent Engineering (42 lessons) → Autonomous Systems → Multi-Agent & Swarms → Infrastructure & Production → Ethics/Safety → 85 Capstone lessons (17 full products).
  • The signature method is 'Build It, Then Use It': every algorithm is implemented twice — first in raw Python/NumPy with no frameworks (killing black-box magic), then with industry libraries (PyTorch etc.), diffing outputs to see how they work. The six-beat lesson loop: Motto → Problem → Concept → Build It → Use It → Ship It.
  • Every lesson ships a real artifact: the repo produces 511 reusable assets (396 skills, 99 prompts, agents, MCP servers) you can load into AI coding assistants. Evidence-based learning: you keep execution proof (commands, exit codes, output) as you go. Artifacts over certificates.
  • Creator Rohit Ghumare is a London-based DevRel (Head of DevRel at Motia.dev, CNCF Ambassador, Docker Captain, Google Developer Expert, Claude & Devin Ambassador) and creator of Agent Memory (iii-engine, 27k stars, 72k monthly downloads). The site (aiengineeringfromscratch.com) adds a 277-term glossary, NLLB-200 machine translations, a 6-volume EPUB/PDF book series, and a Claude Certification Academy (33 lessons, 295 questions, prep for all 4 official Claude credentials).

Key answers

What is ai-engineering-from-scratch?

An open-source (MIT), repo-driven AI engineering curriculum by Rohit Ghumare: 511 lessons across 20 phases, ~329 hours, covering math foundations through autonomous agent swarms. Languages: Python, TypeScript, Rust, Julia. It grew to 49,000 GitHub stars within ~5 months of its March 2026 launch, and every lesson produces a reusable artifact (prompt, skill, agent, or MCP server).

How is it different from Karpathy's courses or Hugging Face's agent course?

Karpathy's nn-zero-to-hero has exceptional video depth but focuses narrowly on neural network internals up to GPT-2. Hugging Face's Agents Course is great on modern frameworks but skips math, classical ML, and deep learning foundations. This curriculum covers the entire stack — math → ML → deep learning → LLMs → agents → swarms → infrastructure → safety — plus 2026-native topics like MCP protocols and custom agent runtimes.

What is the 'Build It, Then Use It' method?

Every algorithm is taught twice: 'Build It' implements the raw math using only Python/NumPy and the standard library (no frameworks), so you understand every tensor operation by hand. 'Use It' then implements the same algorithm with industry-standard libraries (PyTorch, scikit-learn) and you diff the outputs. No black-box magic: you've literally built the thing before you use the tool.

Which phase should I start at?

The repo provides a find-your-level placement quiz (10 questions). Rough paths: complete beginners start Phase 0 (~306h); software engineers with Python start Phase 1 Math Foundations (~270h); ML engineers start Phase 3 Deep Learning Core (~200h); deep learning practitioners start Phase 10 LLMs from Scratch (~100h); senior engineers wanting agents only start Phase 14 Agent Engineering (~60h). There are also focused micro-paths for MCP (17 lessons) and Agent Skills (5 lessons).

Is it really free and what do I get at the end?

Fully free and MIT licensed — no paywall, no email wall. Instead of a certificate you build a portfolio of 511 reusable artifacts (396 skills, 99 prompts, agents, MCP servers) that load directly into AI coding assistants. The website adds a 277-term glossary, machine-translated lessons (Spanish, Chinese, Hindi, Arabic, Turkish), a 6-volume book series in EPUB/PDF, and a Claude Certification Academy preparing for the 4 official Claude credentials (CCAO-F, CCDV-F, CCAR-F, CCAR-P).

AI Engineering from Scratch: The 49K-Star Open Source Curriculum That Teaches You to Build AI, Not Just Use It

In March 2026, a London-based DevRel named Rohit Ghumare published an open-source curriculum called ai-engineering-from-scratch. Five months later, it had crossed 49,000 GitHub stars — one of the fastest-growing AI learning resources ever created.

The opening stat explains why it resonated: 84% of students already use AI tools. Only 18% feel prepared to use them professionally.

This curriculum is the attempt to close that gap — with 511 lessons, zero paywalls, and a method that makes you build the algorithm before you’re allowed to use the library.

The curriculum: a 20-phase stack from math to swarms

The 511 lessons (≈329 hours) are organized as a progressive stack — math at the floor, autonomous agent swarms at the roof:

PhaseFocusLessons
0Setup & Tooling (Git, GPU cloud, Docker, Jupyter)12
1Math Foundations (linear algebra, SVD, Fourier, Bayes)22
2ML Fundamentals (regression, SVMs, KNN, time series)18
3Deep Learning Core (backprop from scratch)13
4Computer Vision (CNNs, YOLO, Stable Diffusion, NeRF, SAM 3)28
5NLP (spaCy, NLTK, Hugging Face)29
6Speech & Audio (Librosa, Whisper)17
7Transformers (attention from masked averages)14
8Generative AI (VAEs, GANs, Latent Diffusion, ControlNet)15
9Reinforcement Learning (Q-Learning, PPO, RLHF reward modeling)12
10LLMs from Scratch (pretrain a 124M GPT!)24
11LLM Engineering (prompting, RAG, LoRA, LangGraph)17
12Multimodal AI25
13Tools & Protocols (MCP, agent skills)23
14Agent Engineering (ReWOO, Reflexion, MemGPT, voice agents)42
15Autonomous Systems (long-horizon agents, STaR, alignment)22
16Multi-Agent & Swarms (A2A, Society of Mind, BFT)25
17Infrastructure & Production (vLLM, FP8, gateways, SOC 2)28
18Ethics, Safety & Alignment (Goodhart, jailbreaks, watermarking)30
19Capstone (17 full products, 9 deep-build tracks)85

The endgame is Phase 19: 17 full-scale products (terminal-native coding agent, codebase RAG, real-time voice assistant) and 9 deep-build tracks (BPE tokenizer, distributed training).

The method: Build It, Then Use It

The signature pedagogy kills black-box magic:

  1. Build It — implement the raw math using only Python/NumPy and the standard library. No frameworks allowed. You write backpropagation by hand before you ever touch PyTorch.
  2. Use It — implement the same algorithm with industry libraries (PyTorch, scikit-learn, Hugging Face) and diff the outputs to see what the framework does under the hood.

Every lesson follows the same six-beat loop: Motto → Problem → Concept → Build It → Use It → Ship It.

And Ship It is literal: each lesson produces a reusable artifact. The full repo yields 511 assets — 396 skills, 99 prompts, agents, and MCP servers — that you can load directly into your AI coding assistant. You graduate with a portfolio, not a certificate.

Evidence-based learning is enforced: you keep execution proof (commands, exit codes, meaningful output) as you go, and only continue when you can explain the output and make one small change without guessing.

The creator: Rohit Ghumare

Ghumare isn’t a random course seller — he’s a heavyweight in the agent-infrastructure world:

  • Head of DevRel at Motia.dev, based in London
  • CNCF Ambassador, CNCF 2025 Marketing Chair, Platform Engineering Ambassador
  • Docker Captain, Google Developer Expert, AWS Community Builder (5 years)
  • Claude Ambassador and Devin Ambassador
  • Creator of Agent Memory (iii-engine): 27k stars, 72k monthly downloads — persistent memory for AI coding agents
  • Also built awesome-claude-code-toolkit, skillkit (universal CLI for AI agent skills), and k8sgames

Why it grew so fast

The “18% preparedness problem” is real and painful: most developers now use AI daily, but few can ship agentic pipelines professionally. This curriculum directly answers that frustration — and it’s free, MIT-licensed, and artifact-driven.

Community reception on Reddit was enthusiastic (“dope,” “Goat”) with healthy skepticism: senior engineers questioned how one person produces 500+ deep lessons without AI-generated slop, and early adopters hit empty folders and broken links in the initial Phase 0 rollout (since fixed). The fair assessment: it’s a remarkable structured map — go deep elsewhere (Karpathy for NN internals, papers for theory) where you need more than breadth.

Learning paths

Your backgroundStart atTime
Complete beginnerPhase 0 (Setup)~306h
Know Python, no MLPhase 1 (Math)~270h
ML engineer, no deep learningPhase 3 (Deep Learning Core)~200h
DL practitioner, no LLMs/agentsPhase 10 (LLMs from Scratch)~100h
Senior engineer, agents onlyPhase 14 (Agent Engineering)~60h

Not sure where you fit? Run the built-in find-your-level placement quiz (10 questions) and it drafts your path. There are also focused micro-paths: MCP (17 lessons) and Agent Skills (5 lessons).

Beyond the repo

The companion site (aiengineeringfromscratch.com) adds:

  • 277-term AI glossary and interactive visual aids
  • NLLB-200 machine translations — Spanish, Chinese, Hindi, Arabic, Turkish
  • 6-volume book series in EPUB/PDF
  • Claude Certification Academy: 33 dedicated lessons, timed mock exams, 295 original questions — prep for all 4 official Claude credentials (CCAO-F, CCDV-F, CCAR-F, CCAR-P), runnable directly via the /claude-certification command

Verdict

ai-engineering-from-scratch is the closest thing to a complete, free, self-serve AI engineering degree in 2026. The Build It/Use It method genuinely works — you can’t claim to understand attention if you’ve written it in NumPy first.

The honest caveats: no video lectures (repo-driven only), breadth over depth in places, and single-author scope limits. But for a structured map from linear algebra to agent swarms — with 511 artifacts you keep forever — it’s the best free deal in AI education right now.

Clone it, run the placement quiz, and start building. 🛠️