The learning notebook
Engineering.
Understand the system. Then build it well.
Connect computing fundamentals to learning algorithms and the infrastructure that runs them. Reason about data, training, inference, reliability, and the tradeoffs behind real AI systems.
Start your route through engineering
- 01Understand the machinefoundation · 10 lessons
- 02Build and understand learning systemscore · 10 lessons
- 03Operate AI at scaleadvanced · 10 lessons
- 04Build a dependable engineering platformadvanced · 10 lessons
Follow the path or begin with a question. Every lesson is open.
Your place, at your pace. Progress is optional and saved only in this browser when available.
Read / explore / reason
The learning path
- Module 01foundation
Understand the machine
Trace data and work through programs, memory, networks, storage, and running services.
- Module 02core
Build and understand learning systems
Learn how models acquire useful behavior, how training fails, and how to evaluate evidence.
- Module 03advanced
Operate AI at scale
Design and operate data, training, inference, reliability, and security systems for AI.
- Module 04advanced
Build a dependable engineering platform
Understand containers, reconciliation, delivery, and the interfaces that make shared infrastructure usable.
- Module 05advanced
Design the data beneath intelligent systems
Connect storage internals, transactions, event streams, and retrieval indexes to correctness and operating cost.
- Module 06advanced
Reason about deep learning architectures
Study architectural choices through mechanisms, computational constraints, and controlled comparisons.
- Module 07advanced
Build and evaluate language model systems
Follow tokens through inference, retrieval, tools, adaptation, and evaluation with explicit quality and resource budgets.
- Module 08advanced
Engineer systems that withstand failure
Design admission, retries, fault testing, recovery, and degraded operation around measurable service behavior.
- Module 09research
Secure the complete AI system
Analyze trust boundaries, identity, provenance, privacy, adversarial inputs, and evidence for security decisions.
- Module 10research
Investigate the frontier of AI infrastructure
Design credible experiments and study compute allocation, numerical behavior, compilers, energy, and reproducibility.
- Module 11core
Instructions and execution
Connect instruction-set contracts to pipelines, retirement, and the costs that programs expose to hardware.
- Module 12core
The memory hierarchy in practice
Explain locality, coherence, translation, and bandwidth limits before interpreting measurements from real processors.
- Module 13core
Lifetimes, allocation, and managed memory
Reason about ownership and object lifetime, then compare runtime allocation and collection mechanisms with explicit safety boundaries.
- Module 14core
How an operating system executes work
Follow execution across system calls, scheduling, interruption, synchronization, and process boundaries without assuming a particular kernel version.
- Module 15advanced
Virtual memory and physical pressure
Trace address translation, faults, reclamation, and locality while distinguishing process address space from committed physical memory.
- Module 16advanced
Correctness under concurrent execution
Build concurrency arguments from happens-before relations, linearization points, reclamation, and explicit progress guarantees.
- Module 17advanced
Event loops and asynchronous I/O
Compare readiness and completion models, cancellation, buffering, and backpressure through inspectable execution traces.
- Module 18advanced
From files to durable blocks
Connect filesystem metadata, write ordering, device behavior, and failure recovery to the durability promises applications need.
- Module 19advanced
Transport under loss and congestion
Understand reliable delivery, congestion feedback, pacing, and transport measurements using assumptions about loss and round-trip delay.
- Module 20advanced
Addresses, routes, and reachability
Follow packets through addressing, forwarding, routing policy, name resolution, and reachability failures across administrative boundaries.
- Module 21advanced
Application protocols as state machines
Analyze framing, multiplexing, caching, streaming, and retry semantics as contracts between independently failing participants.
- Module 22advanced
Protect connections and protocol boundaries
Understand connection authentication and encrypted transport while keeping cryptographic primitives distinct from application authorization.
- Module 23advanced
Fabric design for distributed computation
Relate topology, congestion, collective traffic, and failure domains to the communication demands of modern compute clusters.
- Module 24advanced
Order and uncertainty without a global clock
Separate causality from wall-clock time, then reason about leases, fencing, deadlines, and uncertainty in distributed execution.
- Module 25advanced
Consensus from safety invariants
Develop crash-fault consensus through quorums, terms, logs, membership, and recovery rather than assuming a reachable majority proves correctness.
- Module 26advanced
Replication beyond a single leader
Compare reconciliation strategies, causal metadata, and convergent replicated structures while making conflict semantics explicit.
- Module 27advanced
Transactions across machines
Reason about atomic commit, isolation, concurrency conflicts, and recovery across partitions without confusing availability with atomicity.
- Module 28advanced
Indexes and access path tradeoffs
Derive lookup and update behavior from index layout, concurrency, compression, and workload selectivity rather than treating every index as beneficial.
- Module 29advanced
How a query becomes work
Follow relational expressions through statistics, planning, joins, memory limits, and execution to explain measured query behavior.
- Module 30advanced
Columnar storage and analytical scans
Connect encoding, pruning, partition layout, and vectorized scans to the physical costs of analytical data systems.
- Module 31advanced
Stateful computation over unbounded input
Trace state, progress, replay, and recovery through streaming operators while stating the exact boundary of processing guarantees.
- Module 32advanced
Object storage from metadata to repair
Examine object placement, multipart protocols, erasure coding, integrity checks, and repair under explicit consistency and durability contracts.
- Module 33advanced
Caches under contention and failure
Design cache keys, eviction, invalidation, stampede controls, and coherence around measurable freshness and resource budgets.
- Module 34advanced
Trustworthy datasets and data contracts
Make data ownership, validation, provenance, access, and retention executable parts of production data pipelines.
- Module 35advanced
The mechanics of isolated workloads
Inspect the lifecycle of a container through filesystem mounts, process setup, resource accounting, and runtime failure behavior.
- Module 36advanced
Reconciliation at cluster scale
Build a precise model of desired state, watches, controllers, admission, ownership, and recovery in a distributed orchestration control plane.
- Module 37advanced
Allocate shared cluster resources
Analyze packing, fairness, topology, gang scheduling, preemption, and fragmentation for heterogeneous shared compute clusters.
- Module 38advanced
Traffic policy between services
Study proxy data paths, identity, discovery, balancing, and failure amplification while evaluating when intermediary layers earn their cost.
- Module 39advanced
Delivery systems with controlled risk
Tie artifact promotion, staged exposure, rollback, migrations, and policy evidence to explicit release safety properties.
- Module 40advanced
Measurement that explains production behavior
Design metrics, logs, traces, sampling, and correlation so that telemetry answers operational questions within an explicit cost budget.
- Module 41advanced
Quantitative models of service reliability
Calculate failure and repair behavior while testing independence assumptions, shared causes, and the gap between model predictions and observations.
- Module 42advanced
Evidence and causal reasoning in incidents
Construct testable explanations from production evidence and verify corrective actions without reducing complex incidents to a single convenient cause.
- Module 43advanced
Identity from bootstrap to revocation
Trace workload authentication and authorization through bootstrap, issuance, token boundaries, rotation, and recovery from compromised credentials.
- Module 44advanced
Verifiable software supply chains
Connect dependencies, build isolation, artifact identities, attestations, and admission decisions into a verifiable path from source to execution.
- Module 45advanced
Isolation for shared compute platforms
Analyze interference and authorization across resource, storage, network, and accelerator boundaries while distinguishing fairness from confidentiality.
- Module 46core
GPU execution and synchronization
Understand thread hierarchy, execution ordering, synchronization scope, and launch overhead before optimizing device programs.
- Module 47advanced
Data movement inside an accelerator
Explain coalescing, caching, shared-memory layout, transfers, and allocation behavior through the actual movement of tensor data.
- Module 48advanced
Design and measure tensor kernels
Derive kernels from tensor layouts and reuse, then validate reductions, matrix multiplication, attention, and fusion against numerical references.
- Module 49advanced
Collectives over accelerator fabrics
Compare collective algorithms and topology mappings using latency, bandwidth, ordering, congestion, and failure-aware communication models.
- Module 50advanced
Numerical behavior of learning computations
Trace rounding and conditioning through reductions, losses, gradients, optimizer state, and update accumulation with explicit error checks.
- Module 51advanced
Automatic differentiation as a runtime system
Build derivative transformations from vector products, saved state, control flow, mutation rules, and recomputation rather than treating gradients as an oracle.
- Module 52advanced
Analyze programs before compiling tensors
Track graph capture, intermediate representations, symbolic shapes, effects, aliasing, and guards to establish which tensor transformations are valid.
- Module 53advanced
Lower tensor programs to efficient execution
Connect high-level tensor semantics to layouts, buffers, schedules, vector instructions, and accelerator kernels with verifiable lowering steps.
- Module 54advanced
Feed accelerators without changing the experiment
Design decoding, shuffling, sharding, caching, and restart state so that training input remains fast, representative, and reproducible.
- Module 55advanced
Replicate computation and shard training state
Derive gradient normalization, synchronization, bucketing, and parameter-state sharding schedules with explicit memory and communication calculations.
- Module 56advanced
Partition model computation across devices
Follow tensor dimensions, sequence activations, collectives, and placement through partitioned model layers while checking equivalent results.
- Module 57advanced
Schedule a model pipeline
Analyze microbatches, activation lifetimes, weight versions, and communication schedules to quantify pipeline efficiency and correctness.
- Module 58research
Route and train sparse expert models
Examine routing, capacity, token movement, load balance, and numerical checks in sparse mixture-of-experts training without assuming sparsity removes communication costs.
- Module 59advanced
Recover training state faithfully
Specify which state a checkpoint represents, make distributed writes recoverable, and verify resumed training under changed topology and partial failure.
- Module 60advanced
Explain the cost of a training step
Break measured training time into compute, communication, input, memory, and synchronization effects before changing parallelism or model execution.
- Module 61advanced
Construct auditable model training corpora
Turn raw collections into traceable training mixtures through deduplication, filtering, sampling, contamination checks, and documented use constraints.
- Module 62advanced
Engineer a controlled pretraining run
Connect objective definition, token accounting, initialization, schedules, validation, and recovery to a reproducible autoregressive training experiment.
- Module 63advanced
Adapt models with supervised instructions
Design instruction data, masking, adapters, validation, and releases while measuring retention of capabilities and the effect of example formatting.
- Module 64research
Learn from preferences with explicit assumptions
Trace preference annotation, reward modeling, reference constraints, and optimization while separating learned judgments from guaranteed behavior.
- Module 65research
Infrastructure for policy improvement
Follow trajectories, rewards, policy versions, replay, and distributed updates through reproducible reinforcement learning systems.
- Module 66advanced
Build and maintain retrieval indexes
Derive retrieval index behavior from metric choices, graph or partition structure, compression, filters, update paths, and measured recall.
- Module 67advanced
Rank evidence under a latency budget
Compare lexical, dense, hybrid, and learned ranking through explicit relevance judgments, candidate sets, and operating constraints.
- Module 68advanced
Connect retrieved evidence to generation
Engineer ingestion, chunking, evidence selection, grounded output, access controls, and diagnosis across the complete retrieval-generation path.
- Module 69advanced
Keep online features correct and timely
Connect event history, point-in-time joins, freshness, materialization, and serving contracts to the features models actually consume.
- Module 70advanced
Serve ranking systems with feedback
Trace recommendation candidates through embeddings, ranking, constraints, feedback, and experimentation while making exposure bias explicit.
- Module 71advanced
Manage memory across generation requests
Model parameter, workspace, and key-value allocations through paging, sharing, eviction, and reclamation under concurrent generation.
- Module 72advanced
Schedule generation against latency targets
Analyze mixed prompt and generation work through admission, batching, fairness, and feedback while measuring both token throughput and request latency.
- Module 73advanced
Reduce precision with measured quality bounds
Connect quantizer scales, calibration, outliers, kernel constraints, and evaluation so memory savings do not hide unacceptable output changes.
- Module 74research
Verify drafted tokens efficiently
Derive token verification, acceptance, residual sampling, and speedup limits while distinguishing exact distribution preservation from approximate acceptance rules.
- Module 75research
Separate inference stages safely
Study placement, cache transfer, request routing, handoff, and recovery when prompt processing and token generation use different resources.
- Module 76research
Attention algorithms and data movement
Derive exact tiled attention and distinguish its I/O savings from arithmetic complexity before evaluating sparse or approximate alternatives.
- Module 77research
Long context under memory and quality constraints
Connect positional behavior, context retention, cache policies, retrieval, and adversarial evaluation to the actual usefulness of longer inputs.
- Module 78research
Train denoising and score models
Connect forward noise, target parameterization, weighting, latent representations, and conditioning to controlled diffusion training experiments.
- Module 79research
Execute generation samplers efficiently
Compare sampler discretization, guidance, caching, batching, and quality measurements without treating fewer function evaluations as a universal quality guarantee.
- Module 80research
Align and serve multiple modalities
Trace modality encoding, alignment, missing inputs, fusion, and evaluation through practical multimodal training and serving pipelines.
- Module 81advanced
Build streaming speech and audio systems
Connect sample clocks, framing, recognition alignment, synthesis, and real-time buffering to measurable audio quality and interaction latency.
- Module 82research
Engineer learning over video streams
Analyze decoding, temporal sampling, clip construction, model state, and storage so video experiments preserve the information their tasks require.
- Module 83advanced
Train and serve learning over graphs
Follow graph representation, neighborhood sampling, message passing, partitions, and update paths while testing leakage and stale-neighbor effects.
- Module 84advanced
Deploy forecasting and temporal models
Connect observation time, availability time, forecast horizon, rolling evaluation, and model updates to forecasts that remain valid in production.
- Module 85advanced
Evidence for model release decisions
Design evaluation datasets, scoring, uncertainty estimates, slices, and release gates that answer a stated deployment question rather than optimize a headline score.
- Module 86advanced
Experiment with models in live systems
Analyze assignment, logging, feedback delay, interference, and rollout decisions while distinguishing causal online evidence from offline score differences.
- Module 87research
Make uncertainty useful to a decision
Connect predictive scores to coverage, abstention, shift checks, and operational thresholds while stating exactly which calibration guarantees apply.
- Module 88advanced
Monitor deployed models with delayed evidence
Distinguish data shifts, concept changes, broken pipelines, and feedback effects before triggering retraining or retirement decisions.
- Module 89research
Durable execution for tool-using agents
Model agent runs as recoverable workflows with explicit tool contracts, budgets, approvals, cancellation, and observable side-effect boundaries.
- Module 90research
Plan with bounded context and memory
Analyze working state, memory retrieval, search, replanning, and termination without assuming longer traces or larger memories imply correct reasoning.
- Module 91research
Evaluate complete agent executions
Construct task environments, trace graders, property checks, and replayable failures so agent evaluations measure outcomes as well as plausible intermediate text.
- Module 92advanced
Enforce boundaries around model execution
Connect model loading, request parsing, retrieval access, tool permissions, and output handling to deployment controls with independently testable security properties.
- Module 93research
Engineer privacy protections with stated units
Specify privacy units, clipping, aggregation, accounting, federation, and release controls while separating cryptographic confidentiality from statistical privacy guarantees.
- Module 94research
Test models against adaptive perturbations
Define attacker capabilities and success conditions before measuring perturbation attacks, defenses, transfer, and the scope of robustness certificates.
- Module 95advanced
Account for AI capacity and cost
Build reproducible cost and utilization models using explicitly fictional prices, sensitivity analysis, and stated service-quality constraints.
- Module 96research
Measure energy across the AI lifecycle
Define measurement boundaries, power dynamics, cooling overhead, and emissions factors before evaluating scheduling or hardware efficiency claims.
- Module 97advanced
Deploy useful models on constrained devices
Connect conversion, memory planning, integer execution, streaming state, power, privacy, and updates to a measured on-device quality budget.
- Module 98research
Specify and verify service mechanisms
Translate service contracts into state models, safety invariants, liveness assumptions, and executable checks while making abstraction limits explicit.
- Module 99research
Conduct a credible systems investigation
Construct falsifiable systems claims, controlled comparisons, causal performance explanations, and reproducible artifacts that survive competing interpretations.
- Module 100research
Co-design models and heterogeneous machines
Compare emerging hardware and placement mechanisms through explicit workload models, numerical constraints, and measured evidence rather than assumed universal speedups.
Follow the connections