Tokenization refactor speeds up Sentence Transformers, biggest gains for static embedding models

tomaarsen · x · 2026-10-15

Sentence Transformers maintainer tomaarsen highlights Simon Brandeis' tokenization refactor, which meaningfully speeds up inference for some of the most popular Sentence Transformer models, with static embedding models benefiting the most.

The thread links to an in-browser demo measuring tokenization speed before and after the refactor, plus HF's earlier work on static embeddings that run 100-400x faster on CPU than models like all-mpnet-base-v2 while keeping 85%+ quality — enabling on-device and in-browser use.

Original post →

More from Models

Models channel →