TPU top-k retrieval benchmark: stock approx_max_k beats hand-written Pallas kernels ~11x

petrusenko_max · x · 2026-11-24

The author open-sourced tpu-retrieval-bench, comparing exact top-k embedding retrieval on TPU across variants: a float64 NumPy oracle, jax.jit matmul + lax.topk, blockwise topk, and fused Pallas kernels.

Related event: Stock jax.lax.approx_max_k beats hand-written Pallas top-k kernels by ~11x on TPU v5e(2 posts)→

Original post →

More from Infra

Infra channel →