Skip to main content
Open & Structured AI Engineering Curriculum

From Zero to Building Your Own AI.

A complete, free learning roadmap that takes you from Python and mathematics to neural networks, Transformers, and training your own language models — step by step.

9 Learning Phases

Phase 0 – Phase 8

14 Hands-on Projects

From matrices to LLMs

Free Learning Resources

Open lectures & textbooks

Curriculum Architecture Map
Select any node to inspect
Stage 05 · Phase 5LLM Engineering
Step 6 of 9

Transformers

Implement scaled dot-product self-attention, multi-head causal masking, RoPE positional encodings, RMSNorm, and SwiGLU blocks.

Core Build:Decoder-Only Mini GPT Architecture from Scratch
Path: Python → Math → ML → DL → NLP → Transformers → LLMsFull curriculum index →
The 9-Phase Curriculum

One Roadmap. From Your First Line of Python to Your First LLM.

Structured into nine progressive phases spanning approximately 78 weeks at the planned study pace. Each phase builds the exact mathematical and engineering prerequisites required by the next.

Planned Curriculum Horizon · 78 Weeks TotalCurrently inspecting: Phase 5 (10 weeks · Weeks 35–44)

Key Topics Covered

  • Python memory model, generators, and object-oriented design
  • Vectorized broadcasting and memory layout in NumPy
  • Testing, profiling, and reproducible scientific environments

Milestone Deliverable

Vectorized Data & Tensor Utility Toolkit

Complete 9-Phase Architectural Curriculum

Spanning ~78 weeks from initial Python scripts to quantized LLM inference systems.

View Complete Roadmap
Learning Methodology

Learn. Build. Track. Repeat.

Mastery in artificial intelligence comes from pairing mathematical intuition with hands-on implementation. Our four-part methodology eliminates tutorial fatigue.

01Step 1 — Prerequisite-Ordered Curriculum

Step 1 — Follow Your Path

Explore structured AI learning phases arranged in prerequisite order so you never encounter unexplained mathematical symbols or architectural leaps.

Leads directly into Step 02
Dependency Chain VerificationSpecimen 01
  • Phase 1 · Matrix Calculus & Gradients

    Prerequisite for Backpropagation

  • Phase 3 · Reverse-Mode Autodiff

    Prerequisite for Transformer Training

  • Phase 5 · Causal Self-Attention

    Unlocks Pretraining & Alignment

02Step 2 — Open-Access University & Research Materials

Step 2 — Learn for Free

Access carefully curated free courses, lectures, documentation, and educational resources from leading universities and AI researchers.

Leads directly into Step 03
Verified Open Syllabus IndexSpecimen 02
  • MIT 18.06SC Linear Algebra

    Full video lectures & problem sets · Free

  • Karpathy · Neural Networks: Zero to Hero

    Code-first deep learning series · Free

  • Stanford CS336 · Language Modeling

    Lecture notes & system assignments · Free

03Step 3 — From-Scratch Engineering Implementations

Step 3 — Build Real Projects

Practice what you learn through coding projects, from basic mathematical models to your own Transformer, without hiding behind high-level wrappers.

Leads directly into Step 04
Implementation Verification SpecSpecimen 03
  • 01 · Pure-Python Matrix Engine

    Zero external ML libraries

  • 03 · Scalar & Tensor Autograd Engine

    Custom backward() pass verification

  • 05 · Decoder-Only Mini GPT

    Causal Multi-Head Attention + RoPE

04Step 4 — Milestones & Concept Checklists

Step 4 — Track Your Progress

Use interactive checklists and learning milestones to stay organized across long-horizon study sessions.

Completes the phase mastery cycle
Phase Milestone LedgerSpecimen 04
  • Derive scaled dot-product attention gradients

    Phase 5 · Mathematical Checkpoint

  • Verify causal mask prevents future token leakage

    Phase 5 · Implementation Unit Test

  • Train 25M parameter model to target validation loss

    Phase 6 · Pretraining Milestone

Platform Capabilities

Everything You Need to Go Beyond AI APIs.

Calling an external API takes five lines of code; understanding why gradients stabilize, how tokenizers compress text, and how attention heads route information requires a true engineering workbench.

01 · Curriculum ArchitectureCore Architecture · Full View in Stage 3

Structured Roadmap

A progressive curriculum with prerequisites and detailed objectives that connects foundational mathematics directly to modern Transformer engineering.

