PyTorch Replaces CUDA with FBTriton for Embedding Kernels: 1.28x Faster Forward, 2x Backward
PyTorch · x · 2026-10-07
Meta's team migrated Table Batched Embedding (TBE) kernels in PyTorch recommender systems from legacy CUDA to Triton (FBTriton), achieving up to 1.28x faster forward passes and 2x faster backward passes.
Key technical points
- TBE fuses embedding lookup and pooling across many tables into a single GPU launch, cutting launch overhead and improving memory efficiency
- Two forward implementations: a generic gather path and a fast path using a small-table histogram
- Tuned bags-per-program and gather width; int32 indices/offsets when ranges fit under 2^31, halving index storage
A deep engineering writeup with measured gains and future optimization directions — highly relevant for teams serving large-scale embeddings across sharded GPUs.
More from Infra
- 79% of AI GPUs Sit Idle as Firms Hoard Billions in Dark Compute — Glittering_Depth_722 · 2026-11-29
- Betelgeuse v0.8 hits 50.3 tok/s on RTX 3060 with a CPU expert-prefetch oracle, bit-exact — zyxciss · 2026-11-29
- GGUF-Radar gets a Windows UI: single-exe scanner for malware in GGUF models — Electronic-Metal2391 · 2026-11-29
- Baseten's 'Inference Engineering' book back in print, free copies at re:Invent — philipkiely · 2026-11-29
- Debate: inference demand makes H100s more valuable while NVDA stock heads south — teortaxesTex · 2026-11-29
- Prefetching MoE experts 2 layers ahead boosts V100 decode speed 29.9% — WaroftanksPro · 2026-11-29