Ring Attention leverages blockwise computation of self-attention on multiple GPUs and enables training and inference of sequences that would be too long for a single devices.
This repository contains notebooks, experiments and a collection of links to papers and other material related to Ring Attention.
Paper: Ring Attention with Blockwise Transformers for Near-Infinite Context
Paper: World Model on Million-Length Video And Language With RingAttention
Paper: Striped Attention: Faster Ring Attention for Causal Transformers, code: exists-forall/striped_attention
Paper (2022): 4D parallelism: Sequence Parallelism: Long Sequence Training from System Perspective
related: Flash-Decoding for long-context inference (together.ai blog)
Paper: Online normalizer calculation for softmax (NVIDIA, 2018)
LWM model in ollama: https://ollama.com/ifioravanti/lwm
Phil Wang's (lucidrain) pytorch impl: lucidrains/ring-attention-pytorch
Zilin Zhu's nice zhuzilin/ring-flash-attention implementation
send(), recv(), broadcast(), etc.)Contact us on the GPU MODE discord server: https://discord.gg/gpumode, PRs are welcome (please create an issue first).
Python
85.8%
Jupyter Notebook
14.2%
Ring Attention leverages blockwise computation of self-attention on multiple GPUs and enables training and inference of sequences that would be too long for a single devices.
This repository contains notebooks, experiments and a collection of links to papers and other material related to Ring Attention.
Paper: Ring Attention with Blockwise Transformers for Near-Infinite Context
Paper: World Model on Million-Length Video And Language With RingAttention
Paper: Striped Attention: Faster Ring Attention for Causal Transformers, code: exists-forall/striped_attention
Paper (2022): 4D parallelism: Sequence Parallelism: Long Sequence Training from System Perspective
related: Flash-Decoding for long-context inference (together.ai blog)
Paper: Online normalizer calculation for softmax (NVIDIA, 2018)
LWM model in ollama: https://ollama.com/ifioravanti/lwm
Phil Wang's (lucidrain) pytorch impl: lucidrains/ring-attention-pytorch
Zilin Zhu's nice zhuzilin/ring-flash-attention implementation
send(), recv(), broadcast(), etc.)Contact us on the GPU MODE discord server: https://discord.gg/gpumode, PRs are welcome (please create an issue first).
Python
85.8%
Jupyter Notebook
14.2%