arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.01783cs.DCcs.AIcs.LG
收藏

面向可扩展百万级Token推理的上下文并行

Context Parallelism for Scalable Million-Token Inference

Meta Platforms, Inc.(元平台公司)

Amy Yang, Jingyi Yang, Aya Ibrahim, Xinfeng Xie, Bangsheng Tang, Grigory Sizov, Jeremy Reizenstein, Jongsoo Park, Jianyu Huang

AI总结:

本文提出上下文并行方法,在128块H100 GPU上实现Llama3 405B模型百万级token预填充仅需77秒,通过两种无损环形注意力变体覆盖多种场景,并在RDMA和TCP互连下均展现近线性扩展。

摘要:

我们提出了用于长上下文大语言模型推理的上下文并行方法,该方法在多达16个节点的128块H100 GPU上实现了长上下文预填充延迟的近线性扩展。特别地,我们的方法在77秒内完成了Llama3 405B模型的1M上下文预填充(93%的并行化效率,63%的FLOPS利用率),并在3.8秒内完成了128K上下文预填充。我们开发了两种无损精确环形注意力变体:pass-KV和pass-Q,以覆盖广泛的使用场景,并达到最先进的性能:完整预填充、持久KV预填充和解码。在通过RDMA和TCP互连的H100 GPU主机上的基准测试均显示了长上下文预填充的相似可扩展性,证明我们的方法在具有中低主机间带宽的常见商业数据中心中扩展良好。

英文摘要:

We present context parallelism for long-context large language model inference, which achieves near-linear scaling for long-context prefill latency with up to 128 H100 GPUs across 16 nodes. Particularly, our method achieves 1M context prefill with Llama3 405B model in 77s (93% parallelization efficiency, 63% FLOPS utilization) and 128K context prefill in 3.8s. We develop two lossless exact ring attention variants: pass-KV and pass-Q to cover a wide range of use cases with the state-of-the-art performance: full prefill, persistent KV prefill and decode. Benchmarks on H100 GPU hosts inter-connected with RDMA and TCP both show similar scalability for long-context prefill, demonstrating that our method scales well using common commercial data center with medium-to-low inter-host bandwidth.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