#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.
Watch puts rwkv-lm on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.rwkv-lm is on your watch list. Its new releases and problems show there.
- Stars
- 14.8k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Dec 2023
- Language
- Python
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| Rank | Project | Score |
|---|---|---|
| #46 | monkeyocrv2Document-native vision encoder and OCR models for parsing and document QA | 57 out of 100 |
| #47 | omniparserScreenshot parser that turns GUI screens into structured elements for vision LLMs | 56 out of 100 |
| #49 | medgemmaNotebooks for running Google's MedGemma medical text and image models | 56 out of 100 |
| #50 | detoxifyPretrained BERT, RoBERTa and XLM-R classifiers that score comment toxicity | 56 out of 100 |
| #51 | onnx/modelsArchived collection of pre-trained models exported to ONNX format | 55 out of 100 |