#160 · Primary category: Inference & Local Deploy

rwkv.cpp

deep-learning ggml language-model llm machine-learning quantization rwkv

INT4/INT5/INT8 and FP16 inference on CPU for RWKV language model

Project last updated:03/23/25

GitHub Stars

1.6K

Forks

129

Contributors

90

License

MIT

Why we included this project

This port of RWKV-LM onto the ggml runtime makes RWKV models practical on machines without a GPU. It ships as a C library with a convenient Python wrapper, and the core selling point is the range of quantized formats: INT4, INT5, INT8, and FP16, so you can shrink model files and speed up token generation on commodity CPUs by accepting a small quality loss. Teams running RWKV v4 through v7 on CPU-only or edge setups get a clear path from a Hugging Face checkpoint to a working local model, thanks to the included conversion and quantization scripts plus measured latency and perplexity tables for choosing a format. When a GPU is available, cuBLAS and hipBLAS support let you offload layers without switching runtimes.

Articles for this project

No articles for this project yet.

To suggest a topic or contribute an article, contact us.

Related projects in this category