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