RWKV-4
RWKV (pronounced RwaKuv) language model is an RNN with GPT-level LLM performance, and it can also be directly trained like a GPT transformer (parallelizable).
Installation and Setupβ
- Install the Python
rwkv
andtokenizer
packages
pip install rwkv tokenizer
- Download a RWKV model and place it in your desired directory
- Download a tokens file
LLMsβ
RWKVβ
See a usage example.
from langchain_community.llms import RWKV
API Reference:RWKV