French version: click
A server to run and interact with LLM models optimized for Rockchip RK3588(S) and RK3576 platforms. The difference from other software of this type like Ollama or Llama.cpp is that RKLLama allows models to run on the NPU.
- Version
Lib rkllm-runtime
: V1.1.4. - Tested on an
Orange Pi 5 Pro (16GB RAM)
.
./models
: Place your .rkllm models here../lib
: C++rkllm
library used for inference andfix_freqence_platform
../app.py
: API Rest server../client.py
: Client to interact with the server.
- Python 3.8
- Python 3.9
- Hardware: Orange Pi 5 Pro: (Rockchip RK3588S, NPU 6 TOPS).
- OS: Ubuntu 24.04 arm64.
- Running models on NPU.
- Listing available models.
- Dynamic loading and unloading of models.
- Inference requests.
- Streaming and non-streaming modes.
- Message history.
- Client : Installation guide.
- API REST : English documentation
- API REST : French documentation
- Download RKLLama:
git clone https://github.com/notpunchnox/rkllama
cd rkllama
- Install RKLLama
chmod +x setup.sh
sudo ./setup.sh
-
Download .rkllm models from HuggingFace, or convert your GGUF models to RKLLM (Software soon available on my GitHub)
-
Go to the
~/RKLLAMA
directory and place your files therecd ~/RKLLAMA/
Virtualization with conda
is started automatically, as well as the NPU frequency setting.
- Start the server
rkllama serve
- Command to start the client
rkllama
or
rkllama help
- See the available models
rkllama list
- Run a model
rkllama run <model_name>
-
Go to the
~/RKLLAMA/
foldercd ~/RKLLAMA/ cp ./uninstall.sh ../ cd ../ && chmod +x ./uninstall.sh && ./uninstall.sh
-
If you don't have the
uninstall.sh
file:wget https://raw.githubusercontent.com/NotPunchnox/rkllama/refs/heads/main/uninstall.sh chmod +x ./uninstall.sh ./uninstall.sh
- Ability to pull models
- Add multimodal models
- Add embedding models
GGUF to RKLLM
conversion software
System Monitor: