ARWKV: Pretrain is not what we need, an RNN-Attention-Based Language Model Born from Transformer

Lin Yueyu, Li Zhiyuan, Peter Yue, Liu Xiao
1/26/2025
cs.CL

Official code: yynil/RWKVInside (41 stars, Apache-2.0, last commit 2025-04-30).

Abstract

As is known, hybrid quadratic and subquadratic attention models in multi-head architectures have surpassed both Transformer and Linear RNN models , with these works primarily focusing on reducing KV complexity and improving efficiency. For further research on expressiveness, we introduce our series of models distilled from Qwen 2.5, based on pure native RWKV-7 attention, which aims to make RNN more expressive and demonstrates state tracking ability beyond transformers. We work with QRWK 32B based on RWKV-6 architecture, another approach that reduces the entire knowledge processing time to just 8 hours using 16 AMD MI300X GPUs while maintaining Qwen 2.5's performance. In fact, the distillation process can utilize any LLM, not just Qwen, and enables knowledge transfer from larger LLMs to smaller ones with more fewer tokens. We will explain the detailed process and share our insights on building more powerful foundation models. Please note that this is an ongoing work that will be updated continuously. The model checkpoints and source code are available at \href{https://github.com/yynil/RWKVInside}{https://github.com/yynil/RWKVInside}, \href{https://huggingface.co/RWKV-Red-Team/ARWKV-7B-Preview-0.1}{https://huggingface.co/RWKV-Red-Team/ARWKV-7B-Preview-0.1}.

View on arXivView PDF

Code Implementations(1)

yynil/RWKVInsideOfficial100%
Apache-2.0
418C++, CudaJan 2, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{yueyu2025arwkv,
  title  = {ARWKV: Pretrain is not what we need, an RNN-Attention-Based Language Model Born from Transformer},
  author = {Lin Yueyu and Li Zhiyuan and Peter Yue and Liu Xiao},
  year   = {2025},
  eprint = {2501.15570},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2501.15570v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2501.15570.svg)](https://codeofpaper.com/paper/2501.15570)

Discussion