Low Latency Transformer Inference on FPGAs for Physics Applications with hls4ml
Jiang, Zhixing, Yin, Dennis, Chen, Yihui, Khoda, Elham E, Hauck, Scott, Hsu, Shih-Chieh, Govorkova, Ekaterina, Harris, Philip, Loncar, Vladimir, Moreno, Eric A.
–arXiv.org Artificial Intelligence
This study presents an efficient implementation of transformer architectures in Field-Programmable Gate Arrays(FPGAs) using hls4ml. We demonstrate the strategy for implementing the multi-head attention, softmax, and normalization layer and evaluate three distinct models. Their deployment on VU13P FPGA chip achieved latency less than 2us, demonstrating the potential for real-time applications. HLS4ML compatibility with any TensorFlow-built transformer model further enhances the scalability and applicability of this work. Index Terms: FPGAs, machine learning, transformers, high energy physics, LIGO
arXiv.org Artificial Intelligence
Sep-8-2024
- Country:
- North America > United States
- Washington > King County
- Seattle (0.04)
- New York > New York County
- New York City (0.04)
- Massachusetts > Middlesex County
- Cambridge (0.04)
- Washington > King County
- North America > United States
- Genre:
- Research Report (0.64)
- Industry:
- Media (0.34)
- Technology: