Sentence Transformers to default to optimized kernels for faster embeddings
tomaarsen · x · 2026-12-03
Sentence Transformers 维护者 Sean Pedersen 宣布,该项目即将默认集成 Hugging Face 的 kernels 优化内核,无需额外安装即可让 embeddings 与 reranking 推理明显加速。核心维护者 tomaarsen 解释:ST 基于 PyTorch,大量 torch 算子按顺序执行,其中一些高频算子可以优化——kernel 就是用编译优化版实现替换这些 torch 算子序列。例如 Qwen 使用的 SiLU 激活,原本是一串 torch 操作,现在被替换为 kernels-community 中预编译的优化实现。
More from Infra
- South Korea hits $1T annual exports as chip shipments surge 265% to $63bn in a month — McDonaghMatthew · 2026-12-03
- How HF kernels replace torch ops: SiLU case with compiled implementations — tomaarsen · 2026-12-03
- Oppenheimer models Starlink at 100M broadband and 500M mobile subs by 2030 — XFreeze · 2026-12-03
- Building a GPU Simulator to Optimize Kernels Without Real Hardware — hargup13 · 2026-12-03
- 70.9 tok/s peak decode on an 8GB RTX 4060 with speculative decoding and GSQ quants — AIFlow_ML · 2026-12-03
- Grafting 168 attention tensors gets Caveling-2-Mini to ~95 tok/s on an RX 7900 XT — BitterNocturne · 2026-12-03