Back to directory

ggml-rocket

A drop-in ggml backend that offloads llama.cpp and whisper.cpp prefill computation to Rockchip RK3588 and RK3576 NPUs, leaving sequential decode on the CPU where the NPU has no advantage.

ggml-rocket

ggml-rocket is a runtime-loadable backend that makes a Rockchip NPU appear to ggml-based programs such as llama.cpp and whisper.cpp as an ordinary compute device, the same way ggml's own BLAS backend does, by pointing an environment variable at the compiled library. It runs the Whisper speech-recognition encoder end to end on the NPU and offloads the prefill stage of several language models, including Gemma, Qwen, Llama, Phi, and Ministral, to the NPU as well.

Decode stays on the CPU because it works on too few rows at a time for the NPU's per-row cost to pay off, which covers both single-row decoding in llama.cpp and the small batches used by whisper.cpp's beam search. It depends on a separate userspace driver library and documents per-model benchmarks and recommended configuration by workload.

More in Inference

See all 770
  • OpenDecision

    deepanwadhwa.github.io

    An open-source Python package that answers typed questions about application state or documents using a local natural-language-inference model, returning structured choice, score, yes/no or evidence-relation values instead of free text.

  • Lifeboat

    iterate.ai

    A local inference server that puts an OpenAI- and Anthropic-compatible API in front of open-weight language models running on hardware you control, from a laptop to a GPU cluster.

  • Claude S40

    github.com

    An unofficial Claude chat client for 2007-era Nokia Series 40 phones, built as a Java ME app plus a small Go relay server, with web search, reading mode and saved chats.