Author: @jamescallander
Source model: deepseek-ai/deepseek-coder-1.3b-instruct · Hugging Face
Target: Rockchip RK3588 NPU via RKNN-LLM Runtime
The RKNN-LLM toolkit and instructions can be found on the specific development board's manufacturer website or from
airockchip's github page.
Download and install the required packages as per the toolkit's instructions.
1python3 <TOOLKIT_PATH>/rknn-llm/examples/rkllm_server_demo/flask_server.py \
2 --rkllm_model_path <MODEL_PATH>/deepseek-coder-1.3b-instruct_w8a8_g128_rk3588.rkllm \
3 --target_platform rk3588
1{
2 "model":"deepseek-coder-1.3b-instruct",
3 "messages":[{
4 "role":"user",
5 "content":"<YOUR_PROMPT_HERE>"}],
6 "stream":false
7}
1curl -s -X POST <SERVER_IP_ADDRESS>:8080/rkllm_chat \
2 -H 'Content-Type: application/json' \
3 -d '{"model":"deepseek-coder-1.3b-instruct","messages":[{"role":"user","content":"Create a python function to calculate factorials using recursive method."}],"stream":false}'
1{
2 "choices":[{
3 "finish_reason":"stop",
4 "index":0,
5 "logprobs":null,
6 "message":{
7 "content":"<MODEL_REPLY_HERE">,
8 "role":"assistant"}}],
9 "created":null,
10 "id":"rkllm_chat",
11 "object":"rkllm_chat",
12 "usage":{
13 "completion_tokens":null,
14 "prompt_tokens":null,
15 "total_tokens":null}
16}
You can connect it to any OpenAI-compatible client or UI (for example:
Open WebUI)
1{
2 "model": "deepseek-coder-1.3b-instruct",
3 "messages": [{"role":"user","content":"Hello!"}],
4 "stream": false
5}
This conversion follows the
DeepSeek License Agreement