Flash Attention 2 kernels nearly double Sentence Transformers throughput to ~450 passages/s

tomaarsen · x · 2026-12-02

Sentence Transformers maintainer tomaarsen reports that Flash Attention 2 with automatic input unpadding boosts embedding throughput from 200 to 450 passages/s versus SDPA.

The 50% gain comes from Qwen RMSNorm, Rotary, and SiLU kernels that are downloaded and applied automatically in transformers. He expects further gains as the community keeps building better kernels.

Related event: Sentence Transformers Doubles Embedding Throughput with Flash Attention 2(2 posts)→

Original post →

More from Infra

Infra channel →