pith. sign in

arxiv: 2409.05207 · v1 · pith:GDCA2UNGnew · submitted 2024-09-08 · 💻 cs.LG

Low Latency Transformer Inference on FPGAs for Physics Applications with hls4ml

classification 💻 cs.LG
keywords fpgashls4mltransformerapplicationslatencyphysicsachievedapplicability
0
0 comments X
read the original abstract

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

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.