A study plan, from maths to language models

AI
roadmap

Everything it takes to build a Claude-level AI, phase by phase: from the maths basics to training language models with billions of parameters. Each phase lists the papers, books, courses and hands-on projects to work through.

Estimate your timeline
Phases
6
Years, full time
5–7
Research papers
25+
Books
15+
Courses
20+

Move the sliders to match how much time you can give each week. The whole plan takes about 10,000 to 15,000 hours of study.

Timeline estimator

Years
12.0
Months
144
Total hours
12,500

Each phase builds on the one before it. Open a phase to see its books, papers, courses and projects.

The papers behind today's large language models. Read them in this order.

  1. 2017

    Attention Is All You Need

    Vaswani et al. (Google Brain)

    THE transformer paper. Every modern LLM is built on this architecture.

    Read on arXiv
  2. 2018

    BERT: Pre-training of Deep Bidirectional Transformers

    Devlin et al. (Google)

    Established masked language modeling pre-training. Still widely used.

    Read on arXiv
  3. 2020

    Language Models are Few-Shot Learners (GPT-3)

    Brown et al. (OpenAI)

    175B parameter model that showed emergent capabilities at scale.

    Read on arXiv
  4. 2022

    Constitutional AI: Harmlessness from AI Feedback

    Bai et al. (Anthropic)

    How Claude is trained to be helpful and safe. Core Anthropic technique.

    Read on arXiv
  5. 2020

    Scaling Laws for Neural Language Models

    Kaplan et al. (OpenAI)

    Predicts how model loss scales with compute, data, and parameters.

    Read on arXiv
  6. 2022

    Training Language Models to Follow Instructions (InstructGPT)

    Ouyang et al. (OpenAI)

    Introduced RLHF pipeline. The paper that created the 'assistant' paradigm.

    Read on arXiv
  7. 2023

    LLaMA: Open and Efficient Foundation Language Models

    Touvron et al. (Meta AI)

    Best documented open-source LLM. Great for studying architecture.

    Read on arXiv
  8. 2022

    FlashAttention: Fast and Memory-Efficient Exact Attention

    Dao et al.

    IO-aware exact attention. Critical for training long-context models.

    Read on arXiv
  9. 2023

    Direct Preference Optimization (DPO)

    Rafailov et al.

    Simplified RLHF without separate reward model. Widely adopted.

    Read on arXiv
  10. 2021

    LoRA: Low-Rank Adaptation of Large Language Models

    Hu et al. (Microsoft)

    Fine-tune 70B models on a single GPU. Most useful paper for practitioners.

    Read on arXiv
  11. 2017

    Proximal Policy Optimization Algorithms

    Schulman et al. (OpenAI)

    The RL algorithm that powers RLHF training. Must understand.

    Read on arXiv
  12. 2023

    Sparks of Artificial General Intelligence: Early experiments with GPT-4

    Bubeck et al. (Microsoft)

    Fascinating analysis of GPT-4's emergent capabilities and reasoning.

    Read on arXiv
  13. 2023

    GPT-4 Technical Report

    OpenAI

    State-of-the-art LLM. Understand what the frontier looks like.

    Read on arXiv
  14. 2019

    ZeRO: Memory Optimizations Toward Training Trillion Parameter Models

    Rajbhandari et al. (Microsoft)

    Distributed training memory optimization. You need this to train large models.

    Read on arXiv
  15. 2014

    Adam: A Method for Stochastic Optimization

    Kingma & Ba

    The optimizer behind almost every LLM. Understand it at a deep level.

    Read on arXiv
  16. 2021

    RoPE: Rotary Position Embedding

    Su et al.

    Position encoding used in LLaMA, Mistral, Claude. Better than learned.

    Read on arXiv
  17. 2020

    The Pile: An 800GB Dataset of Diverse Text for Language Modeling

    Gao et al. (EleutherAI)

    How to build training datasets at scale. Data quality matters most.

    Read on arXiv
  18. 2024

    Mixtral of Experts

    Jiang et al. (Mistral AI)

    Best open MoE model. Understanding sparse expert routing.

    Read on arXiv

Picked by hand, from beginner to advanced, covering maths, machine learning, deep learning and NLP.

  • Beginner

    Mathematics for Machine Learning

    Deisenroth, Faisal & Ong

    Free PDF. Covers linear algebra, calculus, probability — everything you need.

  • Intermediate

    Deep Learning

    Goodfellow, Bengio & Courville

    Free at deeplearningbook.org. The textbook for the field. Dense but essential.

  • Advanced

    The Elements of Statistical Learning

    Hastie, Tibshirani & Friedman

    Free PDF at ESL website. Statistical ML — rigorous and thorough.

  • Beginner

    Hands-On Machine Learning (3rd Ed.)

    Aurélien Géron

    Best practical ML book. Scikit-learn to neural networks. Highly recommended.

  • Intermediate

    NLP with Transformers

    Lewis Tunstall et al. (Hugging Face)

    The go-to practical book for transformers. Pairs with HF libraries perfectly.

  • Intermediate

    Build a Large Language Model From Scratch

    Sebastian Raschka

    Step-by-step code. You build a GPT-2 equivalent from scratch. Outstanding.

  • Intermediate

    Speech and Language Processing (3rd Ed.)

    Jurafsky & Martin

    Free online. Stanford's NLP bible. Theory of language models from first principles.

  • Beginner

    Deep Learning with PyTorch

    Eli Stevens, Luca Antiga

    Best PyTorch book. Goes from tensors to production models.

  • Intermediate

    Designing Machine Learning Systems

    Chip Huyen

    ML in production: data, training, deployment, monitoring. Invaluable.

  • Beginner

    Human Compatible: AI and the Problem of Control

    Stuart Russell

    Why AI safety matters and how to think about aligned AI systems.

  • Beginner

    The Alignment Problem

    Brian Christian

    Accessible deep dive into AI alignment challenges. Essential background.

  • Intermediate

    Designing Data-Intensive Applications

    Martin Kleppmann

    Distributed systems for ML infrastructure. Required for serious scaling.

  • Advanced

    Pattern Recognition and Machine Learning

    Christopher Bishop

    Bayesian perspective on ML. Essential for cutting-edge research understanding.

  • Beginner

    Neural Networks and Deep Learning (online book)

    Michael Nielsen

    Free at neuralnetworksanddeeplearning.com. Best visual explanation of backprop.

Free and paid courses from the best AI teachers around.

Tick off skills as you learn them. Your ticks are saved in this browser.

Overall progress

0%

0 of 34 skills done

Phase 1 — Math Foundations

0/5

Phase 2 — Machine Learning

0/5

Phase 3 — Deep Learning

0/6

Phase 4 — Transformers & LLMs

0/6

Phase 5 — RLHF & Alignment

0/6

Phase 6 — Infrastructure

0/6
“Building a Claude-level AI is not a sprint. It's a marathon of learning, building, failing and trying again.”

Good places to keep learning

Built as a personal AI study companion. Good luck on your journey.