SubGPU流水线:面向大语言模型推理的GPU内细粒度空间并行
SubGPU Pipelining: Intra-GPU Fine-Grained Spatial Parallelism for LLM Inference
AI总结:
本文提出SubGPU流水线这一GPU内细粒度空间并行模型,经模拟与硅实验验证,该模型可提升LLM推理的内存带宽利用率与执行效率,在指定部署下实现了吞吐量与延迟的优化。
摘要:
大语言模型(LLM)的解码过程主要由短时长、以内存为瓶颈的内核主导,这些内核会突发式地使用片上执行资源和内存带宽。本文提出SubGPU流水线,一种细粒度的GPU内空间执行模型,该模型将算子图切割为有序的连续段,将这些段绑定到由不相交的流式多处理器(SM)池支持的空间阶段,并将微批次通过生成的调度流传输。选择图切割、段到阶段的绑定、每个阶段的SM分配以及微批次大小是一个耦合优化问题:每个选择都会改变其他选择的重叠模式、共享资源竞争、缓存状态和执行时间。我们使用GPT-OSS 120B工作负载和32-GPU B200部署设置,通过模拟和硅实验对SubGPU流水线进行评估。分析型共享资源模拟器在SubGPU流水线结构和批次大小中搜索,以映射每用户/每GPU吞吐量的帕累托前沿。在匹配每GPU吞吐量时,建模的SubGPU前沿提供比时间执行高最多2.2倍的每用户吞吐量;在匹配每用户吞吐量时,它提供比时间执行高最多1.9倍的每GPU吞吐量。为了测试物理可行性并进一步验证模拟结果,我们使用一个B200 GPU模拟32-GPU B200部署,开展硅实验。实验使用CUDA Green Contexts和TensorRT-LLM内核,评估了全局批次为2048时的选定两阶段流水线配置。结果显示,SubGPU流水线将平均DRAM读写总吞吐量从峰值的71.8%提升至83.6%,并将36层解码器迭代时间减少了10.33%。
英文摘要:
Large language model (LLM) decode is dominated by short, predominantly memory-bound kernels that make bursty use of on-chip execution resources and memory bandwidth. This paper introduces SubGPU Pipelining, a fine-grained, intra-GPU spatial execution model that cuts an operator graph into ordered contiguous segments, binds those segments to spatial stages backed by disjoint streaming-multiprocessor (SM) pools, and streams microbatches through the resulting schedule. Selecting the graph cuts, segment-to-stage binding, per-stage SM allocation, and microbatch size is a coupled optimization problem: each choice changes the overlap pattern, shared-resource contention, cache state, and execution times of the others. We evaluate SubGPU Pipelining through both simulation and silicon experiment using the GPT-OSS 120B workload with 32-GPU B200 deployment settings. The analytical shared-resource simulator searches across SubGPU pipeline structures and batch sizes to map the per-user/per-GPU throughput Pareto frontier. At matched per-GPU throughput, the modeled SubGPU frontier provides up to 2.2x higher per-user throughput than temporal execution, and at matched per-user throughput it provides up to 1.9x higher per-GPU throughput. To test physical feasibility and further validate the simulation results, silicon experiments are performed, using one B200 GPU to emulate a 32-GPU B200 deployment. The experiment evaluates one selected two-stage pipeline configuration at global batch 2,048 using CUDA Green Contexts and TensorRT-LLM kernels. Results show that SubGPU Pipelining improves mean DRAM read-plus-write throughput from 71.8% to 83.6% of peak, and reduces the 36-layer decoder iteration time by 10.33%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。