FP8_DYNAMIC quantization of cross-encoder/msmarco-MiniLM-L12-en-de-v1, produced with
llm-compressor 0.13.0 and measured end to end on
NVIDIA H100 80 GB with vLLM 0.26.0.
Only the Linear layers of the encoder are quantized; the vocabulary, position and token-type embeddings, the pooler and any classification head stay in bf16.
| variant | size | rerank nDCG@10 | MRR@10 | pairs/s (bs=256) |
|---|---|---|---|---|
| fp32 source | 449 MiB | 0.9474 | 0.9323 | 3775 |
| FP8 | 225 MiB | 0.9471 | 0.9321 | 3859 |
| NVFP4 | 217 MiB | 0.9516 | 0.9390 | – |
Reranking quality is preserved, but be clear about what the size number means: the source ships in fp32, and simply loading it in bf16 also gives 225 MiB. Against a bf16 baseline this FP8 checkpoint saves nothing.
The reason is structural: 96M of this model's 117.7M parameters (82%) are the vocabulary embedding,
and weight quantization only touches the 21.6M parameters in the Linear layers. Quantizing the
embedding too would give 81 MiB, but vLLM 0.26 cannot serve that — BertEmbedding.__init__ never
receives a quant_config (vllm/model_executor/models/bert.py:50), so its VocabParallelEmbedding
is always built unquantized and loading fails with
no module or parameter named 'embeddings.word_embeddings.weight_packed'.
SciFact: 300 queries over 5183 documents, nDCG@10. STS-B de: mteb/stsb_multi_mt (1379 pairs). STS17 en-de: mteb/sts17-crosslingual-sts (250 pairs). Reranking: 1 positive + 19 sampled negatives per query. Throughput over 4096 multilingual texts through the vLLM OpenAI endpoint.
vllm serve mbehr90/msmarco-MiniLM-L12-en-de-v1-fp8 --runner pooling