Skip to content
All 102 lessons free · No account needed

Learn LLM Engineering

Pick a question you want to answer or a system you want to build. Work through small examples, run the code, and follow the ideas into larger AI systems.

Tensors, Shapes & Matrix Arithmetic · 11 min

Search topics, concepts, or lesson text. Use arrow keys to browse and Enter to open a lesson.

102 topics11 modules25h total contentOpen curriculum

Step-by-step roadmap

Start at the beginning if you are new to the field. Each module builds on ideas you have already worked through.

Explore the 11-module roadmap
  1. 1
    Step 1 of 11

    Math & Tensor Foundations

    Current step

    Build fluent intuition for tensors, linear algebra, gradients, probability, and statistical uncertainty behind every model.

    5 topics~1hNext: Step 2
  2. 2
    Step 2 of 11

    Classical ML & Evaluation

    Upcoming

    Build core predictive models from scratch and learn how splits, metrics, feature pipelines, and A/B experiments decide real performance.

    7 topics~2hNext: Step 3
  3. 3
    Step 3 of 11

    Deep Learning Foundations

    Upcoming

    Train neural networks in PyTorch from first principles, from MLP backprop and Adam through CNNs, RNNs, and VAEs.

    7 topics~2hNext: Step 4
  4. 4
    Step 4 of 11

    Core LLM Foundations

    Upcoming

    Trace text through tokenization, contrastive embeddings, the Transformer block, next-token modeling, decoding, perplexity, and benchmarks.

    7 topics~1hNext: Step 5
  5. 5
    Step 5 of 11

    Applied LLM Engineering & RAG

    Upcoming

    Build grounded LLM systems with chain-of-thought prompting, constrained decoding, tool calling, chunking, hybrid retrieval, and evaluation.

    11 topics~3hNext: Step 6
  6. 6
    Step 6 of 11

    Transformer & Multimodal Architectures

    Upcoming

    Look inside modern model architectures: attention, RoPE, LayerNorm, MoE, Mamba, Vision Transformers, multimodal fusion, and diffusion.

    9 topics~2hNext: Step 7
  7. 7
    Step 7 of 11

    Training, Fine-Tuning & Alignment

    Upcoming

    Pretrain, adapt, and align language models with scaling laws, CUDA, FSDP, SFT, LoRA, RLHF, DPO, RLVR, reasoning, and distillation.

    15 topics~4hNext: Step 8
  8. 8
    Step 8 of 11

    Advanced Agents & Retrieval

    Upcoming

    Build vector indexes, GraphRAG, and reliable agents with working memory, OS sandboxing, recovery, and multi-agent orchestration.

    10 topics~3hNext: Step 9
  9. 9
    Step 9 of 11

    GPU Systems & LLM Inference

    Upcoming

    Eliminate serving bottlenecks from KV caches, PagedAttention, FlashAttention, and CUDA kernels to quantization and fleet autoscaling.

    16 topics~4hNext: Step 10
  10. 10
    Step 10 of 11

    AI System Design & Interviewing

    Upcoming

    Design production AI systems end to end and sharpen Python ML systems coding and architecture depth for AI lab loops.

    7 topics~2hNext: Step 11
  11. 11
    Step 11 of 11

    Project Deep Dives

    Upcoming

    Read the architecture behind canonical open-source AI systems from PyTorch and vLLM to FlashInfer, DeepGEMM, DeepEP, NCCL, and Megatron.

    8 topics~2hFinal step
01

Math & Tensor Foundations

Build fluent intuition for tensors, linear algebra, gradients, probability, and statistical uncertainty behind every model.

02

Classical ML & Evaluation

Build core predictive models from scratch and learn how splits, metrics, feature pipelines, and A/B experiments decide real performance.

03

Deep Learning Foundations

Train neural networks in PyTorch from first principles, from MLP backprop and Adam through CNNs, RNNs, and VAEs.

04

Core LLM Foundations

Trace text through tokenization, contrastive embeddings, the Transformer block, next-token modeling, decoding, perplexity, and benchmarks.

05

Applied LLM Engineering & RAG

Build grounded LLM systems with chain-of-thought prompting, constrained decoding, tool calling, chunking, hybrid retrieval, and evaluation.

06

Transformer & Multimodal Architectures

Look inside modern model architectures: attention, RoPE, LayerNorm, MoE, Mamba, Vision Transformers, multimodal fusion, and diffusion.

07

Training, Fine-Tuning & Alignment

Pretrain, adapt, and align language models with scaling laws, CUDA, FSDP, SFT, LoRA, RLHF, DPO, RLVR, reasoning, and distillation.

08

Advanced Agents & Retrieval

Build vector indexes, GraphRAG, and reliable agents with working memory, OS sandboxing, recovery, and multi-agent orchestration.

09

GPU Systems & LLM Inference

Eliminate serving bottlenecks from KV caches, PagedAttention, FlashAttention, and CUDA kernels to quantization and fleet autoscaling.

10

AI System Design & Interviewing

Design production AI systems end to end and sharpen Python ML systems coding and architecture depth for AI lab loops.

11

Project Deep Dives

Read the architecture behind canonical open-source AI systems from PyTorch and vLLM to FlashInfer, DeepGEMM, DeepEP, NCCL, and Megatron.