installation
About 220 wordsLess than 1 minute
2025-09-08
Prerequisites
Before installing RWKV Agent Kit, ensure you have the following prerequisites:
- Rust 1.70 or later
- Python 3.8 or later (for Python bindings)
- Git
Installation Methods
Method 1: Install from Crates.io
cargo add rwkv-agent-kitMethod 2: Install from Source
- Clone the repository:
git clone https://github.com/your-org/rwkv-agent-kit.git
cd rwkv-agent-kit- Build the project:
cargo build --release- Run tests to verify installation:
cargo testConfiguration
After installation, you need to configure the RWKV model path and other settings:
- Create a configuration file:
[rwkv]
model_path = "path/to/your/rwkv/model.pth"
max_tokens = 2048
temperature = 0.7
[database]
url = "sqlite://memory.db"
[memory]
max_entries = 1000
embedding_dim = 768- Set environment variables (optional):
export RWKV_MODEL_PATH="/path/to/model.pth"
export RWKV_CONFIG_PATH="/path/to/config.toml"Verification
To verify your installation is working correctly:
use rwkv_agent_kit::RwkvAgentKit;
fn main() {
let kit = RwkvAgentKit::new("config.toml").unwrap();
println!("RWKV Agent Kit initialized successfully!");
}Troubleshooting
Common Issues
- Model loading errors: Ensure the model path is correct and the model file is accessible.
- Memory issues: Reduce
max_tokensormax_entriesin configuration. - Database connection errors: Check database URL and permissions.
Getting Help
If you encounter issues:
- Check the FAQ
- Visit our GitHub Issues
- Join our community discussions