#4848th of 190 in Open models

rwkv-lm

Reference code to train and run RWKV, an attention-free RNN language model

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
14.8k
License
Apache-2.0
Last commit
Nov 2026
Last release
Dec 2023
Language
Python
Stars, last 35 weeks+478
25 Mar 2026: 14,316 stars1 Apr 2026: 14,331 stars8 Apr 2026: 14,346 stars15 Apr 2026: 14,367 stars22 Apr 2026: 14,376 stars29 Apr 2026: 14,397 stars6 May 2026: 14,415 stars13 May 2026: 14,427 stars20 May 2026: 14,437 stars27 May 2026: 14,447 stars3 Jun 2026: 14,463 stars10 Jun 2026: 14,478 stars17 Jun 2026: 14,490 stars24 Jun 2026: 14,499 stars1 Jul 2026: 14,523 stars8 Jul 2026: 14,544 stars15 Jul 2026: 14,558 stars22 Jul 2026: 14,575 stars29 Jul 2026: 14,584 stars5 Aug 2026: 14,595 stars12 Aug 2026: 14,611 stars19 Aug 2026: 14,624 stars26 Aug 2026: 14,641 stars2 Sept 2026: 14,654 stars9 Sept 2026: 14,666 stars16 Sept 2026: 14,677 stars23 Sept 2026: 14,687 stars30 Sept 2026: 14,705 stars7 Oct 2026: 14,718 stars14 Oct 2026: 14,730 stars21 Oct 2026: 14,740 stars28 Oct 2026: 14,750 stars4 Nov 2026: 14,765 stars11 Nov 2026: 14,771 stars18 Nov 2026: 14,785 stars25 Nov 2026: 14,794 stars

14,316 on 25 Mar 202614,794 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Reference implementation of RWKV (v5/v6/v7), an RNN that trains in parallel like a GPT and runs with constant-size state and no kv-cache. The repo holds PyTorch/DeepSpeed training code with CUDA kernels, MiniPile and Pile training scripts, state-tuning, and demo inference in GPT and RNN modes. Weights are on Hugging Face; faster inference and fine-tuning live in linked sibling repos.

Who it is for: Researchers and engineers training or studying RNN-based LLMs

Strengths

  • Constant-size state and no kv-cache; RWKV-7 L24-D1024 state is about 1.6M params
  • RWKV-7 reference train_temp runs on one GPU with about 7 GB VRAM by default
  • Same model runs in parallel GPT mode or sequential RNN mode
  • Covers RWKV-5/6/7 with init recipes, state-tuning and data prep scripts

Weaknesses

  • No packaged RWKV-7 layer; correct init, weight decay and lr per parameter must be copied
  • FLA RWKV-7 implementation is not aligned with reference and performs worse, per README
  • README is a link hub; inference, PEFT and RLHF live in separate repos
  • Training needs pinned pytorch-lightning==1.9.5, CUDA and DeepSpeed; last tagged release is 2023

What it needs

  • GPU required
  • Needs PyTorch, pytorch-lightning==1.9.5, DeepSpeed, CUDA, wandb, ninja
  • Models: RWKV-7, RWKV-6, RWKV-5, RWKV-4, GGUF (linked)

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Open models

See all 190
Also in Open models
RankProjectScore
#46monkeyocrv2Document-native vision encoder and OCR models for parsing and document QA Live demo ↗ (opens in a new tab)1.7k starscustom license57 out of 100
#47omniparserScreenshot parser that turns GUI screens into structured elements for vision LLMs Live demo ↗ (opens in a new tab)25.7k starsCC-BY-4.056 out of 100
#49medgemmaNotebooks for running Google's MedGemma medical text and image models1.7k starsApache-2.056 out of 100
#50detoxifyPretrained BERT, RoBERTa and XLM-R classifiers that score comment toxicity1.3k starsApache-2.056 out of 100
#51onnx/modelsArchived collection of pre-trained models exported to ONNX format9.9k starsApache-2.055 out of 100