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

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
View on GitHub

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

View on GitHub

Related repositories

Similar repositories that may be relevant next.

OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️