Menu

#Pallas

3 posts

Feed·
3 of 3 posts
FlashAttention on TPUs (splash_sdpa), Custom Verified Pallas Kernels & XProf in TorchTPU (Part 4)
📰
0Read More

FlashAttention on TPUs (splash_sdpa), Custom Verified Pallas Kernels & XProf in TorchTPU (Part 4)

DEV Community: pytorch·Ahmed Elnaggar·1 day ago
#C6u6W9VY
#devtopytorch#devto#dev#torch#pallas

Eliminate O(S^2) attention HBM bottlenecks on Google TPUs with torch.tpu.ops.splash_sdpa (6.39x faster at 4K, 1.2 GiB vs OOM at 8K), author custom differentiable Pallas kernels verified with pallas.verifier.verify, control 6-pass MXU float32 precision,…

15s