AI Engineering from Scratch

Learn it. Build it. Ship it for others.

9,389
Stars
1,923
Forks
435
Lessons
20
Phases

The AI Skills Gap

84% of students use AI tools, but only 18% feel prepared professionally

This comprehensive curriculum closes that gap with hands-on, end-to-end AI engineering.

What You'll Build

📚

435 Lessons

Linear algebra to autonomous swarms. Every algorithm built from raw math first.

🛠️

Real Tools

Each lesson ships a reusable artifact: prompts, skills, agents, MCP servers.

🎯

Practical Focus

Build by hand, then use frameworks. Understand what they're doing under the hood.

🌐

Multi-Language

Python, TypeScript, Rust, Julia. Learn the right tool for each job.

The Complete Curriculum

Phase 0
Setup & Tooling
12 lessons
Phase 1
Math Foundations
22 lessons
Phase 2
ML Fundamentals
18 lessons
Phase 3
Deep Learning Core
13 lessons
Phase 4
Computer Vision
28 lessons
Phase 5
NLP
29 lessons
Phase 6
Speech & Audio
17 lessons
Phase 7
Transformers
14 lessons
Phase 8
Generative AI
14 lessons
Phase 9
Reinforcement Learning
12 lessons
Phase 10
LLMs from Scratch
22 lessons
Phase 11
LLM Engineering
15 lessons
Phase 12
Multimodal AI
25 lessons
Phase 13
Tools & Protocols
23 lessons
Phase 14
Agent Engineering
42 lessons
Phase 15
Autonomous Systems
22 lessons
Phase 16
Multi-Agent & Swarms
25 lessons
Phase 17
Infrastructure & Production
28 lessons
Phase 18
Ethics & Alignment
30 lessons
Phase 19
Capstone Projects
17 projects

Get Started in Three Ways

📖 Read First

Open any completed lesson on aiengineeringfromscratch.com or expand a phase under Contents. No setup, no cloning.

💻 Clone and Run

Clone the repository and run the code immediately. Start with the math foundations and build up.

git clone https://github.com/rohitg00/ai-engineering-from-scratch.git
cd ai-engineering-from-scratch
python phases/01-math-foundations/01-linear-algebra-intuition/code/vectors.py

🎯 Find Your Level

Take a 10-question quiz that maps your knowledge to a starting phase and builds a personalized learning path.

/find-your-level - Available in Claude, Cursor, Codex, OpenClaw, Hermes

Every Lesson Ships Something Real

📝

Prompts

Paste into any AI assistant for expert-level help on narrow tasks.

🔧

Skills

Drop into Claude, Cursor, Codex, OpenClaw, Hermes, or any SKILL.md compatible agent.

🤖

Agents

Deploy as autonomous workers - you wrote the loop yourself in Phase 14.

🔌

MCP Servers

Plug into any MCP-compatible client. Built end-to-end in Phase 13.

Start Your AI Engineering Journey Today

Free, open source, MIT licensed. Join thousands of engineers building the future.