Quantization
By default, models are served using 16-bit floating-point (FP16) precision. Quantization reduces the number of bits required to serve the model, improving performance and reducing cost to serve. However, this can changes model numerics which may introduce small changes to the output.
Take a look at our blog post for a detailed treatment of how quantization affects model quality.
Quantizing a model
A model can be quantized to 8-bit floating-point (FP8) precision using using firectl prepare-model
:
You can check on the status of preparation by running
and checking if the state is still in PREPARING
. A successfully prepared model will have the desired precision added
to the Precisions
list.
Creating an FP8 deployment
By default, creating a dedicated deployment will use the FP16 checkpoint. To see what precisions are available for a model, run:
The Precisions
field will indicate what precisions the model has been prepared for.
To use the quantized FP8 checkpoint, pass the --precision
flag:
Was this page helpful?