Ring attention implementation with flash attention for efficient long-context LLM training. Supports distributed memory and compute parallelism. Current version: 0.1.8, actively maintained on GitHub, weekly releases.
pip install ring-flash-attnNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: compute ring flash attention with default settings. Requires CUDA and flash-attn installed.
Avoid applying torch.compile to models using ring_flash_attn_func; rely on native eager execution.
Ensure seqlen % world_size == 0 before calling the function.
Use 'from ring_flash_attn import ring_flash_attn_func' instead.