在FPGA中部署AI推理引擎的框架实现
Implementation of a framework for deploying AI inference engines in FPGAs
AI总结:
本文提出SLAC神经网络库(SNL)框架,利用Xilinx HLS和类Keras API将机器学习模型部署到FPGA边缘端,通过流式数据、权重在线重部署和量化优化,在LCLS2实验中实现低延迟、高帧率的实时数据缩减。
摘要:
LCLS2自由电子激光(FEL)将以高达1 MHz的频率向光束线实验产生X射线脉冲。这些实验将需要新型的超高重复频率(UHR)探测器,这些探测器能够在100 kHz以上的速率下运行,并产生超过1 TB/s的数据吞吐量,这样的数据速率需要极其庞大的存储基础设施投资。机器学习已经展示出消化大型数据集以提取相关洞见的潜力,然而当前的实现在实时数据缩减目标方面表现出过高的延迟。SLAC致力于创建一个软件框架,该框架将机器学习结构转换为部署在数据链边缘、靠近仪器的现场可编程门阵列(FPGA)上。该框架利用赛灵思(Xilinx)的HLS框架,提供了一个以TensorFlow库的开源Keras接口为模型的API。这个SLAC神经网络库(SNL)框架采用流式数据方法设计,优化层与层之间的数据流,同时最小化缓冲数据缓冲需求。目标是确保尽可能高的帧率,同时将最大延迟限制在实验需求范围内。我们的框架旨在确保网络层的RTL实现,支持在训练后无需重新综合即可完全重新部署权重和偏置。通过量化降低已实现网络精度的能力对于优化FPGA中DSP和内存资源的使用是必要的。我们目前拥有该工具集的初步版本,并正在对通用示例网络以及为特定LCLS2实验设计的网络进行实验。
英文摘要:
The LCLS2 Free Electron Laser FEL will generate xray pulses to beamline experiments at up to 1Mhz These experimentals will require new ultrahigh rate UHR detectors that can operate at rates above 100 kHz and generate data throughputs upwards of 1 TBs a data velocity which requires prohibitively large investments in storage infrastructure Machine Learning has demonstrated the potential to digest large datasets to extract relevant insights however current implementations show latencies that are too high for realtime data reduction objectives SLAC has endeavored on the creation of a software framework which translates MLs structures for deployment on Field Programmable Gate Arrays FPGAs deployed at the Edge of the data chain close to the instrumentation This framework leverages Xilinxs HLS framework presenting an API modeled after the open source Keras interface to the TensorFlow library This SLAC Neural Network Library SNL framework is designed with a streaming data approach optimizing the data flow between layers while minimizing the buffer data buffering requirements The goal is to ensure the highest possible framerate while keeping the maximum latency constrained to the needs of the experiment Our framework is designed to ensure the RTL implementation of the network layers supporting full redeployment of weights and biases without requiring resynthesis after training The ability to reduce the precision of the implemented networks through quantization is necessary to optimize the use of both DSP and memory resources in the FPGA We currently have a preliminary version of the toolset and are experimenting with both general purpose example networks and networks being designed for specific LCLS2 experiments.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。