NoteDec 4, 2026

Where does the speedup come from: the engine or quantization?

Three runs to separate the effect of the inference engine from the effect of changing precision.

While preparing “From Python to Silicon” for PyDay Guadalajara, I compared three CPU runs of the same model: PyTorch FP32, OpenVINO FP32, and OpenVINO INT8. The first step changes the engine at the same nominal precision. The second keeps the engine and changes the numerical representation. In that test, the first step accounted for most of the latency reduction.

I measured latency by repeating the same image. To expand the experiment for FP32, I would use varied inputs and report the median and 95th percentile after warm-up. I would measure quality separately, on an evaluation set kept apart from calibration. That would show whether the benefit of each step holds across different inputs.