Typical Performance Gains for INT8 Inference

By leveraging AVX-512 VNNI, CPUs can achieve 2x to 4x higher throughput for INT8 deep learning inference compared to previous AVX-512 instructions without VNNI, significantly reducing latency and boosting efficiency.

The top 3

  1. INT8 Quantization: Typical LLM Inference Speedups: INT8 quantization commonly boosts LLM inference throughput by 25-45% over FP16/BF16 on GPUs, with some benchmarks showing general speedups of up to 2x, making models run significantly faster.
  2. CPU Instruction Sets: Key to INT8 LLM Performance: Modern CPU instruction sets like AVX-512 VNNI significantly boost INT8 performance by accelerating lower-precision integer arithmetic, while ARM's I8MM instruction enhances `llama.cpp`'s INT8 matrix multiplies on compatible Neoverse-N2 CPUs.
  3. INT8 Quantization: Minimal Accuracy Trade-offs for Speed: INT8 quantization typically results in minimal accuracy loss, with most benchmarks showing a degradation well under 1-2 percentage points compared to FP16, and some advanced INT8 methods like LLM.int8() even claim zero accuracy degradation for large models.

Sources

Open the full topic