A Flexible Template for Edge Generative AI With High-Accuracy Accelerated Softmax and GELU
A Flexible Template for Edge Generative AI With High-Accuracy Accelerated Softmax and GELU
Andrea Belano,Yvan Tortorella,3 Authors,Francesco Conti
Abstract
Transformer-based generative Artificial Intelligence (GenAI) models achieve remarkable results in a wide range of fields, including natural language processing, computer vision, and audio processing. However, this comes at the cost of increased complexity and the need of sophisticated non-linearities such as softmax and GELU. Even if Transformers are computationally dominated by matrix multiplications (MatMul), these non-linearities can become a performance bottleneck, especially if dedicated hardware is used to accelerate MatMul operators. In this work, we introduce a GenAI BFloat16 Transformer acceleration template based on a heterogeneous tightly-coupled cluster containing 256KiB of shared SRAM, 8 general-purpose RISC-V cores, a
