zhuzilin/ring-flash-attention
Ring attention implementation with flash attention observed · 2026-08-28
Health v2 · maintenance only
44/100
- Activity 41
- Release rhythm 35
- Longevity 66
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 42
- age_days: 924
- days_rel: 357
- days_push: 357
- n_releases_24m: 8
Adoption not part of the score
1049 stars · 101 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Python library implementing RingAttention on top of FlashAttention for distributed long-context transformer training. It provides varlen and batch APIs, zigzag/stripe variants, Llama3-style context parallelism, and a HuggingFace model adapter.
Use cases
- train LLMs with sequences longer than fit on one GPU
- enable context parallelism in HuggingFace training runs
- pack variable-length samples with ring attention
- use llama3-style context parallelism for varlen training
- reduce memory overhead of attention across multiple GPUs
- substitute flash attention in transformers models with ring attention
When to choose
- you need to train or fine-tune transformers on very long sequences across multiple GPUs
- you want drop-in ring/context-parallel attention compatible with flash_attention_2 and HuggingFace models
- you need varlen (packed samples) support with low memory overhead
When to avoid
- single-GPU training where flash attention alone suffices
- inference-only workloads without distributed setup
- non-CUDA or non-NCCL environments
Facets
library · maturity active
machine-learning llm-training gpu-computing deep-learning large-language-models gpu-computing python ring-attention flash-attention context-parallelism distributed-training transformers long-context varlen huggingface gpu linux
1 source
- readme: https://github.com/zhuzilin/ring-flash-attention · fetched 2026-08-28 · 70d29a2e5095
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| zhuzilin/ring-flash-attention | main | 44 |
For agents
markdown · JSON · MCP: product_card(name="zhuzilin/ring-flash-attention")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem