What is INT8 (8-bit integer)?

INT8 is a format representing numbers in 8 bits, meaning 256 integer levels; in AI it compresses weights and activations, enabling more efficient inference through integer arithmetic.

Unlike 8-bit floating point, whose exponent bits cover a wider range coarsely, INT8 uses evenly spaced levels needing a scale per tensor or channel, plus a zero point when asymmetric. 4-bit integer halves memory again at higher error.

Topic
Infrastructure and runtime
Also known as
8-bit quantisation

How INT8 (8-bit integer) works

  1. Measure each tensor's or channel's value range and compute scale and zero point.
  2. Map real values to one of 256 levels with that scale.
  3. Run matrix multiplications in integer arithmetic, converting results back with the scale.
  4. Handle outlier dimensions separately at higher precision if needed.

In more detail

LLM.int8() runtime overhead and the SmoothQuant alternative

While LLM.int8() preserves accuracy via mixed-precision outlier decomposition, decomposing tensors at runtime adds latency overhead that can make it slower than FP16 at small batch sizes. SmoothQuant solves this offline by mathematically migrating activation outliers into weights, enabling fast, pure-INT8 W8A8 matrix multiplications in engines like vLLM and TensorRT-LLM.

Static versus dynamic calibration

INT8 uses two distinct calibration strategies: static quantisation pre-computes activation scales offline using representative data for maximum speed, while dynamic quantisation computes activation scales on the fly per token or tensor at runtime to handle shifting input distributions without calibration.

FP8 in the data centre, INT8 on CPUs and edge hardware

On current data centre GPUs (Hopper, Blackwell), FP8 has largely superseded INT8 for high-throughput LLM serving because FP8 Tensor Cores deliver comparable throughput with better dynamic range and simpler outlier handling. INT8 remains dominant on x86/ARM CPUs (VNNI/AMX/NEON), mobile NPUs and older GPU architectures.

Commonly confused terms

TermHow it differs
W8A8 versus weight-only INT8W8A8 quantises both weights and activations to 8 bits to run fast integer matrix multiplications, whereas W8A16 compresses only weights to 8 bits (saving memory bandwidth) while keeping activations in 16-bit floating point.

Why INT8 (8-bit integer) matters for on-premises AI

A paper on integer-arithmetic-only inference shows integer inference can be implemented more efficiently than floating point on common integer hardware and training can be co-designed to preserve accuracy after quantisation. A paper on 8-bit matrix multiplication for large transformers cuts the memory needed for inference by half while retaining full precision performance, handling the systematic outlier features that dominate predictive performance. Example calculation: a 7 billion parameter model's weights take about 14 GB at 16 bits and about 7 GB at 8 bits.

ON-PREMISES EXAMPLE

To run its in-store product recognition model on edge devices, a retailer converts it to INT8, measuring the accuracy gap on its test set and rolling it out to all stores once it is acceptable.

Common questions

Does INT8 reduce accuracy?

With proper scaling and calibration the gap is small for most models. Large language models may need special methods for outliers.

INT8 or FP8?

It depends on hardware and model. INT8 is more widely supported; FP8 offers wider range and stands out on newer hardware.

Sources

In the glossary: Glossary, A to C

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.