02 · Open EducationVerified Links · Full Library in Stage 4

Curated Free Courses

High-quality free learning resources from institutions and educators such as Harvard, MIT, Stanford, Google, Hugging Face, and Andrej Karpathy.

03 · Implementation First14 Projects · Full Specs in Stage 6

Hands-on Projects

Practical implementations that teach users how algorithms and architectures work internally—building matrices, autograd, and attention from scratch.

04 · Granular MasteryPlanned Feature · Stage 3 & 5

Interactive Checklists

Track completed lessons, modules, courses, and projects with fine-grained topic verification checklists.

05 · Adaptive PacingPlanned Feature · Stage 5

Personalized Learning

Plan learning based on study hours and experience level—whether you are starting with Python or skipping ahead to Transformer internals.

06 · Milestone TelemetryPlanned Feature · Stage 5

Learning Dashboard

Monitor milestones, project progress, and completed learning phases in a calm, distraction-free study workspace.

Practical Engineering Progression

Don't Just Learn AI. Build It.

Every theoretical phase culminates in a hands-on implementation project. Progress from writing matrix multiplication in pure Python to pretraining your own language model from random weights.

Tier I · Foundational Mathematical & Optimization Engines

Phases 1 – 2
Phase 1 · Mathematics for AIBeginner · Foundational

Implement 2D matrix multiplication, transposes, dot products, and Gaussian elimination in pure Python without external libraries.

PythonPure MathUnit Testing
O(n³) gemm · shape validation · numerical stability
Phase 2 · Machine LearningBeginner · Foundational

Derive and code analytical normal equations alongside batch and mini-batch gradient descent with L2 regularization.

PythonNumPyGradient Descent
MSE loss surface · analytical vs iterative convergence

Tier II · Computational Graphs & Deep Learning Internals

Phase 3
Phase 3 · Deep LearningIntermediate

Build a dynamic reverse-mode autodiff engine that tracks operations on a directed acyclic graph and computes exact gradients via the chain rule.

PythonComputational GraphsBackpropagation

Topological sort · local Jacobian-vector products

Guide
Phase 3 · Deep LearningIntermediate

Construct a multi-layer perceptron with ReLU/GELU activations, He initialization, softmax cross-entropy loss, and momentum optimizers.

NumPyActivation FunctionsCross-Entropy

Forward caching · vectorized backward pass · weight decay

Guide

Tier III · Transformer Architecture & LLM Pretraining Capstones

Phases 5 – 6
Project 05 · AdvancedPhase 5 · Transformers From Scratch

Mini GPT Architecture

Implement a complete decoder-only Transformer with causal multi-head self-attention, rotary embeddings, RMSNorm, and autoregressive sampling.

Primary Stack & Spec
PyTorchMulti-Head AttentionRoPEBPE Tokenizer

[B, T, d_model] residual stream · causal mask · KV cache

Project 06 · Advanced · CapstonePhase 6 · Training Your Own LLM

Your Own Pretrained LLM

Pretrain a custom language model from random initialization on a curated text corpus with gradient accumulation, checkpointing, and perplexity tracking.

Primary Stack & Spec
PyTorchMixed Precision (BF16)Cosine LRToken Shards

End-to-end pretraining loop · validation loss curves

6 Featured Builds Shown · 14 Complete Projects Across All 9 Phases

Explore the complete 14-project engineering platform with interactive checklists, code examples, testing suites, personal notes, and GitHub repository portfolio tracking.

Explore All 14 Projects
Verified Open-Access Library

The Best Learning Resources. Without the Paywall.

World-class AI education is already publicly available from leading universities and researchers—if you know what order to study it in. Every recommended resource is 100% free.

Phase 0100% Free

Harvard University

CS50's Introduction to Programming with Python

A comprehensive introduction to Python programming, covering functions, variables, control flow, exceptions, libraries, unit testing, file I/O, and object-oriented programming.

Phase 1100% Free

MIT OpenCourseWare

Linear Algebra (18.06SC)

A university-level linear algebra course covering vector spaces, matrices, linear systems, eigenvalues, and related topics.

Phase 2100% Free

Google

Machine Learning Crash Course

Google's practical, interactive introduction to machine learning fundamentals, linear and logistic regression, gradient descent, generalization, regularization, and neural networks.

Phases 3, 4, 5100% Free

Andrej Karpathy

