The RK3588 is a popular chip in small Arm boards, and it ships with a built-in NPU (a chip section made for neural network maths). Running a chatbot on that NPU normally means using the chip maker’s own SDK, which is closed. open_rknpu2_lm_infer is an attempt to do the whole job with open code instead.
Independent write-up based on the public repository at the commit linked above. Not an endorsement, security review or collaboration with the maintainer.
What it does
The repo describes itself as a “fully open-source, high-performance LLM inference engine for the RK3588 NPU”. In plain terms, you download a quantised model (a model squeezed into smaller numbers so it fits in memory), point the program at it, and chat with it on the board.
According to the README, a single binary gives you three ways in:
- a one-shot
runcommand and a terminal chat screen (chat) - an OpenAI-compatible API server (
serve), so existing OpenAI client code can talk to it - a
tunecommand that searches for faster settings for a given model and caches the result
The supported model families listed at this snapshot include Qwen3, Qwen3.5 (with image input), Granite, a Llama-architecture MiniCPM model and the text part of MiniCPM-V 4.7. The maintainer publishes matching quantised checkpoints on Hugging Face.
The README also lists heavier features: mixed 4-bit and 8-bit weights, continuous batching for several requests at once, prefix caching, speculative decoding (a small draft guesses tokens and the main model checks them) and streaming mixture-of-experts weights from disk to save memory.
The maintainer makes strong speed claims. They say their engine averages “over 50% higher average inference speed than the vendor’s rknn-llm SDK”, with bigger gains at long contexts, and publish benchmark tables to back that up. Those are the maintainer’s numbers. We haven’t run them.
How it’s built
The engine is written in Rust (pinned to Rust 1.95 in rust-toolchain.toml), with some CPU kernels in C++. The README’s architecture diagram splits it into layers: user interfaces at the top, an engine with a dedicated inference thread and request queue, model implementations, and then CPU and NPU operators underneath.
The NPU maths lives in a separate open library by the same maintainer, rknpu2_matmul_open, pulled in as a Git submodule. The THIRD_PARTY_NOTICES.md file is unusually detailed. It names code adapted from llama.cpp, Strata, OpenBMB’s llama.cpp-omni and DeepSeek’s DeepSpec, with each upstream revision and licence recorded.
The repo has GitHub workflows for CI, containers and releases, plus a tests/ folder with board-level tests. Releases come as prebuilt Linux arm64 packages. A Docker Compose template is included too.
Where AI comes in
The README shows two vibecoded.fyi badges: Proudly Vibe Coded in the Plasma Mix colourway and Coded with Codex. It doesn’t explain the workflow in prose beyond that.
The clearest statement is in the repo’s AGENTS.md, a short instruction file for coding agents. Written in Chinese, it tells agents that documents, experiment reports and design notes written by an LLM go in the llm_generated_docs/ folder. The README links into that folder for its Docker guide, module layout and benchmark details.
So the maintainer is telling you which docs an AI wrote. That’s a useful label. It isn’t a statement about how much of the Rust code came from Codex, and we won’t guess.
What stands out
These are our observations from the repo, not claims by the maintainer.
- The lab notebook is public. At this snapshot
llm_generated_docs/holds about 147 files, many dated, with names like attention pipeline experiments, regression notes and MFU diagnosis. It reads like a running record of what was tried. - Benchmarks come with method. The perplexity section states the dataset, window size, scored positions and remeasurement date, and links per-token results.
- Attribution is taken seriously. Adapted code is traced to exact upstream commits.
- The commit history is busy. Version 0.13.0 was tagged on 1 December 2026, and commit messages follow a
feat:,perf:,fix:style. - The TODO list is honest. The maintainer notes prefill compute use “currently reaches around 20% under favorable conditions, with room for improvement.”
Before you try it
- Hardware: you need an RK3588 board running Linux. The README says the current version supports only the vendor’s
rknpu2kernel driver, version 0.9.6 or newer. Support for the upstreamrocketdriver is on the TODO list. - OS: prebuilt releases target Debian 11 (glibc 2.31) or newer. Building from source happens on the board itself.
- Memory: the maintainer lists a peak memory use of about 3.9 GiB for Qwen3-4B at 4K context. Some features, like dual ubatch prefill, need more.
- Licence: AGPL-3.0-only. If you run a modified version as a network service, read what that licence asks of you.
- Status: the project is young (the repo was created in October 2026) and moving fast. Treat flags and model support as things that may change between releases.
If you’re new to how AI-built projects like this come together, our guide on what vibe coding is covers the basics. You can browse other profiles on the showcase.
Sources
- README at the snapshot commit
- AGENTS.md
- llm_generated_docs folder
- THIRD_PARTY_NOTICES.md
- LICENSE (AGPL-3.0)
- Commit history up to the snapshot
Checked against commit 3e0e2d8a21a06930173bfd64aeb3aef979b38f87 on 2 December 2026. The project may have changed since. To request a correction, see our editorial policy.