How HF kernels replace torch ops: SiLU case with compiled implementations
tomaarsen · x · 2026-12-03
tomaarsen shows a concrete example of Sentence Transformers adopting Hugging Face kernels: Qwen's SiLU activation, normally a sequence of torch ops, is replaced by a class calling a precompiled implementation from kernels-community/activation. The repo ships compiled variants for multiple activations (SiluAndMul, Silu, Gelu, GeluTanh) across ABI/platform targets, built with kernel-builder and torch.compile-compatible.
More from Infra
- NativX Wants to Trade Compute as a Commodity, Priced in 20 kWh Units — clemnt · 2026-12-03
- Ornn Builds an Integrated Compute Marketplace With Delivery — clemnt · 2026-12-03
- Compute Desk Bets on Infrastructure for Trading Compute — clemnt · 2026-12-03
- Luxor Brings Bitcoin Mining Derivatives Expertise to AI Compute — clemnt · 2026-12-03
- 12 Startups Are Building Financial Markets for GPU Compute — clemnt · 2026-12-03
- Compute Financialization: Exchanges vs. Infrastructure vs. Risk-Takers — clemnt · 2026-12-03