Reduce precision with measured quality bounds

Connect quantizer scales, calibration, outliers, kernel constraints, and evaluation so memory savings do not hide unacceptable output changes.

10 published lessons1 module240 min of guided study
  1. 01
    Reduce precision with measured quality boundsadvanced · 10 lessons

Follow the path or begin with a question. Every lesson is open.

Your notebook0 of 10 lessons completed

Your place, at your pace. Progress is optional and saved only in this browser when available.

Inside this module

Each lesson includes an interactive lab

Reduce precision with measured quality bounds

Connect quantizer scales, calibration, outliers, kernel constraints, and evaluation so memory savings do not hide unacceptable output changes.

  1. 01

    Affine quantizers, zero points and boundary behavior

    Specify a quantizer completely enough that export and execution agree on every boundary.

    24 min
  2. 02

    Choose scale granularity with its metadata cost

    Relate logical axes and groups to precision, storage and kernel compatibility.

    24 min
  3. 03

    Calibrate on the deployment distribution without leaking evaluation

    Treat observed ranges and reconstruction objectives as estimates with explicit coverage limits.

    24 min
  4. 04

    Move activation scale without changing the real linear map

    Distinguish exact inverse rescaling from the approximation introduced by quantizing the rescaled tensors.

    24 min
  5. 05

    Model weight-only error at the layer output

    Use input-sensitive reconstruction rather than treating every weight error as equally harmful.

    24 min
  6. 06

    Quantize activations and persistent attention state deliberately

    Separate transient activation ranges from the lifetime, layout and errors of the KV cache.

    24 min
  7. 07

    Prove accumulator bounds before shrinking operands

    Track centered integer products, bias and intermediate widths instead of inferring safety from operand size.

    24 min
  8. 08

    Match training-time fake quantization to the deployed operator

    Distinguish PTQ reconstruction from QAT updates and make surrogate-gradient assumptions explicit.

    24 min
  9. 09

    Count packed bytes and conversion traffic at a named boundary

    Follow the representation consumed by the kernel instead of assuming a small checkpoint guarantees a fast multiply.

    24 min
  10. 10

    Release quantization only after held-out task regression analysis

    Evaluate paired changes, critical slices and uncertainty alongside memory and latency gains.

    24 min
All engineering modules