Attention in SRAM on Tenstorrent Grayskull
Not on the map. Why?
Abstract (arXiv)
When implementations of the Transformer's self-attention layer utilize SRAM instead of DRAM, they can achieve significant speedups. The Tenstorrent Grayskull architecture provides a large SRAM, distributed across a grid of cores. This work presents a fused kernel for Grayskull, that exclusively utilizes its large SRAM by combining matrix multiplication, attention score scaling and Softmax operations. Additionally, a dedicated Softmax kernel utilizing the SRAM and a CPU implementation serving as a baseline are presented. The Softmax operation consumes most of the runtime in the computation of attention weights from queries and keys on Grayskull. The speedup of the dedicated Softmax kernel compared to the CPU implementation is up to 10 ×, and the Softmax implementation inside the fused kernel is approximately 1.8 × faster than the dedicated Softmax kernel. The time and memory complexity of all implementations is quadratic in sequence length. Currently, the Grayskull e150 is approximately 30 × cheaper for the general public than an Nvidia H100 PCIe (a state-of-the-art GPU) and offers approximately 1.5 × more SRAM.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 9 of its 19 references that are in the map. First posted on arXiv 18 Jul 2024.
Builds on
9 of 19 references.
References · 9
- 2017Attention Is All You Needcited by 60,361
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2020Efficient Content-Based Sparse Attention with Routing Transformerscited by 471
- 2021Scatterbrain: Unifying Sparse and Low-rank Attention Approximationcited by 130
Built on by
Citing papers per year: 2026: 1.
1 paper.