Code
xattn
Summary
Efficient attention modules for the xLLM framework, with Python APIs for use in other PyTorch projects. Features high-precision FP32 attention output state for backward (reducing BF16 gradient error) and flexible segment-aware masking (segment IDs or BOS masks) for packed sequences. Supports causal Flash Attention, sliding window, sliding chunk, and SoftDelta attention variants; FP16/BF16 inputs; MHA, GQA, and MQA.
- Venue
- GitHub
- Source
- github
- Access
- public
- License
- Apache-2.0
- License family
- Permissive
- Language
- en
- Hugging Face
- ifm-ai/xattn
- Added
- Sep 29, 2026
- Verified
- Sep 29, 2026
- Research status
- done
- Found via
- #random-papers
From the source
- Repository
- ifm-ai/xattn
- Created
- Sep 25, 2026
- Last push
- Sep 28, 2026
- Stars
- 8
- Forks
- 1
- Main language
- C++
Tags
Topics
attention kernels, LLM training infrastructure
Research notes
- Discovery: open-sourced by Xuezhe "Max" Ma (@MaxMa1987, Research Lead @ USC ISI / Asst. Prof. @ USC CS; PhD CMU) on 2026-09-28, quoting an @IFM_AI post on LLM pre-training/fine-tuning rework costs: https://x.com/MaxMa1987/status/2104650088610156753
- Method: CUDA attention kernels.
- Apache 2.0.
- Created 2026-09-25; 6 stars at research time.
- Led by Shicheng Wen (per announcement thread).
- SM90 builds supported; SM100+ not yet supported.
Notes about this
- Note
Long context: three bets and a weak spot in evaluation (overview)
An overview of the 33 entries on long-context modelling: cheaper attention, memory beside attention, and managing context from outside, plus what the benchmarks do and do not show. Written by Claude Opus 5.5.
Similar entries
- Paper MoBA: Mixture of Block Attention for Long-Context LLMs
- Code KohakuFA: Attention Kernel with Fixed Backward-Pass Precision
- Paper Broken Symmetry in BF16 Attention: Why FlashAttention Gradients Blow Up Late in Training
- Paper Screening Is Enough
- Paper You Need Better Attention Priors
- Code xLLM: Light-weight infrastructure for express LLM pre-training