NotPunchnox/rkllama
Ollama alternative for Rockchip NPU: An efficient solution for running AI and Deep learning models on Rockchip devices with optimized NPU support ( rkllm )
What it solves
RKLLama provides a way to run and interact with Large Language Models (LLMs) directly on the NPU (Neural Processing Unit) of Rockchip RK3588 and RK3576 hardware. This allows users of single-board computers like the Orange Pi 5 series or Radxa Rock 4d to perform AI inference locally with hardware acceleration, rather than relying solely on the CPU.
How it works
The project acts as a server that manages model loading, inference, and API requests. It uses the rkllm and rknn runtime libraries to execute models on the NPU. It includes a REST API that is compatible with Ollama and OpenAI standards, allowing it to integrate with existing AI tools and web interfaces. It handles model management dynamically, loading models into memory as needed and unloading them after inactivity to optimize resource usage.
Who it’s for
This project is for developers and hobbyists using Rockchip-based hardware (RK3588/RK3576) who want to run LLMs, vision models, or audio processing tasks locally. It is ideal for those who want to use standard AI API tools (like OpenWebUI) on low-power, edge-computing devices.
Highlights
- Runs LLMs, vision models, and audio models (TTS/STT) directly on the NPU.
- Compatible with common Ollama and OpenAI API endpoints.
- Supports tool/function calling for advanced AI interactions.
- Features dynamic model loading and unloading to manage memory efficiently.
- Includes automatic prompt caching to speed up repeated chat sessions.
- Supports multimodal inputs (images) and image generation via Stable Diffusion.
- Offers easy model installation directly from Hugging Face.
Related
- Project
- Project
- Project
- Project
- Project