[Doc] Document FP8 GEMM kernel selection and Blackwell support (#49936)
Signed-off-by: harjoth <harjoth.khara@gmail.com> Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
This commit is contained in:
co-authored by
Claude
Harry Mellor
parent
191cecd51e
commit
40824284bc
@@ -127,6 +127,7 @@
|
|||||||
/tests/models/transformers @hmellor
|
/tests/models/transformers @hmellor
|
||||||
|
|
||||||
# Docs
|
# Docs
|
||||||
|
/docs/features/quantization @mgoin @robertgshaw2-redhat @tlrmchlsmth @yewentao256 @pavanimajety @zyongye
|
||||||
/docs/mkdocs @hmellor
|
/docs/mkdocs @hmellor
|
||||||
/docs/**/*.yml @hmellor
|
/docs/**/*.yml @hmellor
|
||||||
/requirements/docs.txt @hmellor
|
/requirements/docs.txt @hmellor
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# FP8 W8A8
|
# FP8 W8A8
|
||||||
|
|
||||||
vLLM supports FP8 (8-bit floating point) weight and activation quantization using hardware acceleration on GPUs such as Nvidia H100 and AMD MI300x.
|
vLLM supports FP8 (8-bit floating point) weight and activation quantization using hardware acceleration on GPUs such as Nvidia H100 and AMD MI300x.
|
||||||
Currently, only Hopper and Ada Lovelace GPUs are officially supported for W8A8.
|
Ada Lovelace, Hopper, and Blackwell GPUs are supported for W8A8.
|
||||||
Turing/Ampere GPUs are supported for W8A16 (weight-only FP8) utilizing Marlin kernels.
|
Turing/Ampere GPUs are supported for W8A16 (weight-only FP8) utilizing Marlin kernels.
|
||||||
Quantization of models with FP8 allows for a 2x reduction in model memory requirements and up to a 1.6x improvement in throughput with minimal impact on accuracy.
|
Quantization of models with FP8 allows for a 2x reduction in model memory requirements and up to a 1.6x improvement in throughput with minimal impact on accuracy.
|
||||||
|
|
||||||
@@ -13,9 +13,27 @@ The FP8 types typically supported in hardware have two distinct representations,
|
|||||||
- **E5M2**: Consists of 1 sign bit, 5 exponent bits, and 2 bits of mantissa. It can store values up to +/-57344, +/- `inf`, and `nan`. The tradeoff for the increased dynamic range is lower precision of the stored values.
|
- **E5M2**: Consists of 1 sign bit, 5 exponent bits, and 2 bits of mantissa. It can store values up to +/-57344, +/- `inf`, and `nan`. The tradeoff for the increased dynamic range is lower precision of the stored values.
|
||||||
|
|
||||||
!!! note
|
!!! note
|
||||||
FP8 computation is supported on NVIDIA GPUs with compute capability >= 8.9 (Ada Lovelace, Hopper).
|
FP8 computation is supported on NVIDIA GPUs with compute capability >= 8.9 (Ada Lovelace, Hopper, Blackwell).
|
||||||
FP8 models will run on compute capability >= 7.5 (Turing) as weight-only W8A16, utilizing FP8 Marlin.
|
FP8 models will run on compute capability >= 7.5 (Turing) as weight-only W8A16, utilizing FP8 Marlin.
|
||||||
|
|
||||||
|
!!! note "GEMM kernel selection"
|
||||||
|
vLLM picks an FP8 GEMM kernel automatically at load time and logs a
|
||||||
|
`Selected <kernel> for <module>` line at startup. For block-quantized
|
||||||
|
checkpoints on CUDA it tries, in order: a FlashInfer/DeepGEMM hybrid
|
||||||
|
(Hopper only), DeepGEMM, CUTLASS, Marlin, Triton, Humming, then a
|
||||||
|
PyTorch fallback. GPUs without native FP8 support (e.g. Turing/Ampere)
|
||||||
|
land on weight-only (W8A16) Marlin.
|
||||||
|
|
||||||
|
If inference hangs with no error, try `VLLM_USE_DEEP_GEMM=0` or
|
||||||
|
`--linear-backend cutlass`.
|
||||||
|
|
||||||
|
`--linear-backend` only affects quantized linear layers; MoE experts
|
||||||
|
use the separate `--moe-backend`. An explicit backend that is not
|
||||||
|
supported on your hardware raises an error rather than falling back.
|
||||||
|
The full list is documented under
|
||||||
|
[`KernelConfig`](../../../cli/serve.md#kernelconfig) in the CLI
|
||||||
|
reference and shown by `vllm serve --help=KernelConfig`.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
To produce performant FP8 quantized models with vLLM, you'll need to install the [llm-compressor](https://github.com/vllm-project/llm-compressor/) library:
|
To produce performant FP8 quantized models with vLLM, you'll need to install the [llm-compressor](https://github.com/vllm-project/llm-compressor/) library:
|
||||||
|
|||||||
Reference in New Issue
Block a user