Quantisation

Post-training and quantisation-aware methods, outlier channels, GPTQ and AWQ, and low-bit arithmetic formats.

11concepts
104flashcards
80minutes of reading
  1. 01 AWQ and Activation-Aware Scaling The observation that weight importance is determined by activation magnitude rather than weight magnitude, and how a per-channel rescaling protects the important weights without keeping any of them in higher precision. advanced 7m 12 cards
  2. 02 GPTQ and Second-Order Weight Rounding Why rounding each weight to its nearest grid point is not the best rounding, how the Hessian of the layer reconstruction error tells you what to do instead, and what the approximations cost. advanced 7m 12 cards
  3. 03 KV Cache Quantisation Why the KV cache quantises along different axes for keys and values, how that asymmetry follows from where the outliers live, and why the cache is the one tensor whose quantisation error compounds over a generation. advanced 8m 7 cards
  4. 04 Low-Bit Number Formats and Microscaling Why floating-point formats at 8 bits and below split differently between exponent and mantissa, what a shared block exponent buys, and how hardware support decides which format wins regardless of its numerical merits. advanced 7m 12 cards
  5. 05 Mixed-Precision Bit Allocation and Sensitivity Why a fixed bit budget is better spent unevenly across layers, how Hessian-based sensitivity from HAWQ turns an exponential search into an integer programme, and where the second-order proxy and the hardware disagree. advanced 8m 7 cards
  6. 06 Quantisation and Reasoning Models Reasoning models spend thousands of tokens per answer, which is exactly the regime where small per-token errors have room to compound; what the measurements show, where they disagree, and what to evaluate. advanced 7m 7 cards
  7. 07 Quantisation-Aware Training and the Straight-Through Estimator How you backpropagate through a step function that has zero gradient everywhere, what QAT buys over post-training methods, and why it is used far less than its accuracy would justify. advanced 7m 12 cards
  8. 08 Quantising Mixture-of-Experts Models Why MoE models are the most attractive quantisation target and the most fragile one, how the router turns rounding error into a discrete change of computation path, and what belongs in high precision. advanced 8m 7 cards