Qwen releases FlashQLA, open code that runs its linear attention up to 3x faster
In short
- FlashQLA is a library of GPU programs (called kernels) from Alibaba's Qwen team. It speeds up one layer type, Gated DeltaNet, that Qwen uses in some of its language models so that they can read very long texts cheaply. The code is open under the MIT licence; it contains no model weights.
- It works by splitting one long text into pieces that several parts of a GPU, or several GPUs, can process at once. Normally that layer must go through the text one stretch after another.
- The authors report 1.7 to 3.1 times faster forward passes and up to 4.4 times faster backward passes than the open Flash Linear Attention library on a single GPU. On eight GPUs with texts up to 1 million tokens, they report up to 4.8 times faster forward passes.
- The paper is a preprint, not yet peer reviewed, and every speed figure is the Qwen team's own. Across a whole model the gain is much smaller: about 5% faster time to first token in the one full-model test.
1.7–3.1× forward speedup, one GPU; 4.4× best backward speedup, one GPU; 4.8× best forward speedup, eight GPUs; 1M tokens of context in the multi-GPU tests
What is new
Qwen, the model team at Alibaba, posted the paper "FlashQLA: Efficient Context Parallelism for Gated DeltaNet" on arXiv on 24 November 2026. The code is on GitHub at QwenLM/FlashQLA, and its README lists version 0.1.4 as the November 2026 release. The paper's tests use that version. We could not read Qwen's blog post about it, which needs JavaScript to display.
Ordinary attention, the core of most chatbots, compares every token with every earlier one, so the work grows with the square of the text length. Linear attention instead keeps a fixed-size running memory (a "state") and updates it token by token, so the work grows in step with the length. Gated DeltaNet adds two controls to that update: a gate that decides how much old memory to keep, and a correction step that rewrites the memory instead of only adding to it. The paper says this layer is used in large hybrid models "from Qwen3-Next to the Qwen3.8 series". The README says its benchmarks use the head settings of the Qwen3.5 and Qwen3.6 families.
The catch is the running memory. Each stretch of text needs the memory left by the stretch before it, which makes a chain that is hard to spread across a chip. The paper says this chain is a main bottleneck for long inputs, especially with small batches or few attention heads per GPU.
How it gets faster
The idea is context parallelism: cut one long text into partitions and work on them at the same time. The difficulty is that each partition needs the memory from the one before. An earlier method, Kimi Context Parallel (KCP), solves this with a preparation step, and the paper says that step alone took 50.8% of the forward time of KCP in Flash Linear Attention (FLA) on eight GPUs with a 1M-token text. The paper's four main techniques, in plain terms (the plain-language reading is ours):
- Decay-aware preparation. The gate makes old memory fade. The authors measured that 66.9% of heads in Qwen3.8-27B and 80.7% in Qwen3.8-2.4T-A95B forget within 8,000 tokens. For those heads FlashQLA only looks back over the recent stretch, and it keeps the full history for heads that remember longer. The paper says this keeps "sufficient numerical accuracy in practice"; we did not read the appendix with the error analysis.
- Auto CP. A small cost model decides, for each workload, whether to split inside one GPU and how long each piece should be.
- Dual CP. Splitting across GPUs and inside each GPU are done together, with the preparation shared between the two levels instead of repeated.
- Fused kernels. Several steps are merged into single GPU programs, with hand-set scheduling so data loading and arithmetic overlap.
The numbers
The gains are not even. In the paper's eight-GPU forward tests the best case, 4.8×, is at 16 heads; at 32 heads the figure is 3.3× and at 64 heads 2.6×. On a single GPU the forward gain is larger with more tensor parallelism and longer text. In the strong-scaling test for combined forward and backward, the paper reports a 6.45× speedup on eight GPUs for FlashQLA at 16 heads, against 4.34× for FLA's KCP.
The first rows use synthetic data: random inputs where 75% of heads decay fast and 25% slowly, a mix the authors chose from what they saw in real models. The last two rows use real model activations and are the closer test.
What you need to use it
The README asks for an NVIDIA GPU of compute capability 9.0, 10.0, 10.3, 12.0 or 12.1 (our gloss: Hopper and Blackwell generations), CUDA 12.8 or newer and PyTorch 2.8 or newer. Install with pip install flash-qla, or build from source.
It exposes chunk_gated_delta_rule as its main function, and the README says it also works as a backend for the flash-linear-attention library's Gated DeltaNet through that library's usual interface. The licence is MIT: you may use, copy, modify and sell it, as long as the copyright notice stays with it. It is a speed tool for training and for processing long prompts; it does not change what a model outputs, and it is not a model.
Jun 2026: v0.1.1 adds sequence parallelism inside one GPU for the backward pass and support for SM100. Jul 2026: v0.1.2 adds the forward pass for SM120 and works as a backend for flash-linear-attention. Sep 2026: v0.1.3 adds Dual CP and a better automatic partitioning strategy. Nov 2026: v0.1.4 adds a precision correction on the context-parallel path, Dual CP on SM120 and ZigZag support; the paper is posted on 24 November.
Terms in plain English
- Kernel: a small program that runs on a GPU. Faster kernels make the same maths finish sooner (our wording).
- Forward and backward pass: the forward pass computes the output; the backward pass works out how to adjust the model during training.
- Prefill: reading a prompt in one go before the model starts to answer.
- Token: a piece of text, about a word or part of one.
- Tensor parallelism (TP): splitting a layer's heads across several GPUs, so each GPU gets fewer heads.
- FLA: Flash Linear Attention, an open library of linear-attention kernels, the baseline here.
Where things stand
This is a preprint with the authors' own benchmarks; we found no independent reproduction. The README names H200 for its charts and also lists results for GB200 and RTX 5090 cards, and the paper text we read does not name the GPU. The paper's closing claim is that good context parallelism needs both more parallelism and less preparation overhead. The honest size of the gain for a user is set by how much of their time goes to this one layer: in Qwen's own full-model test that was small enough to give about 5%.
Sources
- FlashQLA: Efficient Context Parallelism for Gated DeltaNet, arXiv (Qwen team), 24 November 2026
- QwenLM/FlashQLA README and LICENSE, GitHub, accessed 1 December 2026
Sources
More from AI in China
- Baidu releases Unlimited SVG, an open model that redraws images as editable code
- DeepSeek's open models grew to 1.6 trillion parameters in a year, free to download
- Alibaba's Qwen team released five downloadable models this year, most under Apache 2.0
- The Chinese Academy of Sciences sets out 20 foundational science questions for AI
- Baidu releases ERNIE 5.5 Flash Preview, an open 280B model under Apache 2.0