RWKV combines RNN-style inference with transformer-scale training, offering reference code, weights, and kernels for LLM work.
Overview
RWKV is a recurrent architecture positioned for large language model workloads. It trains like a parallelizable transformer while inference uses a hidden state updated token by token, avoiding a growing key-value cache and keeping memory use more stable across long contexts.
The project publishes reference training scripts, initialization guidance, and CUDA kernels for recent RWKV generations. Weights ship in several formats, with community tools for local chat GUIs, batch generation, mobile inference, and GGUF conversion. Evaluation utilities cover common academic benchmarks.
Training documentation covers small-GPU setups, DeepSpeed configurations, finetuning from JSONL, and stability tips such as weight decay on large matrices. The ecosystem lists hundreds of downstream projects spanning vision, diffusion, servers, and WebGPU demos, and the effort is associated with the Linux Foundation AI initiative.
Developers typically obtain the training codebase, prepare tokenized datasets, and run the provided scripts rather than deploying a standalone end-user application from the training package alone.
Key features
- Linear-time RNN inference
- Transformer-style parallel training
- Published model weights and GGUF
- CUDA and reference training code
- Local chat and runner GUIs
- Finetuning and state-tuning hooks
- Mobile inference libraries
- Benchmark evaluation scripts
Use cases
- Research on RNN-based LLMs
- Training custom RWKV checkpoints
- Local low-VRAM text generation
- Long-context experiments
- Embedded or edge inference prototypes