Bridges Rockchip's librkllmrt.so runtime to an OpenAI-compatible API through ctypes, as a drop-in backend for Open WebUI on boards such as the Orange Pi 5 Plus: incremental KV cache across turns, prompt-cache preloading, vision models, LoRA hot-swap, RAG and an Ollama-compatible API.
- 13.0 tok/sQwen3-1.7B, RK3588 NPU
- ~50 ms vs ~500Follow-up prefill
Trade-offs
- The runtime is called through ctypes instead of piping to a C++ binary, so the KV cache survives between turns and aborts are clean, replacing about 500 lines of process management.
- A follow-up turn reuses the NPU's KV cache only when the earlier user messages match exactly; any mismatch clears it and resends the full prompt, and RAG queries always start clean.
Q&A2
The oldest turns are trimmed in a sliding window; if the prompt still exceeds 110% of the model's context, the request is rejected with
context_length_exceeded instead of being sent oversized.Server-side NPU timing from the runtime's
RKLLMResult.perf struct on an Orange Pi 5 Plus 16 GB, not client estimates; Qwen3-1.7B W8A8 averages 13.0 tok/s with a 4.1 s cold first token.Links
Built by
Reviews
Loading reviews
More in Local inference
See all 43 →
GlydLossless compression that keeps bf16 weights and KV cache smaller on the GPU
BigMoeOnEdgeEngine that streams MoE experts from flash to run models larger than memory
AnubisNative macOS app for benchmarking local LLMs on Apple Silicon- PXALLM server tuned for Tesla P100, V100 and GTX 10-series GPUs
- CarWatchA car as a chat agent: Raspberry Pi 5 running a local 35B model in the car
AlzeoOne-command installer that turns a DGX Spark or GB10 box into an AI server
More in Embedded
See all 28 →
RaspiMIDIHubRaspberry Pi as a plug-and-play USB MIDI hub with virtual instruments- Anemoia-ESP32NES emulator running at native speed on a plain ESP32
- sanoTTS-jpJapanese text-to-speech small enough for a $3 ESP32-S3 microcontroller
- TouchDeckA local touch control deck for Home Assistant and PC stats on an ESP32-S3
- OpenSource AI GlassesOpen Linux smart glasses with a camera, voice AI and an optional display
Xaloqi EDSISO 14229 UDS diagnostics for Zephyr and FreeRTOS, generated from YAML
More in Python
See all 162 →
jobdGPU-aware job broker for a few personal machines, with an MCP server
blitcpFile copier that reads in disk order, dedupes and streams over raw SSH- gnss_gpuGPU GNSS positioning for urban canyons with particle filters and ray-traced NLOS
SnitchPer-app network monitor and outbound firewall for the desktop
HisabDouble-entry ledger kept by texting a WhatsApp agent, in Urdu or English- Global News Intel PlatformServerless pipeline over world news events, run at zero cost