Systems & hardware

Wiki chapters and blog posts about Systems & hardware.

Wiki

Production evaluation for LLMs: replay, canaries, and rollback

Production evaluation connects model quality, system reliability, and user outcomes. Compare versions on paired requests, set release gates for critical slices, and use shadow traffic, canaries, and randomized experiments to answer different release questions.

Intermediate 8 min read

Reasoning RL systems: asynchronous rollouts and policy lag

Reasoning RL joins generation, grading, learning, and weight publication. Asynchronous execution overlaps work and introduces policy lag. A runnable scheduling simulation separates elapsed time, accepted batches, and discarded trajectories.

Intermediate 9 min read

GPUs and the Roofline Model: Why Big Models Are Bound by Memory Bandwidth

A GPU is limited by two walls: how many operations it can do per second (compute) and how many bytes it can move per second (memory bandwidth). The roofline model uses arithmetic intensity to tell which wall an operator hits first. This page derives it and measures it on a CPU.

Intermediate 41 min read

GPU kernels: from tiled matrix multiplication to fusion

GPU kernel tuning combines thread-level memory access, on-chip reuse, and output stores. Derive the logical traffic of tiled matrix multiplication with edge masks, check it with a CPU experiment, and trace practical limits from staging buffers to register spills.

Intermediate 9 min read

Collective Communication: Why All-Reduce Has So Many Algorithms

Collective communication is the plumbing of multi-GPU training. This page simulates five all-reduce algorithms and checks them element by element, compares rounds and traffic with the alpha-beta model, then shows how topology, summation order and MoE all-to-all change the choice.

Advanced 48 min read

Numerical Precision: Three Ways FP16, BF16 and FP8 Training Goes Wrong

Floating-point formats split a few bits between exponent (range) and mantissa (precision). Low-precision training fails in three ways: overflow, underflow (small gradients become 0) and swamping (small terms vanish in sums). Real Qwen2.5-0.5B data shows how large each is and what fixes it.

Intermediate 31 min read

Blog posts

Topics