Skip to content

Ring Attention with Blockwise Transformers for Near-Infinite Context

Authors: Hao Liu, Matei Zaharia, Pieter Abbeel (2023)

arXiv: 2302.14045

Domains

Long Context

TLDR (English)

Distributes an ultra-long context as blocks across devices for blockwise attention: each device keeps only its own KV block while blocks circulate around a ring of devices for reuse, overlapping communication with compute. Context length can scale to near-infinity bounded by the sum of cluster memory, founding the context-parallelism line of work.

TLDR(中文)

把超长上下文切成 block 分布到多台设备上做分块注意力:每卡只保存自己那段 KV block,block 沿设备环逐个轮转复用,通信与计算重叠进行。在集群显存总和允许的范围内上下文长度可近乎无限扩展,是上下文并行(context parallelism)的奠基工作。

Appears in These Articles

Co-cited Papers

These papers appear in the same articles as this one

Related Papers

Other papers in the same domain