ai-engineering-from-scratch: Learn AI by Building It

Summary
A free, MIT-licensed curriculum that teaches AI engineering through runnable lessons and hands-on artifacts. It covers foundations through LLMs, agents, protocols, and production, with paths for beginners and experienced developers.
At a glance
- Language
- Python
- License
- MIT
- Stars
- 62.9k
- Forks
- 10.8k
- Added to OSRepos
- May 25, 2026
- Last analyzed
- October 3, 2026
Topics
Click on any tag to explore related repositories
Use at your own risk
OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.
Overview
ai-engineering-from-scratch is a hands-on curriculum for learning how AI systems work and how to build them. Its lessons emphasize implementing concepts from first principles, running code, and producing reusable artifacts rather than only consuming explanations or calling APIs.
The material spans mathematical and machine-learning foundations through generative AI, LLM engineering, agents, MCP, and production topics. It suits learners who want a structured route from fundamentals to practical systems, as well as developers who want to focus on a particular domain or learning path.
Key Features
- Structured curriculum organized into 20 phases, from setup and math to production and capstone projects.
- Practical lessons pair explanations with code, exercises, and artifacts such as prompts, skills, agents, and MCP servers.
- Covers machine learning, deep learning, computer vision, NLP, speech, transformers, generative AI, reinforcement learning, and LLM applications.
- Includes focused routes for agent engineering, MCP, Agent Skills, coding agents, and certification preparation.
- Provides runnable code in Python, TypeScript, Rust, and Julia, depending on the lesson.
- Offers a website, repository-based lessons, AI tutor skills, and downloadable book editions.
Use Cases
- A learner with programming experience can follow the curriculum from math and ML basics toward building AI applications.
- An application developer can study targeted lessons on prompts, RAG, evaluation, tool use, and production LLM systems.
- An engineer exploring agents or MCP can use the focused paths and build working examples alongside the concepts.
- A student or instructor can use the lessons, runnable examples, and artifacts as a structured self-study or teaching resource.
Project Facts
- Language: Python
- License: MIT
- Stars: 62.9k
- Forks: 10.8k
- Topics: agents, ai, ai-agents, ai-engineering, computer-vision, course, deep-learning, from-scratch, generative-ai, llm, machine-learning, mcp, nlp, python, reinforcement-learning, rust, swarm-intelligence, transformers, tutorial, typescript
- Archived: No
Getting Started
Clone the repository and run a dependency-free introductory lesson:
git clone https://github.com/rohitg00/ai-engineering-from-scratch.git
cd ai-engineering-from-scratch
python3 phases/01-math-foundations/01-linear-algebra-intuition/code/vectors.py
See the README for setup guidance, learning paths, and the website option.
Considerations
- The curriculum is broad and substantial, so learners may prefer to choose a phase or focused path rather than attempt every lesson at once.
- Some lessons use different languages or tools; check individual lesson instructions and prerequisites before running them.
- The README recommends programming experience and notes that Python helps. Some later topics may involve heavier software or compute requirements than introductory lessons.
- Certification materials are independent study resources, not affiliated with the relevant organizations, and do not guarantee exam results.
Found this useful?
Share it with someone who would like ai-engineering-from-scratch.
Comparisons
Source repository
Open the original repository on GitHub.
26 counted GitHub visits
Related repositories
Similar repositories that may be relevant next.

antivibe: Learn and Audit Code with Claude Code
August 26, 2026
AntiVibe is a Claude Code skill that turns files or codebases into learning guides or architectural audits. Use it when you want to understand design choices and trade-offs, rather than rely on a generated code summary.

education-agent-skills: Evidence-Grounded Skills for Education AI
August 24, 2026
A library of 165 structured, evidence-grounded skills for education tasks, designed for AI agents and manual use. It supports teachers, school leaders, curriculum designers, and EdTech builders across planning, assessment, learning science, and student study support.

Product-Manager-Skills: Apply Product Management Frameworks with AI
August 20, 2026
A library of structured product management skills that guides AI agents and PMs through discovery, strategy, delivery, research, and lifecycle work. Useful when teams want more consistent, explainable PM outputs across supported agent platforms.

DeepTutor: Build a Personalized AI Learning Workspace
August 7, 2026
DeepTutor is a self-hostable AI tutoring workspace for studying with chat, research, quizzes, and personal learning materials. It combines agent tools, memory, and knowledge retrieval for learners who want more than a single-purpose chatbot.