FP8, BF16, and Posits: what actually happens to your agent's accuracy when you drop precision
With papers on low-precision floating point and Posit arithmetic back on HN today, it is worth talking about what happens in real production serving when you drop from BF16 to FP8 or INT4.
On short Q&A benchmarks, FP8 looks practically indistinguishable from BF16. You double your memory bandwidth efficiency, fit twice the batch size, and celebrate.
Then you run a 40k-token coding or tool-calling session and notice subtle drift:
- Outlier activation channels in a few linear layers get clipped, making the model slightly more repetitive on long context.
- Softmax temperature sensitivity increases—tight JSON enum choices or rare variable names start flipping more often at step 15 of a multi-turn loop.
How to test precision safely before flipping prod
Never rely on WikiText perplexity alone when validating an FP8 or AWQ checkpoint:
python# Compare BF16 vs FP8 on exact tool-call agreement, not just text similarity def eval_precision_parity(bf16_calls: list[dict], fp8_calls: list[dict]) -> float: matches = sum( 1 for a, b in zip(bf16_calls, fp8_calls) if a["name"] == b["name"] and a["arguments"] == b["arguments"] ) return matches / max(len(bf16_calls), 1)
If exact tool-call parity stays above 95% on your real 30k-token traces, ship FP8 and enjoy the speed boost. If it drops below 90%, keep KV-cache in FP8 only while leaving sensitive weights or attention projections in BF16.