Ai Engineering From Scratch
FreeLearn it. Build it. Ship it for others.
About Ai Engineering From Scratch
AI Engineering from Scratch is a free, open-source curriculum (MIT license) that builds every core AI algorithm from the ground up. It consists of 503 lessons across 20 phases, covering topics from linear algebra to autonomous agents, in Python, TypeScript, Rust, and Julia. Each algorithm is constructed from raw math before any framework is introduced, ensuring deep understanding of underlying principles. Lessons are authored with AI assistance and human-reviewed, with citations to primary sources (RFCs, specs, research papers). The curriculum runs entirely on your own machine with no paywall or signup required. The website is deliberately plain (hand-written HTML, CSS, and vanilla JavaScript) and hosted on Vercel. As of now, the GitHub repository has over 25,457 stars.
Key Features
Pros & Cons
- Comprehensive 503-lesson curriculum covering full AI spectrum
- Free and open source with no gated content or upsells
- Builds understanding from raw math, not just API usage
- Supports four programming languages
- Human-reviewed lessons with citations to original sources
- Every lesson yields a practical artifact you keep
- Runs locally on your own machine with full control
- No video lessons – text and code only
- Requires strong self-discipline and independent problem-solving
- May be challenging for absolute beginners without math background
- Deliberately plain website design with no visual aids
- No interactive exercises or graded assignments