---
title: "long-context-attention"
type: "tool"
slug: "feifeibear-long-context-attention"
canonical_url: "https://www.graphcanon.com/tools/feifeibear-long-context-attention"
github_url: "https://github.com/feifeibear/long-context-attention"
homepage_url: null
stars: 678
forks: 80
primary_language: "Python"
license: "Apache-2.0"
archived: false
categories: ["llm-frameworks", "model-training", "inference-serving"]
tags: ["ring-attention", "python", "llm-inference", "pytorch", "llm-training", "attention-is-all-you-need", "deepspeed-ulysses"]
updated_at: "2026-07-11T11:44:51.648169+00:00"
---

# long-context-attention

> USP: Unified (a.k.a. Hybrid, 2D) Sequence Parallel Attention for Long Context Transformers Model Training and Inference

USP: Unified (a.k.a. Hybrid, 2D) Sequence Parallel Attention for Long Context Transformers Model Training and Inference

## Facts

- Repository: https://github.com/feifeibear/long-context-attention
- Stars: 678 · Forks: 80 · Open issues: 12 · Watchers: 5
- Primary language: Python
- License: Apache-2.0
- Last pushed: 2026-05-21T06:53:42+00:00

## Trust & health

_Signals computed from public GitHub metadata. Not a security guarantee._

- Maintenance: Steady (computed 2026-07-11T11:44:49.759Z)
- Security scan: No lockfile (0 critical, 0 high, 0 medium, 0 low) · last scan 2026-07-11T11:44:50.476Z
- Full report: [trust report](/tools/feifeibear-long-context-attention/trust.md) · [JSON](https://www.graphcanon.com/api/graphcanon/tools/feifeibear-long-context-attention/trust)

## Categories

- [LLM Frameworks](/categories/llm-frameworks.md)
- [Model Training](/categories/model-training.md)
- [Inference & Serving](/categories/inference-serving.md)

## Tags

ring-attention, python, llm-inference, pytorch, llm-training, attention-is-all-you-need, deepspeed-ulysses

## Category neighbours (exploratory)

_Same-category tools for discovery only - not curated alternatives. Cap shown at six._

- [awesome](/tools/sindresorhus-awesome.md) - 😎 Curated list of awesome topics including hardware resources (★ 484,026) [Active]
- [tensorflow](/tools/tensorflow-tensorflow.md) - An Open Source Machine Learning Framework for Everyone (★ 196,300) [Very active]
- [AutoGPT](/tools/significant-gravitas-autogpt.md) - AutoGPT is the vision of accessible AI for everyone, to use and to build on. (★ 185,464) [Very active]
- [ollama](/tools/ollama-ollama.md) - Get up and running with various large language models using Ollama. (★ 175,936) [Very active]
- [prompts.chat](/tools/f-prompts-chat.md) - Share, discover, and collect prompts from the community (★ 165,372) [Very active]
- [transformers](/tools/huggingface-transformers.md) - Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models (★ 162,482) [Very active]

_+ 2 more not listed._

---

**Machine-readable endpoints**

- JSON: [`/api/graphcanon/tools/feifeibear-long-context-attention`](/api/graphcanon/tools/feifeibear-long-context-attention)
- LLM index: [/llms.txt](/llms.txt)
- Full corpus: [/llms-full.txt](/llms-full.txt)

_GraphCanon - The knowledge graph for AI development. https://www.graphcanon.com/_
