Papers › Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrence

Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrence

8 Apr 2024arXiv:2404.05892archive 2025-07-28

Bo Peng, Daniel Goldstein, Quentin Anthony, Alon Albalak, Eric Alcaide, Stella Biderman, Eugene Cheah, Xingjian Du, Teddy Ferdinan, Haowen Hou, Przemysław Kazienko, Kranthi Kiran GV, Jan Kocoń, Bartłomiej Koptyra, Satyapriya Krishna, Ronald McClelland Jr., Jiaju Lin, Niklas Muennighoff, Fares Obeid, Atsushi Saito, Guangyu Song, Haoqin Tu, Cahya Wirawan, Stanisław Woźniak, Ruichong Zhang, Bingchen Zhao, Qihang Zhao, Peng Zhou, Jian Zhu, Rui-Jie Zhu

We present Eagle (RWKV-5) and Finch (RWKV-6), sequence models improving upon the RWKV (RWKV-4) architecture. Our architectural design advancements include multi-headed matrix-valued states and a dynamic recurrence mechanism that improve expressivity while maintaining the inference efficiency characteristics of RNNs. We introduce a new multilingual corpus with 1.12 trillion tokens and a fast tokenizer based on greedy matching for enhanced multilinguality. We trained four Eagle models, ranging from 0.46 to 7.5 billion parameters, and two Finch models with 1.6 and 3.1 billion parameters and find that they achieve competitive performance across a wide variety of benchmarks. We release all our models on HuggingFace under the Apache 2.0 license. Models at: https://huggingface.co/RWKV Training code at: https://github.com/RWKV/RWKV-LM Inference code at: https://github.com/RWKV/ChatRWKV Time-parallel training code at: https://github.com/RWKV/RWKV-infctx-trainer

PaperPDFCodeCode Syntology ran

In Syntology 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="2404.05892")

Code

Syntology Ran 11 of 18 code samples harvested from 2 repositories linked to this paper; 7 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · violated contract; 2 ran · our draft was wrong; 6 ran with no contract checked.

By repository: official repository: 8 samples from 1 repository, 7 ran; community (archive-listed): 8 samples from 1 repository, 3 ran; 2 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rwkv/rwkv-lm officialmentioned in papermentioned on GitHubpytorch report
rwkv/rwkv-infctx-trainer officialmentioned in paperpytorchApache-2.0 report
BlinkDL/RWKV-LM mentioned on GitHubpytorch report
blinkdl/chatrwkv mentioned on GitHubpytorch report
howard-hou/visualrwkv mentioned on GitHubpytorchApache-2.0 report
sustcsonglin/flash-linear-attention mentioned on GitHubpytorchMIT 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

18 samples harvested; 11 ran; 2 honoured the contract we drafted; 7 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · honoured contract
1ran · violated contract
2ran · our draft was wrong
6ran
7unverified

Licence: 2 of the 18 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 2 repositories linked to this paper, official or community; each sample names its own and says which. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

atoi rwkv/rwkv-infctx-trainer/RWKV-v4neo/export_checkpoint.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 6dbf1b2a5b901370 · report
extract_model_sizing rwkv/rwkv-infctx-trainer/RWKV-v5/merge_model.py official repository ran Apache-2.0 (permissive) · 11c5ed2fecc546bc · report
get_model_state_file rwkv/rwkv-infctx-trainer/RWKV-v4neo/export_checkpoint.py official repository ran Apache-2.0 (permissive) · 724ff294a540dd58 · report
is_torch_version_above rwkv/rwkv-infctx-trainer/RWKV-v5/merge_model.py official repository ran Apache-2.0 (permissive) · ebc8c0c4b0dd08d7 · report
natural_keys rwkv/rwkv-infctx-trainer/RWKV-v4neo/export_checkpoint.py official repository ran fingerprinted Apache-2.0 (permissive) · 7052cf0436949e37 · report
remove_arg rwkv/rwkv-infctx-trainer/RWKV-v4neo/lightning_trainer.py official repository ran Apache-2.0 (permissive) · 9be3b38229ea83f1 · report
safe_getmtime rwkv/rwkv-infctx-trainer/RWKV-v4neo/lightning_trainer.py official repository ran fingerprinted Apache-2.0 (permissive) · d5c10826ac434df9 · report
torch_load_model rwkv/rwkv-infctx-trainer/RWKV-v5/merge_model.py official repository unverified Apache-2.0 (permissive) · c0225dc209938689 · report
get_chunk howard-hou/visualrwkv/VisualRWKV-v7/v7.10/evaluate_imagenet.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 42a46570620cd9fa · report
is_none howard-hou/visualrwkv/VisualRWKV-v7/v7.10/evaluate_imagenet.py community (archive-listed) ran · violated contract Apache-2.0 (permissive) · bae18947b56f2be1 · report
split_list howard-hou/visualrwkv/VisualRWKV-v7/v7.10/evaluate_imagenet.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 076c252c52cbb161 · report
mm8 howard-hou/visualrwkv/VisualRWKV-v5/v5.0/app/modeling_rwkv.py community (archive-listed) unverified Apache-2.0 (permissive) · 104b35c3b39791a5 · report
postprocess_response howard-hou/visualrwkv/VisualRWKV-v4/visualrwkv/utlis.py community (archive-listed) unverified Apache-2.0 (permissive) · 8eac478d61506b5f · report
process_image_tokens_in_conversations howard-hou/visualrwkv/VisualRWKV-v5/v5.0/src/dataset.py community (archive-listed) unverified Apache-2.0 (permissive) · 318323826333116c · report
process_tokens_in_conversations howard-hou/visualrwkv/VisualRWKV-v5/v5.0/src/dataset.py community (archive-listed) unverified Apache-2.0 (permissive) · cc677555aff432ba · report
tokenize_with_image_token howard-hou/visualrwkv/VisualRWKV-v5/v5.0/src/dataset.py community (archive-listed) unverified Apache-2.0 (permissive) · 53e7893ddf933fd7 · report
batch identical code first harvested elsewhere ran · honoured contract licence of this copy not recorded · 7e9cf65e078afda5 · report
RUN_CUDA_RWKV7g identical code first harvested elsewhere unverified licence of this copy not recorded · 4ba3321ca44d1608 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

FINCH

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