int8 quantization plus fp16 rescoring: 1.4M embeddings retrieved in under 2ms

tomaarsen · x · 2026-11-10

Sentence Transformers maintainer Tom Aarsen details a two-stage retrieval trick: int8 quantization isn't lossless for recall, but an int8 index first surfaces candidates, then fp16 embeddings loaded from disk are rescored against the fp32 query to produce a new top 30.

It ties into his Hugging Face article on binary and scalar embedding quantization, which covers theory and practice of quantizing embeddings for faster, cheaper retrieval, including a demo over 41 million Wikipedia texts.

Related event: int8 Quantization Plus Rescoring Achieves Near-Lossless Millisecond Retrieval(3 posts)→

Original post →

More from Infra

Infra channel →