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.
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
- 1Current stepStep 1 of 11
Math & Tensor Foundations
Build fluent intuition for tensors, linear algebra, gradients, probability, and statistical uncertainty behind every model.
5 topics~1hNext: Step 2 - 2UpcomingStep 2 of 11
Classical ML & Evaluation
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 - 3UpcomingStep 3 of 11
Deep Learning Foundations
Train neural networks in PyTorch from first principles, from MLP backprop and Adam through CNNs, RNNs, and VAEs.
7 topics~2hNext: Step 4 - 4UpcomingStep 4 of 11
Core LLM Foundations
Trace text through tokenization, contrastive embeddings, the Transformer block, next-token modeling, decoding, perplexity, and benchmarks.
7 topics~1hNext: Step 5 - 5UpcomingStep 5 of 11
Applied LLM Engineering & RAG
Build grounded LLM systems with chain-of-thought prompting, constrained decoding, tool calling, chunking, hybrid retrieval, and evaluation.
11 topics~3hNext: Step 6 - 6UpcomingStep 6 of 11
Transformer & Multimodal Architectures
Look inside modern model architectures: attention, RoPE, LayerNorm, MoE, Mamba, Vision Transformers, multimodal fusion, and diffusion.
9 topics~2hNext: Step 7 - 7UpcomingStep 7 of 11
Training, Fine-Tuning & Alignment
Pretrain, adapt, and align language models with scaling laws, CUDA, FSDP, SFT, LoRA, RLHF, DPO, RLVR, reasoning, and distillation.
15 topics~4hNext: Step 8 - 8UpcomingStep 8 of 11
Advanced Agents & Retrieval
Build vector indexes, GraphRAG, and reliable agents with working memory, OS sandboxing, recovery, and multi-agent orchestration.
10 topics~3hNext: Step 9 - 9UpcomingStep 9 of 11
GPU Systems & LLM Inference
Eliminate serving bottlenecks from KV caches, PagedAttention, FlashAttention, and CUDA kernels to quantization and fleet autoscaling.
16 topics~4hNext: Step 10 - 10UpcomingStep 10 of 11
AI System Design & Interviewing
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 - 11UpcomingStep 11 of 11
Project Deep Dives
Read the architecture behind canonical open-source AI systems from PyTorch and vLLM to FlashInfer, DeepGEMM, DeepEP, NCCL, and Megatron.
8 topics~2hFinal step
Math & Tensor Foundations
Build fluent intuition for tensors, linear algebra, gradients, probability, and statistical uncertainty behind every model.
Classical ML & Evaluation
Build core predictive models from scratch and learn how splits, metrics, feature pipelines, and A/B experiments decide real performance.
Deep Learning Foundations
Train neural networks in PyTorch from first principles, from MLP backprop and Adam through CNNs, RNNs, and VAEs.
Core LLM Foundations
Trace text through tokenization, contrastive embeddings, the Transformer block, next-token modeling, decoding, perplexity, and benchmarks.
Applied LLM Engineering & RAG
Build grounded LLM systems with chain-of-thought prompting, constrained decoding, tool calling, chunking, hybrid retrieval, and evaluation.
Transformer & Multimodal Architectures
Look inside modern model architectures: attention, RoPE, LayerNorm, MoE, Mamba, Vision Transformers, multimodal fusion, and diffusion.
Training, Fine-Tuning & Alignment
Pretrain, adapt, and align language models with scaling laws, CUDA, FSDP, SFT, LoRA, RLHF, DPO, RLVR, reasoning, and distillation.
Advanced Agents & Retrieval
Build vector indexes, GraphRAG, and reliable agents with working memory, OS sandboxing, recovery, and multi-agent orchestration.
GPU Systems & LLM Inference
Eliminate serving bottlenecks from KV caches, PagedAttention, FlashAttention, and CUDA kernels to quantization and fleet autoscaling.
AI System Design & Interviewing
Design production AI systems end to end and sharpen Python ML systems coding and architecture depth for AI lab loops.
Project Deep Dives
Read the architecture behind canonical open-source AI systems from PyTorch and vLLM to FlashInfer, DeepGEMM, DeepEP, NCCL, and Megatron.