Skip to content
Inference Academy

Lab: quantise to FP8, validate quality, measure the gain

Produce an FP8 checkpoint of an open model (or use a published one), serve it with an FP8 KV cache, and decide whether to ship it: task accuracy with confidence intervals against the BF16 original, long-context and structured-output checks, and speed and capacity at your batch sizes. Ends with a go or no-go report.

By

120 min · verified 2026-11Hands-on labPro
Share

Goal: decide, with evidence, whether an FP8 version of your model is good enough to ship, and how much it buys.

You need: one NVIDIA GPU with FP8 support (Ada, Hopper or newer), vLLM or SGLang, a 7 to 8B instruct model, Python 3.10+, lm-evaluation-harness (pip install lm-eval), optionally llm-compressor to make the checkpoint, loadgen.py from the baseline-to-3x lab, and about two hours.

Honest limits. Library APIs and flags change; check current documentation for llm-compressor, lm-eval and your engine. A published FP8 checkpoint from the model's vendor or a well-known quantiser is a fine starting point if you prefer not to quantise yourself.

#Step 0: write the decision rule first

Before running anything, write down what "good enough" means:

text
Ship FP8 if:
  - task accuracy on our eval set is not lower than BF16 by more than 1 point (95% CI of the paired difference)
  - structured-output validity is unchanged (≥ 99.5% valid JSON)
  - long-context retrieval at 32K is unchanged
  - goodput at our SLOs improves by at least 20%

Deciding the rule afterwards invites rationalising whatever you see (eval-driven development).

Pro content

Keep reading with Inference Academy Pro

Unlock this full lab, plus every advanced lesson, hands-on lab, the larger playground models and completion certificates.

Still to come in this lab

  1. Step 1: get the FP8 checkpoint
  2. Step 2: quality, BF16 versus FP8
  3. Step 3: speed and capacity
  4. Step 4: the report
  5. Self-check
  6. Stretch goals

You will be able to answer

  • BF16 scores 78.4% and FP8 scores 77.9% on 500 questions. What should you conclude?
  • Why test long-context retrieval separately when quantising the KV cache?
  • Where should FP8 give the largest speed gain?

Articles that build on this lesson

Preparing for an interview?