Neural Networks: Zero to Hero

A code-first introduction to neural networks covering automatic differentiation, backpropagation, language models, and GPT implementations.

Phase 4100% Free

Hugging Face

Hugging Face LLM Course

Comprehensive open interactive course covering Transformer models, tokenization pipelines, datasets, fine-tuning, and the open-source LLM ecosystem.

Phases 5, 6, 8100% Free

Stanford University

CS336 — Language Modeling from Scratch

Graduate-level Stanford course walking through every aspect of building language models from scratch: Transformer architecture, tokenization, pretraining data pipelines, GPU systems, parallelism, and scaling laws.

External course links open directly on the official university or educator portals—no sign-up walls or middleman fees.

Browse Free Courses
Study Organization & Telemetry

Your Learning Journey, Clearly Organized.

Long-horizon technical study succeeds when your next milestone is unmistakable. Open your live learning dashboard to track phases, courses, study sessions, and weekly tasks—or explore the illustrative sample state below.

Study Workspace · Preview
Illustrative Sample Preview · Open Dashboard for Live Tracking

Phase Completion Progress (Sample State)

5 of 9 Phases Completed · Phase 5 Active
P0100%

Python

P1100%

Math

P2100%

Classical ML

P3100%

Deep Learning

P4100%

NLP & Tokens

P568%

Transformers

P60%

Pretraining

P70%

Alignment

P80%

LLM Systems

Current Learning MilestonePhase 5

Implementing Causal Multi-Head Self-Attention & RoPE

Module 3 of 5 · 68% Complete

Next Action Item:

Verify causal attention mask tensor shapes on sequence length T=512

Course Progress Indicators

Karpathy — Neural Networks: Zero to Hero6 / 7 lectures
Stanford CS336 — Language Modeling from Scratch4 / 12 lectures

Project Completion Checklist

4 / 6 Sample
  • Matrix Operations Engine
    P1
  • Linear Regression From Scratch
    P2
  • Automatic Differentiation Engine
    P3
  • Neural Network From Scratch
    P3
  • Mini GPT Architecture (In Progress)
    P5
  • Your Own Pretrained LLM
    P6

Sample preview state · Track your own 14 milestones in /dashboard.

Weekly Cadence

Target: 10.0 hrs / wk

Mon
1.5h
Tue
2.0h
Wed
1.0h
Thu
2.0h
Fri
1.0h
Sat
2.0h
Sun
0.0h
Sample Weekly Rhythm

9.5 hrs (Sample)

Designed for Every Starting Point

Who Is This For?

Whether you are writing your first Python function or already deploying applications with LLM APIs, the curriculum begins with foundational concepts and gradually progresses toward advanced systems.

Learner Path 01

Complete beginners who know nothing about AI

Background: Starting from zero programming or calculus experience

Starts at Phase 0 with Python fundamentals and builds mathematical intuition step by step before introducing a single neural network layer.

→Start at Phase 0 · Programming Foundations
Learner Path 02

Programmers transitioning into machine learning

Background: Experienced in software engineering, web, or backend systems

Bridges the gap between traditional deterministic software and probabilistic optimization, linear algebra, and tensor computation.

→Start at Phase 1 · Mathematics for AI
Learner Path 03

Students interested in AI research

Background: Studying computer science, mathematics, physics, or engineering

Connects textbook derivations directly to clean, readable PyTorch implementations of attention, autograd, and pretraining loops.

→Start at Phase 2 or Phase 3 based on math background
Learner Path 04

Developers who use AI APIs but want to understand the underlying technology

Background: Building applications with prompt engineering or LLM SDKs

Opens the black box—showing how tokenization, KV caching, RoPE, temperature sampling, and fine-tuning actually work under the hood.

→Start at Phase 3 · Deep Learning Internals
Learner Path 05

Engineers who want to build and train custom language models

Background: Familiar with PyTorch and basic deep learning concepts

Focuses deeply on decoder-only Transformer architecture, data curation, BF16 pretraining, LoRA/DPO alignment, and quantized inference.

→Start at Phase 5 · Transformers From Scratch

This roadmap is a self-paced educational guide focused on genuine mathematical and engineering comprehension—not a commercial bootcamp or credentialing program.

Begin at Phase 0 or Your Current Level

Your First AI Model Starts with Understanding.

No shortcuts. No black boxes. Just a clear path from the fundamentals to building real models.