Attention is all you profile: A deep dive into PyTorch attention performance
Hugging Face's profiling series reaches attention mechanisms, revealing how naive implementations, in-place ops, and SDPA backends show radically different kernel traces—and performance.