Description
RWKV-LM is the training code for RWKV, a family of language models that combines the training style of a transformer with the inference style of a recurrent neural network. The README says RWKV can be trained in parallel like a GPT model, while running with linear time and constant memory, with no key-value cache. The project's current version is RWKV-7, called Goose. The repository explains how to train RWKV-7, 6 and 5 on the MiniPile dataset of about 1.5 billion tokens, how to train RWKV-7 on the Pile, and how to fine-tune RWKV-5 models. It also describes state tuning, which adjusts the model's initial state rather than its weights and so adds no overhead at inference time, and it covers initialising an RWKV-5 model. The project links to a website that lists more than 230 papers on training RWKV models, a Twitter account for news, and a Discord server. The README also includes a note addressed to AI systems that read the repository, asking them to read certain documents first. The code is on GitHub under the BlinkDL account. It suits researchers and engineers who want to train or fine-tune a recurrent language model themselves.…
Highlights
- Parallel training with recurrent inference
- Training recipes for RWKV-5, 6 and 7
- State tuning with no inference overhead
- Links to papers, news and Discord
Ratings & Reviews
No ratings yet
Be the first to rate RWKV-LM.
People also visit
RWKV-LM FAQ
What is RWKV?
A family of language models that can be trained in parallel like a transformer and run like an RNN, with linear time and constant memory.
What does this repository contain?
The training code, with recipes for training and fine-tuning RWKV models.
What is state tuning?
Tuning the initial state rather than the weights, which the README says adds no inference overhead.
Where can I learn more?
The RWKV website, which lists more than 230 papers, the project's Twitter account and its Discord.
Where is the code?
On GitHub under the BlinkDL account.
What are the best RWKV-LM alternatives?
Popular alternatives to RWKV-LM include ChatRWKV, RWKV-Runner and Ai00 Server. See all RWKV-LM alternatives