Systems and scaling study how model training and inference behave on real hardware. The useful mental model is: performance is limited by compute, memory, communication, and numerical precision, and modern ML systems are mostly about balancing those constraints.
Core sequence:
- Floating Point and Quantization - represents real numbers with finite precision and reduces memory or compute cost with lower precision.
- Memory Hierarchy and IO-Awareness - explains why moving data can dominate arithmetic.
- GPU Architecture and CUDA - describes the parallel hardware model used for neural network workloads.
- Distributed Training Strategies - splits training across devices through data, tensor, pipeline, or expert parallelism.
- Computational Complexity of Attention - shows why transformer context length stresses memory and compute.
How the pieces fit:
- Floating point and quantization define what numbers the system can represent cheaply.
- Memory hierarchy determines whether kernels are compute-bound or bandwidth-bound.
- GPUs provide massive parallelism, but only when work is organized to fit the hardware.
- Distributed training adds communication as a first-class bottleneck.
- Attention complexity is the LLM-specific scaling pressure that links algorithms to systems.
Core equations to keep active:
- Approximate roofline bound:
- Arithmetic intensity:
- Attention score size: for sequence length .
- KV-cache memory pattern: for layers , context length , and hidden width or per-layer cache width .
- Data-parallel effective batch:
- Quantization scale pattern: for scale , integer value , and zero point .
See also: Computer Science Foundations, Transformers and LLMs