Qwen releases FlashQLA, open code that runs its linear attention up to 3x faster

In short

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):

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

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

Sources

More from AI in China

All stories from AI in China