flash-comm:用于LLM解码的自同步集体通信
flash-comm: Self-Synchronizing Collective Communication for LLM Decoding
AI总结:
flash-comm是一种通信库,通过自同步传输等技术优化LLM解码的集体通信,在8个NVIDIA B300 GPU服务器上,可降低全归约、全收集延迟及端到端解码的每输出令牌时间。
摘要:
我们提出了flash-comm,一种通信库,通过将就绪同步与数据移动融合,实现LLM解码的高效传输。flash-comm引入自同步传输,其中每个数据块携带自身就绪的证明,使接收方无需单独的GPU间屏障即可直接验证所需的块。基于该原理,成本引导协议选择器会根据消息大小和参与GPU的数量调整就绪编码,平衡同步开销与额外数据传输成本。flash-comm还将传输顺序与归约顺序解耦,以在异步数据到达时保持跨GPU的结果一致性。在配备8个NVIDIA B300 GPU的服务器上,与最先进的全归约实现custom AR v2相比,flash-comm将全归约延迟中位数降低28.8%,最高降低43.7%;在端到端解码中,将每输出令牌时间(TPOT)降低1.7%-6.8%。需注意,全归约占基线解码时间的11.4%,这限定了仅优化该操作可实现的延迟降低幅度。该机制还支持独立的全收集,在8个B300 GPU上,将延迟中位数降低23.8%,最高降低58.9%。
英文摘要:
We present flash-comm, a communication library that achieves efficient transport for LLM decoding by fusing readiness synchronization with data movement. flash-comm introduces self-synchronizing transfers in which each data block carries evidence of its readiness, allowing receivers to directly validate the blocks they need without separate inter-GPU barriers. Based on this principle, a cost-guided protocol selector adapts the readiness encoding to message size and the number of participating GPUs, balancing synchronization overhead against additional data-transfer cost. flash-comm further decouples transport order from reduction order to preserve result consistency across GPUs under asynchronous data arrivals. On a server with eight NVIDIA B300 GPUs, flash-comm reduces all-reduce latency by a median of 28.8% and up to 43.7% compared with custom AR v2 (the state-of-the-art all-reduce implementation). In end-to-end decoding, flash-comm reduces time per output token (TPOT) by 1.7-6.8%. Note that all-reduce accounts for 11.4% of the baseline decoding time, which bounds the latency reduction possible from optimizing this operation alone. The same mechanism also supports standalone all-gather, reducing latency by a median of 23.8% and up to 58.9% across eight B300 GPUs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。