Skip to content

Floating Point 8-bit

Floating Point 8-bit (FP8) enables faster and more memory-efficient inference by representing model weights and activations in 8-bit floating-point precision. The FP8 workflow involves three main stages:

  • Calibration: Analyzing model weights and activations to determine optimal scaling factors and value ranges for accurate conversion.

  • Quantization: Converting the model from higher precision, such as FP16, to FP8 using the calibrated ranges to minimize accuracy loss.

  • Inference: Running the quantized model using FP8 computations, achieving faster execution with lower memory overhead while maintaining model quality.

Calibration

Before running inference with FP8 precision on the Intel® Gaudi® HPU, the model must first be calibrated. Calibration generates the measurements, quantization files, and configuration data required for accurate FP8 inference. The vLLM Hardware Plugin for Intel® Gaudi® uses the Intel® Neural Compressor (INC) package to perform this calibration and enable efficient FP8 inference on the HPU. For more information about the calibration process and detailed setup instructions, refer to the Calibration configuration guide.

Quantization

Quantization trades off model precision for smaller memory footprint, allowing large models to be run on a wider range of devices. The Intel® Gaudi® Backend supports following quantization backends:

  • Intel® Neural Compressor
  • Auto_Awq
  • Gptqmodel

For more information and detailed configuration recommendations for each backend, see the Quantization and Inference configuration guide.

Inference

The inference stage involves executing a trained model to generate predictions or outputs from new input data. After calibration and quantization, vLLM Hardware Plugin for Intel® Gaudi® runs the optimized model on supported hardware to deliver fast and accurate inference results. For more information and examples for different quantization backends, see the Quantization and Inference guide.