Choosing Between FP8 And INT4 Quantization For A Served Model
Last updated: November 29, 2026
Quick Overview
A customer wants a 70B open model served faster and cheaper. Explain how FP8 weight and activation quantization compares with INT4 weight-only quantization for throughput, latency and quality, and how you would decide and validate which to ship.
Fireworks AI
November 29, 20260
0
0 solved
A customer wants a 70B open model served faster and cheaper. Explain how FP8 weight and activation quantization compares with INT4 weight-only quantization for throughput, latency and quality, and how you would decide and validate which to ship.
Fireworks' FireAttention work leans on quantization to serve open models several times faster with minimal quality loss, so performance-focused MLEs are expected to reason from hardware to quality. The interviewer checks whether the candidate knows which regime each scheme helps and insists on task-level evaluation, not only perplexity.
What the Interviewer Expects
- Explain that decode is memory-bandwidth bound and prefill is compute bound
- State that INT4 weight-only mainly speeds up low-batch decode while FP8 also speeds up compute-bound work on GPUs with FP8 tensor cores
- Discuss outlier channels and per-channel or per-group scaling
- Propose an evaluation using task benchmarks, log-prob divergence and customer prompts
- Mention KV cache quantization as a separate lever
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- Why can INT4 weight-only be slower than FP16 at large batch sizes?
- How would you detect a quality regression that benchmarks miss?
- What does quantizing the KV cache to FP8 buy you, and what can go wrong?
- How do calibration data choices affect GPTQ or AWQ results?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
Ask about the traffic shape (interactive single-stream chat versus high-concurrency batch), the GPU generation (FP8 tensor cores exist on H100 and newer), the latency target, and what the customer mea...
Approach
Reason with a roofline. Decode at small batch reads every weight once per token, so time per token is roughly weight bytes divided by memory bandwidth; halving bytes nearly halves latency. Prefill and...