RWKV-4 wrapper within LangChain.
It is broken into two parts: installation and setup, and then usage with an example.
Installation and Setup
- Install the Python package with
pip install rwkv - Install the tokenizer Python package with
pip install tokenizer - Download a RWKV model and place it in your desired directory
- Download the tokens file
Usage
RWKV
To use the RWKV wrapper, you need to provide the path to the pre-trained model file and the tokenizer’s configuration.Model File
You can find links to model file downloads at the RWKV-4-Raven repository.Rwkv-4 models -> recommended VRAM
Connect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.