FlashAttention on TPUs (splash_sdpa), Custom Verified Pallas Kernels & XProf in TorchTPU (Part 4)
Companion GitHub Repository: agemagician/torchtpu-zero-to-hero 12,115.8 MiB -> 610.5 MiB at 4K Context, and 1,221.0 MiB at 8K Where Standard Attention OOMs At long context lengths ( S >= 4,096 ), materializing the quadratic [B, H, S, S] attention score matrix in off-chip High Bandwidth Memory (HBM)…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-12-04 13:43 · DEV Community — Machine Learning
FlashAttention on TPUs (splash_sdpa), Custom Verified Pallas Kernels & XProf in TorchTPU (Part 4)