Generating texts with a large language model (LLM) consumes massive amounts of memory. Apart from the already-large model parameters, the key/value (KV) cache that holds information about previous tokens in a sequence can grow to be even larger than the model itself. This problem is exacerbated in one of the current LLM serving frameworks which reserves the maximum sequence length of memory for the KV cache to guarantee generating a complete sequence as they do not know the output sequence length. This restricts us to use a smaller batch size leading to lower GPU utilization and above all, lower throughput. We argue that designing a system with a priori knowledge of the output sequence can mitigate this problem. To this end, we propose S$^{3}$, which predicts the output sequence length, schedules generation queries based on the prediction to increase device resource utilization and throughput, and handle mispredictions. Our proposed method achieves 6.49$\times$ throughput over those systems that assume the worst case for the output sequence length.
RTGPU: Real-Time GPU Scheduling of Hard Deadline Parallel Tasks with Fine-Grain Utilization
IEEE(电气与电子工程师协会);NVIDIA(英伟达)
许多新兴的网络物理系统,如自动驾驶汽车和机器人,严重依赖人工智能和机器学习算法来执行重要的系统操作。由于这些高度并行的应用程序是计算密集型的,它们需要由图形处理单元(GPU)加速以满足严格的时序约束。然而,尽管GPU被广泛采用,但在提供严格的实时的保证的同时有效地调度多个GPU应用仍然是一个挑战。在本文中,我们提出了RTGPU,它可以调度多个GPU应用程序的执行在实时的,以满足硬期限。每个GPU应用程序可以有多个CPU执行和内存复制段,以及GPU内核。我们从一个模型开始,明确说明这些应用程序的CPU和内存复制段。然后,我们考虑GPU架构中的GPU内核的精确定时模型的发展,并利用称为持久线程的技术来实现细粒度的内核调度,通过交错执行提高性能。接下来,我们提出了一种通用的方法,用于实时的调度并行GPU应用程序。最后,调度多个并行GPU应用程序,我们提出了一个实用实时的调度算法的基础上联合调度和网格搜索(GPU内核段)与单处理器固定优先级调度(多CPU和内存复制段)。通过在一个真实的NVIDIA GTX 1080 Ti GPU系统上的全面验证和评估,我们的方法提供了比以前工作更好的可扩展性,并为满足多个GPU应用的硬性期限提供了实时的保证。
TriMoE: Augmenting GPU with AMX-Enabled CPU and DIMM-NDP for High-Throughput MoE Inference via Offloading
SKLP, Institute of Computing Technology, Chinese Academy of Sciences, Beijing, China(SKLP,计算技术研究所,中国科学院,北京);University of Chinese Academy of Sciences, Beijing, China(中国科学院大学,北京)
FlashAccel: Leveraging High-Bandwidth Flash (HBF) for High-Throughput LLM Inference
Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);School of Advanced Interdisciplinary Sciences, University of Chinese Academy of Sciences(中国科学院大学交叉科学学院);Institute of Microelectronics, Chinese Academy of Sciences(中国科学院微电子研究所)
A GPU-Outperforming FPGA Accelerator Architecture for Binary Convolutional Neural Networks
Arizona State University(亚利桑那州立大学);Nanyang Technological University(南洋理工大学)
基于FPGA的卷积神经网络(CNN)硬件加速器由于其比GPU更高的能量效率而受到广泛关注。然而,基于FPGA的解决方案要实现比GPU更高的吞吐量是具有挑战性的。在本文中,我们证明了当CNN在权重和激活的二进制约束下进行训练时,FPGA加速在吞吐量和能效方面都是一种优越的解决方案。具体来说,我们提出了一种优化的FPGA加速器架构,专为逐位卷积和归一化而设计,具有大规模的空间并行性和深流水线阶段。FPGA加速器的一个关键优势是其性能对数据批量大小不敏感,而GPU加速的性能在很大程度上取决于数据的批量大小。实验结果表明,在Virtex-7 FPGA上运行的二进制CNN的加速器架构比Titan X GPU快8.3倍,能效高75倍,可以处理小批量的在线个人请求。对于处理大批量静态数据,该解决方案在吞吐量方面与Titan X GPU不相上下,同时提供9.5倍的能效。