AI Engineering from Scratch
Cheat sheets
156 posters. Each poster holds the tasks, commands, code, diagrams, defaults and fixes that you use while you work. Every fact comes from a lesson, a manual or a project of this course.
Foundations 23
- Calculus, Gradients and Convex OptimizationDerivatives, autodiff, GD, momentum, Adam, Newton and convexity tests. From-scratch Python and PyTorch.
- Classical Machine LearningFit, validate, tune and fix regression, classification and clustering models with scikit-learn.
- Classical Models ComparedLinear and logistic regression, trees and forests, SVM, KNN and Naive Bayes side by side, with when to use each.
- Clustering, Dimensionality Reduction and AnomaliesCluster, reduce and flag outliers without labels. K-Means, DBSCAN, GMM, PCA, Isolation Forest, LOF.
- Complex Numbers, Fourier and SignalsComplex rotations, DFT and FFT, windows, sampling, spectrograms, mel filterbanks and MFCCs. Python from the lessons.
- Debugging Neural Network TrainingFind silent training bugs from the symptom. Checks, thresholds, init rules, clipping and AMP order, profilers.
- Feature Engineering and PipelinesImpute, scale, encode, select and ensemble inside one leak-free pipeline. Python from the lessons.
- Git, Shell and Linux for AI WorkCommit and branch, pipe and filter logs, keep runs alive in tmux, move files to a GPU box and fix Linux errors.
- GPUs, Cloud, Docker and API KeysCheck the GPU, size a model for VRAM, run CUDA in Docker, store API keys and fix API errors.
- Information Theory and Numerical StabilityEntropy, cross-entropy and KL, stable softmax and log-sum-exp, float formats, PCA and distance choice.
- JAX against PyTorchEager tape autograd against traced, compiled pure functions. The same MNIST MLP in both, with APIs and gotchas.
- Linear Algebra for MLVectors, transforms, eigenvalues, SVD and Ax = b solvers. From-scratch Python and NumPy from the lessons.
- Math for Machine LearningGradients, probability, information, optimizers, decompositions and float safety. NumPy, SciPy and PyTorch.
- ML System Design, Drift and Feature StoresFrame the task, price serving, beat baselines, roll out safely, catch drift and training-serving skew.
- Model Evaluation, Bias-Variance and TuningSplits and cross-validation, metric formulas, bias-variance diagnosis, search strategies and imbalanced classes.
- Neural Network BasicsPerceptron, forward pass, backprop, loss choice and a mini framework. Formulas, shapes, defaults and fixes.
- Notebooks, Data Files and ProfilingRun notebooks safely, load and split datasets, keep big files out of git, profile time and memory, catch silent AI bugs.
- Optimizers and Learning Rate SchedulesPick SGD, Adam or AdamW, shape the learning rate, then clip, scale and accumulate gradients safely.
- Probability and Statistics for MLDistributions, Bayes, tests, bootstrap, sampling from logits and Markov chains. From-scratch Python and SciPy.
- Python Dev Environment for AIInstall uv, make one venv per project, pin with lockfiles, check the route, set up VS Code and avoid silent Python bugs.
- PyTorch EssentialsTensors, autograd, nn.Module, the training loop, DataLoader and devices, from the lessons.
- Time Series FundamentalsCheck stationarity, build lag features, validate walk-forward, beat naive baselines. Random walks and Markov chains.
- Training Neural NetworksPick the optimizer, init, normalization, regularization and schedule. Then debug the run when the loss misbehaves.
Vision and audio 16
- Audio Features, Classification and MetricsSample, frame, window, mel, MFCC, classify and score audio. Stdlib Python from the lessons.
- CNN Architectures and Transfer LearningSize convolutions, build LeNet to ResNet, train a classifier and fine-tune a pretrained backbone. PyTorch and NumPy.
- Computer VisionPreprocess, convolve, classify, fine-tune, detect, segment and patchify images. PyTorch and NumPy from the lessons.
- Detection and Segmentation ComparedBoxes, pixel masks, instance masks, keypoints and text-prompted masks. Outputs, losses, metrics and fixes side by side.
- Edge Inference TargetsPick an edge target and a quantization format. Bandwidth ceilings, formats, export steps and on-device measurement.
- Evaluating Generative ModelsFID, CLIP score, CMMD, Elo, WER, MOS, SECS, EER and FAD. Code, sample sizes and the ways each number fails.
- GANs, Diffusion and Flow ComparedGAN, DDPM, latent diffusion, DiT with rectified flow, flow matching and VAR. Targets, steps, code and fixes.
- Music Generation and Audio-Language ModelsCodec tokens, MusicGen, audio encoders and projectors, Thinker and Talker, TTFAB budgets and audio pitfalls.
- Real-Time Voice AssistantsVAD, turn detection, barge-in, latency budgets and full-duplex speech for a voice agent that answers in time.
- Self-Supervised Vision, CLIP and RetrievalPretrain without labels, align images and text, classify zero-shot, shape embeddings and search them. PyTorch.
- Speaker Verification, Spoofing and WatermarksEnroll, score and threshold speakers, detect spoofed audio, and mark every generation with a watermark and C2PA.
- Speech Recognition and WhisperDecode CTC, run and tune Whisper, gate with VAD, and ship a WAV to captions pipeline.
- Text-to-Speech, Voice Cloning and CodecsText to phonemes to mel to waveform, clone with consent and a watermark, and tokenize audio with RVQ codecs.
- Video and 3D GenerationVideo DiT patches and divided attention, world models, Gaussian splats, NeRF and multi-view 3D. Formulas and fixes.
- Video, Depth and 3D VisionSample frames, model time, render NeRFs and Gaussian splats, predict depth and track objects across frames.
- Vision Pipelines and Edge DeploymentMeasure, quantise, export and serve a vision pipeline. Size LLM decode on edge targets by memory bandwidth.
Language and transformers 19
- Attention Variants ComparedFull, sliding window, strided, BigBird, differential and native sparse attention. Cost, KV cache, code, fixes.
- BERT, GPT and T5 ComparedEncoder-only, decoder-only and encoder-decoder side by side. Objectives, masks, blocks, decoding and when to pick each.
- Chatbots and Dialogue State TrackingRoute turns, run the agent loop, track slots across turns and budget the context window. Python from the lessons.
- Classic Text Processing and TF-IDFTokenize, stem, lemmatize, count, weight with TF-IDF, classify sentiment and find topics with LDA or BERTopic.
- Embeddings and Vector SearchEncode text, pick a metric, size the vectors, choose an index and fix bad recall. Python, NumPy and FAISS.
- Fine-Tuning with LoRAAdd LoRA adapters, load a 4-bit base for QLoRA, mask SFT labels, train, merge and debug. PyTorch, PEFT and bitsandbytes.
- Graphs and Knowledge GraphsGraph matrices, Laplacian and message passing, entity linking, relation extraction and hybrid graph memory.
- Mixture of Experts and Hybrid ArchitecturesRouters, experts, aux-loss-free balance, MLA, DeepSeek-V3 counts and Jamba SSM hybrids. Formulas and stdlib calculators.
- NER, POS Tagging and CoreferenceBIO tags, CRF and HMM taggers, Viterbi, dependency parses, coreference clusters and entity linking to a KB.
- Positional Encoding: Sinusoidal, RoPE, ALiBiPick, build and check a position scheme. Sinusoidal, learned, RoPE, YaRN and ALiBi side by side, in Python.
- RLHF, DPO and Preference TuningReward model plus PPO against DPO and its family. Losses, beta and KL settings, failure modes and fixes.
- RNNs, Seq2Seq and N-gram ModelsTextCNN, LSTM and GRU, encoder-decoder with teacher forcing, beam search, BLEU, Kneser-Ney and why attention won.
- Scaling Laws and Pre-TrainingChinchilla math, over-training, the data pipeline from raw text to packed batches, and a mini GPT training loop.
- Speculative Decoding: Draft, EAGLE, MTPDraft and verify with no quality loss. Vanilla, Medusa, EAGLE-3 and MTP drafts, speedup math, vLLM config, gates.
- Structured Outputs and Constrained DecodingGet valid JSON every time. Schemas, strict mode, logit masks, validators, retries and the output guard project.
- Summarization, QA, NLI and Multilingual NLPSummarize, answer, check entailment and transfer across languages. Models, metrics, defaults and failures.
- Tokenization and BPETrain, encode and decode a byte-level BPE tokenizer, then slice the id stream into training windows.
- Transformers and AttentionCompute attention, mask it, split heads, add positions and stack the block. PyTorch and NumPy from the lessons.
- Word2Vec, GloVe and FastTextCount words, weight them with TF-IDF, train dense vectors and split rare words into subwords. Python from the lessons.
Generative and multimodal 11
- ControlNet, Inpainting and Image EditingDiffusers calls for text to image, img2img, inpainting, LoRA and ControlNet. Knobs, defaults and fixes.
- Diffusion and Generative ModelsTrain and sample a VAE, a GAN, DDPM, latent diffusion and flow matching, then measure them. Toy Python from the lessons.
- Embodied VLAs and Computer-Use AgentsAction formats for robots, GUI action schemas, safety gates and bounded agent loops for browsers and desktops.
- GANs from DCGAN to StyleGANLosses, DCGAN code, Pix2Pix, CycleGAN and StyleGAN. Defaults, failure signatures and fixes.
- Multimodal and Vision-Native RAGEmbed page images, score with MaxSim, fuse modalities, cite evidence regions. Python and TypeScript from the lessons.
- OCR and Document UnderstandingTrain CTC OCR, pick a document stack, retrieve pages with MaxSim and approve fields against exact source spans.
- Open VLM Families: LLaVA, Qwen-VL, InternVLLLaVA, LLaVA-OneVision, Qwen-VL and InternVL3 side by side: connector, resolution, video, tokens and training.
- Unified Multimodal ModelsPick a unified design. Discrete NTP, two-loss diffusion, masked diffusion, decoupled encoders, next-scale, any-to-any.
- Video-Language Models and Long VideoSample frames, budget tokens, encode time, ground events and index long video with timestamped answers.
- Vision Transformers and Patch TokensPatchify, embed, add CLS and position, run pre-LN blocks. Token counts, parameter math and any-resolution packing.
- Vision-Language Model ArchitecturesViT, bridge, LLM. Projector, Q-Former, Perceiver, gated cross-attention, training stages and recipe numbers.
RL, safety and alignment 9
- AI Safety and Red TeamingName the attack, detect it, measure refusals, gate the output and audit alignment. Phase 18 and 19 lessons.
- Alignment Training: Instructions, DPO Family, RLAIFPick and tune RLHF, DPO, IPO, KTO, SimPO, ORPO, BPO and Constitutional AI. Losses, defaults and failures.
- Bias, Fairness and Differential PrivacyMeasure bias, pick a fairness criterion, train with DP-SGD and audit the privacy claim. Stdlib Python toys.
- Cards, Provenance, Regulation and WelfareEU AI Act dates, four regimes, three cards, AB 2013 fields, welfare EV and the external evaluators.
- Mesa-Optimizers, Scheming and AI ControlTerms, evidence, numbers, toy code and control protocols for deceptive alignment. Phase 18 lessons 6 to 10.
- Multi-Agent RL and Sim-to-RealCTDE, value decomposition, self-play, domain randomization and VLA action formats. Formulas, numbers and fixes.
- Prompt Injection Incidents and AI CVEsFind, trace and block indirect prompt injection. EchoLeak chain, PVE validator, rule detector, tool call firewall.
- Reinforcement LearningMDPs, value methods, policy gradients, PPO, RLHF and GRPO. Formulas, update lines and diagnostics from Phase 9.
- Value Methods against Policy MethodsQ-learning, SARSA, DQN, REINFORCE, A2C and PPO side by side. Targets, defaults, diagnostics and fixes.
LLM engineering 4
- Agent State Machines and Durable GraphsState, nodes, edges, reducers, checkpoints, interrupts and leased job recovery. LangGraph and a Go job queue.
- Guardrails, Moderation and RedactionCheck input and output, route classifier verdicts, redact spans and gate tool calls. Python and Rust from the lessons.
- Prompt EngineeringWrite the prompt, add examples and reasoning, vote, and budget the context window. Python from the lessons.
- Shipping a Production LLM AppRequest pipeline, retries, fallback chains, SSE streams, resume, demo limits and a fallback gateway.
Tools and protocols 10
- Agent Skills: Discovery, Invocation, RoutingWrite, install, discover, invoke and route SKILL.md packages. Validators, catalogs, router and installer projects.
- Binary Analysis Tools from ScratchRead ELF and Mach-O, decode x86-64, build the CFG, lift to C and prove it. Python stdlib only.
- Building an MCP ServerValidate, dispatch, wrap and cache a stateless MCP 2026-07-28 server. Tools, resources, prompts, policy.
- MCP Clients and TransportsProbe, merge and route MCP 2026-07-28 peers over stdio and Streamable HTTP. Retry MRTR rounds. Frame JSON-RPC.
- MCP Gateways, Registries and ConformanceRoute through a stateless gateway, admit registry versions, catch drift, test the wire and gate releases.
- MCP Security and AuthorizationFind and fix token refusals, poisoned tool metadata and injected content. CIMD, PKCE, iss, audience and PVE checks.
- MCP Tasks, Elicitation and AppsExplicit scope, MRTR elicitation, durable Tasks, Apps UI resources and safe cancellation on MCP 2026-07-28.
- Model Context Protocol (MCP)Build, call and serve stateless MCP 2026-07-28 servers over stdio and Streamable HTTP.
- Skill Permissions, Evals and Supply ChainReview skill actions before they run, isolate them, gate each release by eval layer and scan bundles.
- Tool Calling and Structured OutputsDeclare tools, read calls, return results, run calls in parallel, stream arguments, and force JSON that validates.
Agents and autonomy 26
- A2A and Agent Communication ProtocolsMCP, A2A, ACP, ANP and FIPA-ACL side by side. Agent Cards, tasks, wire names and failures. A2A 1.0.1.
- Agent Benchmarks: SWE-bench to OSWorldPick the benchmark, gate on the right tests, check contamination and compare runs on equal denominators.
- Agent Frameworks ComparedPick LangGraph, CrewAI, AutoGen, Agno, Mastra, an agent SDK or plain Python by problem shape, state and routing cost.
- Agent Harness EngineeringThe code around the model. Loop contract, hooks, budgets, tools, gates, sandbox, traces and workbench files.
- Agent Planning: Workflows, HTN, Plan-ExecutePick a workflow, an HTN or evolutionary planner, or a replanning executor. Stdlib Python from the lessons.
- Agent Tool Use and Skill LibrariesDefine, validate, dispatch and secure tool calls. Store skills as code, retrieve, compose and refine them.
- Autonomous Agents and PermissionsRun an agent unattended with limits. Permission modes, budgets, kill switches, durable execution, approvals, rollback.
- Constitutional AI and Input/Output ClassifiersCritique-and-revise training, tier resolution, input and output rails, their bypasses, and a YAML rules engine.
- Context Engineering and Agent MemoryBudget the window, order the context, page memory in and out, fuse memory stores and persist agent state.
- Debate, Roles and Review PanelsRun N agents for R rounds, split work into planner, executor, critic and verifier, and gate reviews with a quorum.
- Delegation, Isolation and Feedback RatchetsPlan from evidence, split work by exclusive ownership, and promote each correction to the earliest owning layer.
- Eval-Driven Agent DevelopmentRun eval cases, gate merges, review with a rubric, and gate prompt and report changes. Python stdlib.
- Frontier Safety Frameworks and External EvalsRSP v3.0, PF v2 and FSF v3 side by side, plus METR horizons, WMDP, CAIS, CAISI and the 2025 dual-use evidence.
- Multi-Agent Case Studies and Eval FarmsThree 2026 reference systems, the software team capstone, and a fenced, resumable eval farm in Go.
- Multi-Agent SystemsAgents, handoffs, shared state and orchestrators. Pick a pattern, vote, checkpoint and fix the known failures.
- Negotiation, Simulation and Agent EconomiesContract Net, OG-Narrator bargaining, Smallville memory, Theory of Mind tests, Shapley credit and second-price auctions.
- OpenTelemetry GenAI and Agent ObservabilityEmit gen_ai.* spans, sample traces, export metrics, pick a platform and debug a trace. Stdlib code from the lessons.
- Orchestration Patterns ComparedPick supervisor, swarm, hierarchical, debate or a plain workflow. Stdlib Python from the lessons.
- Outcomes, Workflows, Risks and SpecsFrame the outcome, ground the workflow, rank assumptions, pick a slice, write the spec, set metrics, choose a stage.
- Production Agent Runtimes and QueuesPick a runtime shape, checkpoint and replay, lease and fence jobs, retry scoped reads. Python and Go.
- ReAct, ReWOO, Reflexion and Tree of ThoughtsPick, build and stop an agent reasoning loop. ReAct, ReWOO, Reflexion, ToT, LATS, Self-Refine, CRITIC and CoT.
- Repo Memory, Init Scripts and HandoffsFrame the task, keep state in schema-checked files, probe before start, and end each session with a handoff packet.
- Self-Improving and Research AgentsGenerator plus evaluator loops, self-editing agents, research loops, RSI gaps and the controls for each.
- Self-Taught Reasoning and Self-ImprovementGenerate, grade, keep, retrain. STaR, GRPO, AlphaEvolve and DGM loops, their numbers, and the evaluator traps.
- Swarm Optimization and MARL for AgentsPSO and ACO for prompts and routing, queue swarms, and MADDPG, QMIX, MAPPO and self-play set side by side.
- Why Agents FailName the failure, find it in the trace, gate it. Detectors, MAST, retry storms, PVE and a trace debugger.
Production and infrastructure 12
- Async, Hogwild and Disaggregated InferenceShare, split, route and offload the KV cache. Formulas, crossover numbers and the cases where each method loses.
- GPU Autoscaling on KubernetesNodes with Karpenter, gangs with KAI Scheduler, replicas on queue depth, cache-aware routing, event storyboards.
- Inference Metrics and Load TestingFind why a load test lies. TTFT, TPOT, goodput, P99, realistic prompts, retry storms and hedged reads.
- Inference Optimization: KV Cache, Quantization, BatchingKV cache, quantization, batching and speculation. Formulas, scheduler numbers and the mistakes that cost latency.
- LLM Cost, Caching and Batch APIsPrice each call, cache prefixes and meanings, batch offline work and cap spend. Python and Rust from the lessons.
- LLM Routing and AI Gateways ComparedPick a gateway, set aliases and fallback chains, route cheap or frontier, and hedge slow safe reads.
- Managed Platforms and Self-Hosting ComparedPick a hyperscaler, an inference platform or a self-hosted engine. Price it, size it, cut cold starts.
- Quantization Formats ComparedPick a weight format by hardware, engine and workload. Bits, memory, commands and the traps that cost accuracy.
- Secrets, Audit Logs and ComplianceVault-backed keys, PII scrubbing, audit logs, signed webhooks, framework controls and AI law dates.
- Serving Engines ComparedvLLM, SGLang, TRT-LLM and llama.cpp side by side. Schedulers, KV reuse, precision, offload and the pick.
- Shadow, Canary and A/B Tests for LLMsShadow runs, canary gates, fast rollback, sequential A/B tests, chaos guards and config drift reports.
- SRE, Incidents and Postmortems for AITriage LLM incidents with agents, gate every fix, write evidence-bound postmortems and compact logs for an assistant.
Capstones 12
- Build a VLM from ScratchPatch embed, ViT encoder, MLP projector, cross-attention decoder, InfoNCE plus LM pretraining, R@K, EM and BLEU-4.
- Coding Agents: Landscape and CapstonesPick a scaffold, set the budgets and gates, run the capstone agents and the three coding-agent projects.
- DDP, FSDP, ZeRO and Pipeline ParallelPick a parallelism, size the memory, wire the collectives and fix the hangs. PyTorch gloo on CPU.
- End-to-End LLM and Fine-Tuning PipelinePlan, run and gate a hashed stage DAG. Head swap, SFT loss mask and DPO loss from the capstones, with defaults.
- Evaluating LLMsSpecify tasks, score them, judge with a rubric, calibrate, rank with intervals and test long context.
- Paper Writer, Critic and IterationSchedule experiments with UCB, iterate a draft with a five-score critic, and emit LaTeX, BibTeX and a manifest.
- Pre-Training Data PipelinesClean, dedup, download, tokenize, shard and window a pretraining corpus. Python from the lessons.
- Production RAG Chatbots and FreshnessFilter, fuse, cache, guard and cite. Keep the index fresh and grade every ranking change.
- Research Agent Pipeline from ScratchGenerate hypotheses, retrieve papers, run sandboxed experiments, judge results, and publish a cited report.
- Retrieval-Augmented Generation (RAG)Chunk, index, retrieve, fuse, rerank, generate with citations and grade each stage. Python from the lessons.
- Train and Load a GPT from ScratchBuild the 124M GPT, train it with AdamW and cosine warmup, load GPT-2 weights, gate the pipeline.
- Training Memory, Accumulation and CheckpointsFix NaN steps, memory limits, accumulation scale and broken resumes. Clip, AMP, recompute, atomic checkpoints.
Manuals 6
- A2A ProtocolCards, messages, tasks, states, the three bindings, errors and the 0.3 layer of A2A 1.0.1. Facts from the manual.
- Docker Sandboxes for AgentsRun an agent in a microVM, control its network and keys, get its commits back. sbx 0.47.0, docker-agent 1.149.0.
- LLM Serving with SGLangStart, size, measure and fix an SGLang server. SGLang 0.5.22.
- LLM Serving with vLLMInstall, start, size, tune and debug a vLLM 0.31.0 server. Flags, defaults, metrics and known failures.
- Reverse Engineering with rearea 6.7.0 with Ghidra 12.1.4: inspect binaries, read Evidence records and compare bundles.
- RL Post-Training with MilesRun GRPO on one GPU, watch the run, stop a dead engine and fix the common failures.
Projects 8
- AI Tutors and Learning ToolsTrace mastery, ground every card in a source, plan paths and materials, and suggest words from your own corpus.
- Data Quality and Dataset GatesLoad and split data with a seed, repair CSV cells, gate rows on a contract, audit leaks and rehearse migrations.
- Decision, Change and Tutorial ToolsFour evidence tools. Score options, brief page changes, check API tutorials and compare local model runs.
- Diagram, Chart and Infrastructure ExplainersFour local explainer projects. Run them, feed them, read their outputs and fix their errors.
- Localization and Glossary ToolsRun, feed and check three review-first localization projects. Pick a multilingual model and a source language.
- Personal Organizer AgentsFive local organizer projects. What each builds, how to run it, its inputs, outputs, review files and checks.
- Sandbox Policy LadderPick the least costly isolation profile, refuse bad calls in a runner, and set sbx network, secret and safety policy.
- Text Workflow DesksTriage email, extract actions, rewrite prose, group feedback and write changelogs. Every output waits for review.
By phase
- Phase 0: Setup & ToolingData Quality and Dataset Gates, Git, Shell and Linux for AI Work, GPUs, Cloud, Docker and API Keys, Debugging Neural Network Training, Notebooks, Data Files and Profiling, Python Dev Environment for AI, PyTorch Essentials
- Phase 1: Math FoundationsCalculus, Gradients and Convex Optimization, Embeddings and Vector Search, Graphs and Knowledge Graphs, Information Theory and Numerical Stability, Linear Algebra for ML, Math for Machine Learning, Probability and Statistics for ML, Complex Numbers, Fourier and Signals, Time Series Fundamentals, Clustering, Dimensionality Reduction and Anomalies
- Phase 2: ML FundamentalsClassical Machine Learning, Embeddings and Vector Search, Feature Engineering and Pipelines, Model Evaluation, Bias-Variance and Tuning, Classical Models Compared, ML System Design, Drift and Feature Stores, Time Series Fundamentals, Clustering, Dimensionality Reduction and Anomalies
- Phase 3: Deep Learning CoreTraining Neural Networks, JAX against PyTorch, Neural Network Basics, Debugging Neural Network Training, Optimizers and Learning Rate Schedules, PyTorch Essentials
- Phase 4: Computer VisionCNN Architectures and Transfer Learning, Computer Vision, Detection and Segmentation Compared, Edge Inference Targets, Embeddings and Vector Search, GANs from DCGAN to StyleGAN, ControlNet, Inpainting and Image Editing, GANs, Diffusion and Flow Compared, OCR and Document Understanding, Self-Supervised Vision, CLIP and Retrieval, Video and 3D Generation, Video, Depth and 3D Vision, Video-Language Models and Long Video, Vision Pipelines and Edge Deployment, Vision Transformers and Patch Tokens, Vision-Language Model Architectures
- Phase 5: NLP, Foundations to AdvancedChatbots and Dialogue State Tracking, Embeddings and Vector Search, Graphs and Knowledge Graphs, Evaluating LLMs, Localization and Glossary Tools, Retrieval-Augmented Generation (RAG), RNNs, Seq2Seq and N-gram Models, NER, POS Tagging and Coreference, Structured Outputs and Constrained Decoding, Summarization, QA, NLI and Multilingual NLP, Classic Text Processing and TF-IDF, Tokenization and BPE, Transformers and Attention, Word2Vec, GloVe and FastText
- Phase 6: Speech & AudioSpeech Recognition and Whisper, Audio Features, Classification and Metrics, Music Generation and Audio-Language Models, Evaluating Generative Models, Complex Numbers, Fourier and Signals, Text-to-Speech, Voice Cloning and Codecs, Real-Time Voice Assistants, Speaker Verification, Spoofing and Watermarks
- Phase 7: Transformers Deep DiveSpeech Recognition and Whisper, Attention Variants Compared, BERT, GPT and T5 Compared, Inference Optimization: KV Cache, Quantization, Batching, Mixture of Experts and Hybrid Architectures, Positional Encoding: Sinusoidal, RoPE, ALiBi, RNNs, Seq2Seq and N-gram Models, Scaling Laws and Pre-Training, Speculative Decoding: Draft, EAGLE, MTP, Transformers and Attention, Vision Transformers and Patch Tokens
- Phase 8: Generative AIMusic Generation and Audio-Language Models, Diffusion and Generative Models, GANs from DCGAN to StyleGAN, Evaluating Generative Models, ControlNet, Inpainting and Image Editing, GANs, Diffusion and Flow Compared, Unified Multimodal Models, Video and 3D Generation
- Phase 9: Reinforcement LearningMulti-Agent RL and Sim-to-Real, Reinforcement Learning, RLHF, DPO and Preference Tuning, Swarm Optimization and MARL for Agents, Value Methods against Policy Methods
- Phase 10: LLMs from ScratchAlignment Training: Instructions, DPO Family, RLAIF, Async, Hogwild and Disaggregated Inference, Attention Variants Compared, DDP, FSDP, ZeRO and Pipeline Parallel, Edge Inference Targets, Train and Load a GPT from Scratch, Inference Optimization: KV Cache, Quantization, Batching, Evaluating LLMs, End-to-End LLM and Fine-Tuning Pipeline, Fine-Tuning with LoRA, Mixture of Experts and Hybrid Architectures, Positional Encoding: Sinusoidal, RoPE, ALiBi, Pre-Training Data Pipelines, Quantization Formats Compared, RLHF, DPO and Preference Tuning, Scaling Laws and Pre-Training, Self-Taught Reasoning and Self-Improvement, Speculative Decoding: Draft, EAGLE, MTP, Tokenization and BPE, Training Memory, Accumulation and Checkpoints, Transformers and Attention
- Phase 11: LLM EngineeringAgent Frameworks Compared, ReAct, ReWOO, Reflexion and Tree of Thoughts, Agent State Machines and Durable Graphs, Agent Tool Use and Skill Libraries, Context Engineering and Agent Memory, Chatbots and Dialogue State Tracking, Embeddings and Vector Search, Guardrails, Moderation and Redaction, LLM Cost, Caching and Batch APIs, Evaluating LLMs, Fine-Tuning with LoRA, MCP Clients and Transports, Shipping a Production LLM App, Prompt Engineering, Quantization Formats Compared, Retrieval-Augmented Generation (RAG), Structured Outputs and Constrained Decoding, Tool Calling and Structured Outputs
- Phase 12: Multimodal AIMusic Generation and Audio-Language Models, Embodied VLAs and Computer-Use Agents, Evaluating Generative Models, Multi-Agent RL and Sim-to-Real, Multimodal and Vision-Native RAG, OCR and Document Understanding, Self-Supervised Vision, CLIP and Retrieval, Unified Multimodal Models, Video-Language Models and Long Video, Vision Transformers and Patch Tokens, Vision-Language Model Architectures, Open VLM Families: LLaVA, Qwen-VL, InternVL
- Phase 13: Tools & ProtocolsA2A and Agent Communication Protocols, Agent Skills: Discovery, Invocation, Routing, OpenTelemetry GenAI and Agent Observability, LLM Routing and AI Gateways Compared, MCP Clients and Transports, MCP Gateways, Registries and Conformance, MCP Security and Authorization, Building an MCP Server, MCP Tasks, Elicitation and Apps, Model Context Protocol (MCP), Binary Analysis Tools from Scratch, Reverse Engineering with rea, Skill Permissions, Evals and Supply Chain, Structured Outputs and Constrained Decoding, Tool Calling and Structured Outputs
- Phase 14: Agent EngineeringAgent Benchmarks: SWE-bench to OSWorld, Why Agents Fail, Agent Frameworks Compared, Agent Harness Engineering, Agent Planning: Workflows, HTN, Plan-Execute, ReAct, ReWOO, Reflexion and Tree of Thoughts, Agent State Machines and Durable Graphs, Agent Tool Use and Skill Libraries, Repo Memory, Init Scripts and Handoffs, Prompt Injection Incidents and AI CVEs, Context Engineering and Agent Memory, Debate, Roles and Review Panels, Delegation, Isolation and Feedback Ratchets, Embodied VLAs and Computer-Use Agents, Eval-Driven Agent Development, OpenTelemetry GenAI and Agent Observability, Graphs and Knowledge Graphs, MCP Security and Authorization, Orchestration Patterns Compared, Outcomes, Workflows, Risks and Specs, Production Agent Runtimes and Queues, Skill Permissions, Evals and Supply Chain, Real-Time Voice Assistants
- Phase 15: Autonomous SystemsAgent Harness Engineering, Autonomous Agents and Permissions, Self-Improving and Research Agents, Coding Agents: Landscape and Capstones, Constitutional AI and Input/Output Classifiers, Embodied VLAs and Computer-Use Agents, Frontier Safety Frameworks and External Evals, Guardrails, Moderation and Redaction, Production Agent Runtimes and Queues, Self-Taught Reasoning and Self-Improvement
- Phase 16: Multi-Agent & SwarmsA2A and Agent Communication Protocols, Agent Benchmarks: SWE-bench to OSWorld, Why Agents Fail, Debate, Roles and Review Panels, Negotiation, Simulation and Agent Economies, Multi-Agent RL and Sim-to-Real, Multi-Agent Case Studies and Eval Farms, Multi-Agent Systems, Orchestration Patterns Compared, Production Agent Runtimes and Queues, Swarm Optimization and MARL for Agents
- Phase 17: Infrastructure & ProductionAsync, Hogwild and Disaggregated Inference, Edge Inference Targets, OpenTelemetry GenAI and Agent Observability, GPU Autoscaling on Kubernetes, Inference Metrics and Load Testing, Inference Optimization: KV Cache, Quantization, Batching, LLM Cost, Caching and Batch APIs, LLM Routing and AI Gateways Compared, Managed Platforms and Self-Hosting Compared, Shipping a Production LLM App, Shadow, Canary and A/B Tests for LLMs, Quantization Formats Compared, Secrets, Audit Logs and Compliance, Serving Engines Compared, Speculative Decoding: Draft, EAGLE, MTP, SRE, Incidents and Postmortems for AI, Vision Pipelines and Edge Deployment
- Phase 18: Ethics, Safety & AlignmentCards, Provenance, Regulation and Welfare, AI Safety and Red Teaming, Prompt Injection Incidents and AI CVEs, Alignment Training: Instructions, DPO Family, RLAIF, Constitutional AI and Input/Output Classifiers, Mesa-Optimizers, Scheming and AI Control, Bias, Fairness and Differential Privacy, Frontier Safety Frameworks and External Evals, Guardrails, Moderation and Redaction, RLHF, DPO and Preference Tuning, Secrets, Audit Logs and Compliance, Speaker Verification, Spoofing and Watermarks
- Phase 19: Capstone ProjectsAgent Harness Engineering, Agent Planning: Workflows, HTN, Plan-Execute, AI Safety and Red Teaming, Prompt Injection Incidents and AI CVEs, AI Tutors and Learning Tools, Self-Improving and Research Agents, Coding Agents: Landscape and Capstones, Constitutional AI and Input/Output Classifiers, Debate, Roles and Review Panels, DDP, FSDP, ZeRO and Pipeline Parallel, Embeddings and Vector Search, OpenTelemetry GenAI and Agent Observability, Train and Load a GPT from Scratch, Guardrails, Moderation and Redaction, Evaluating LLMs, End-to-End LLM and Fine-Tuning Pipeline, Fine-Tuning with LoRA, MCP Clients and Transports, Building an MCP Server, Multi-Agent Case Studies and Eval Farms, Multimodal and Vision-Native RAG, Debugging Neural Network Training, OCR and Document Understanding, Optimizers and Learning Rate Schedules, Positional Encoding: Sinusoidal, RoPE, ALiBi, Pre-Training Data Pipelines, Production RAG Chatbots and Freshness, Retrieval-Augmented Generation (RAG), Research Agent Pipeline from Scratch, Paper Writer, Critic and Iteration, RLHF, DPO and Preference Tuning, Sandbox Policy Ladder, Speculative Decoding: Draft, EAGLE, MTP, SRE, Incidents and Postmortems for AI, Tokenization and BPE, Tool Calling and Structured Outputs, Training Memory, Accumulation and Checkpoints, Transformers and Attention, Video-Language Models and Long Video, Vision Transformers and Patch Tokens, Vision-Language Model Architectures, Build a VLM from Scratch, Real-Time Voice Assistants
How to use them
- Each colour means one kind of block. Blue blocks are tasks and commands. Red blocks are fixes. The key is at the top of each poster.
- Click a command to copy it. Replace each value in angle brackets, such as
<model>. - The foot of each poster lists the lessons and manuals that it covers. Open one when you need the reason.
- Print a poster on one or two landscape pages. It fits A4 and Letter paper.