Papers › RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scale

RADLADS: Rapid Attention Distillation to Linear Attention Decoders at Scale

5 May 2025arXiv:2505.03005archive 2025-07-28

Daniel Goldstein, Eric Alcaide, Janna Lu, Eugene Cheah

We present Rapid Attention Distillation to Linear Attention Decoders at Scale (RADLADS), a protocol for rapidly converting softmax attention transformers into linear attention decoder models, along with two new RWKV-variant architectures, and models converted from popular Qwen2.5 open source models in 7B, 32B, and 72B sizes. Our conversion process requires only 350-700M tokens, less than 0.005% of the token count used to train the original teacher models. Converting to our 72B linear attention model costs less than $2,000 USD at today's prices, yet quality at inference remains close to the original transformer. These models achieve state-of-the-art downstream performance across a set of standard benchmarks for linear attention models of their size. We release all our models on HuggingFace under the Apache 2.0 license, with the exception of our 72B models which are also governed by the Qwen License Agreement. Models at https://huggingface.co/collections/recursal/radlads-6818ee69e99e729ba8a87102 Training Code at https://github.com/recursal/RADLADS-paper

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2505.03005")

Code

Syntology Ran 10 of 13 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 4 ran · our draft was wrong; 1 ran · fixture could not drive it; 5 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

recursal/radlads-paper officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 10 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

4ran · our draft was wrong
1ran · fixture could not drive it
5ran
3unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from recursal/radlads-paper. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

repeat_kv recursal/radlads-paper/rwkv6attn.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 3c76e52815c5401d · report
apply_rotary_pos_emb recursal/radlads-paper/rwkv6qwen2/modeling_rwkv6qwen2.py official repository ran · our draft was wrong Apache-2.0 (permissive) · bac65c3dafaec040 · report
apply_rotary_pos_emb recursal/radlads-paper/models/qwen2.py official repository ran Apache-2.0 (permissive) · 67e215883a9a54b6 · report
convert_dict_to_config recursal/radlads-paper/configs.py official repository ran · our draft was wrong Apache-2.0 (permissive) · e8df29c14266e90d · report
generate_rotary_embedding recursal/radlads-paper/models/qwen2.py official repository ran Apache-2.0 (permissive) · fe9b629d83cc3089 · report
is_prime recursal/radlads-paper/make_data_hf.py official repository ran fingerprinted Apache-2.0 (permissive) · b5bc417f90245613 · report
literal_eval recursal/radlads-paper/configs.py official repository ran fingerprinted Apache-2.0 (permissive) · 82ae923d20eb7fcb · report
load_checkpoint recursal/radlads-paper/stack_layers.py official repository ran Apache-2.0 (permissive) · 91befd9a752c49a4 · report
merge_config recursal/radlads-paper/configs.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 9c3d0d0b3af30bb8 · report
rotate_half recursal/radlads-paper/models/qwen2.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · b99eea6376d1e212 · report
data_file_path recursal/radlads-paper/make_data_hf.py official repository unverified Apache-2.0 (permissive) · bdf28f9492a770dc · report
index_file_path recursal/radlads-paper/make_data_hf.py official repository unverified Apache-2.0 (permissive) · 8b1a74a6db32c163 · report
load_and_patch_model_with_attention_replacement recursal/radlads-paper/rwkv6attn.py official repository unverified Apache-2.0 (permissive) · 0b8395d5f5512df0 · report

Tasks

Decoder

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AttentionSETSoftmax

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections