RK1828 LLM Deployment Guide for Edge AI Industrial PC

This RK1828 LLM deployment guide shows how to run Qwen3-8B and Qwen3-VL-4B locally on the IOTRouter EC700 edge AI industrial PC with an RK1828 M.2 accelerator. It covers driver installation on Ubuntu 22.04 ARM64, model startup with rkllm3-server, and text and image requests through the local HTTP API.

Hardware — EC700 + RK1828 AI accelerator
Operating system — Ubuntu 22.04 ARM64
Document version — v1.0 | 2026-07-21

1. Hardware and Software for the RK1828 LLM Deployment Guide

Komponente Modell Specification or package
Main processor Rockchip RK3588 4×A76 + 4×A55
AI accelerator RK1828 M.2 interface
Inference framework rkllm3-server v1.0.4
Driver version rknn-smi v1.3.0 rknn3_rk182x_m2_installer_arm64.tgz

2. Install the Driver

cd /userdata/rknn/driver
./driver-ubuntu.sh

Driver Directory Contents:

File or directory Beschreibung
driver-ubuntu.sh Ubuntu driver installation script
driver-rknn.sh RKNN driver installation script
rknn3_rk182x_m2_installer_arm64.tgz Driver installation package
pcie-rkep/ PCIe endpoint driver

Connect the device to the internet before running the installer. The script downloads and installs its dependencies, then automatically reboots the device when installation is complete.

3. Verify the Driver

After the EC700 reboots, run the following command to verify the driver:

rknn-smi info

Expected output:

+------------------------+---------------+---------------+----------------------+
| rknn-smi      Version: 1.3.0                                                  |
+========================+===============+===============+======================+
| Device        Status   | Health        | Power(mW)     | Npu(%)               |
| Chip          Name     | Bus-Id        | Temp(C)       | Memory-Usage(MB)     |
+========================+===============+===============+======================+
| 0             Online   | OK            | NA            | 0                    |
| 0             RK1828   | 0000:01:00.0  | 32            | 4748 / 5120          |
+========================+===============+===============+======================+

4. Download the Models

Download the pre-converted .rknn models from Rockchip.

Pre-converted  Model — rknn3_models/v1.0.0

Download URL — Download pre-converted RKNN models 

Access Code — rknn

Rockchip model download page

Download the folder and open v1.0.0 to find the model folders.

Model folders inside v1.0.0

Folder Model type
cnn Conventional convolutional neural networks for vision tasks
llm Text-only large language models (LLMs)
vlm Vision-language models (VLMs) that process text and images

Copy the model folders you need, including all their contents, to /userdata/rknn/model/1.0/ on the development board.

Model folders in the EC700 deployment directory

5. Start the Models Manually

5.1 Start Qwen3-8B on Port 8888

cd /userdata/rknn/model

rkllm3-server \
  -m ./1.0/Qwen3-8B/Qwen3-8B.rknn \
  --vocab ./1.0/Qwen3-8B/Qwen3-8B.tokenizer.gguf \
  --embed ./1.0/Qwen3-8B/Qwen3-8B.embed.bin \
  --host 0.0.0.0 \
  --port 8888 \
  -c 0 \
  --n_predict -1 \
  --repeat-penalty 1.1 \
  --presence-penalty 1.0 \
  --frequency-penalty 1.0 \
  --top-k 1 \
  --top-p 0.8 \
  --temp 0.8 \
  --device-id 0000:01:00.0

5.2 Start Qwen3-VL-4B on Port 8889

rkllm3-server \
  -m ./1.0/Qwen3-VL-4B/llm_Qwen3-VL-4B.rknn \
  --model2 ./1.0/Qwen3-VL-4B/vision_Qwen3-VL-4B.rknn \
  --vocab ./1.0/Qwen3-VL-4B/Qwen3-VL-4B.tokenizer.gguf \
  --embed ./1.0/Qwen3-VL-4B/Qwen3-VL-4B.embed.bin \
  --host 0.0.0.0 \
  --port 8889 \
  -c 1024 \
  --repeat-penalty 1.1 \
  --presence-penalty 1.0 \
  --frequency-penalty 1.0 \
  --top-k 1 \
  --top-p 0.8 \
  --temp 0.8 \
  --img-width 384 \
  --img-height 384 \
  --qwenvl \
  -a qwen3-vl \
  --device-id 0000:01:00.0 \
  --img-start "<|vision_start|>" --img-end "<|vision_end|>" --img-content "<|image_pad|>"

Hinweis: To run both models at the same time, assign each server a different port and a different device-id. 

5.3 LLM Startup Script (Recommended)

Use this script to launch Qwen3-8B in the background. If the foreground server is already using port 8888, stop it before starting the script.

cat > /userdata/rknn/model/run-8b.sh << 'EOF'
#!/bin/bash
cd /userdata/rknn/model/
rkllm3-server \
  -m ./1.0/Qwen3-8B/Qwen3-8B.rknn \
  --vocab ./1.0/Qwen3-8B/Qwen3-8B.tokenizer.gguf \
  --embed ./1.0/Qwen3-8B/Qwen3-8B.embed.bin \
  --host 0.0.0.0 \
  --port 8888 \
  -c 0 \
  --n_predict -1 \
  --repeat-penalty 1.1 \
  --presence-penalty 1.0 \
  --frequency-penalty 1.0 \
  --top-k 1 \
  --top-p 0.8 \
  --temp 0.8 \
  --device-id 0000:01:00.0
EOF

chmod +x /userdata/rknn/model/run-8b.sh
nohup /userdata/rknn/model/run-8b.sh > /dev/null 2>&1 &

5.4 VLM Startup Script (Recommended)

Use this script to launch Qwen3-VL-4B in the background. If the foreground server is already using port 8889, stop it before starting the script.

cat > /userdata/rknn/model/run-4b.sh << 'EOF'
#!/bin/bash
cd /userdata/rknn/model/
rkllm3-server \
  -m ./1.0/Qwen3-VL-4B/llm_Qwen3-VL-4B.rknn \
  --model2 ./1.0/Qwen3-VL-4B/vision_Qwen3-VL-4B.rknn \
  --vocab ./1.0/Qwen3-VL-4B/Qwen3-VL-4B.tokenizer.gguf \
  --embed ./1.0/Qwen3-VL-4B/Qwen3-VL-4B.embed.bin \
  --host 0.0.0.0 \
  --port 8889 \
  -c 1024 \
  --repeat-penalty 1.1 \
  --presence-penalty 1.0 \
  --frequency-penalty 1.0 \
  --top-k 1 \
  --top-p 0.8 \
  --temp 0.8 \
  --img-width 384 \
  --img-height 384 \
  --qwenvl -a qwen3-vl \
  --device-id 0000:01:00.0 \
  --img-start "<|vision_start|>" --img-end "<|vision_end|>" --img-content "<|image_pad|>"
EOF

chmod +x /userdata/rknn/model/run-4b.sh
nohup /userdata/rknn/model/run-4b.sh > /dev/null 2>&1 &

5.5 Verify Startup

Wait 1–2 minutes, then check that the server you started is listening on its configured port.

netstat -antp | grep 8888    # LLM
netstat -antp | grep 8889    # VLM

Model startup verification

6. Key Server Parameters

Parameter Beschreibung
-m Path to the main language model file (.rknn)
--model2 Path to the vision model file. Required for the VLM only
--vocab Path to the tokenizer file (.gguf)
--embed Path to the token embedding file (.bin)
--host Listen address. 0.0.0.0 binds the server to all IPv4 interfaces
--port Service port. Use a different port for each running model server
-c Context length. The value 0 selects the context length automatically
--device-id RK1828 Bus-Id reported by rknn-smi info
--qwenvl Enables Qwen-VL vision mode for the VLM
--img-width und --img-height VLM input image width and height
--top-k Top-K sampling value
--top-p Top-P sampling threshold
--temp Sampling temperature

7. Send API Requests

The examples use 192.168.0.151 as the EC700 IP address. Replace it with your device’s IP address when sending a request.

7.1 Send a Text Request with curl

curl -s http://192.168.0.151:8888/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [{"role": "user", "content": "How can I run a shell script at boot as a non-root user?"}],
    "max_tokens": ""
  }'

Text request and response in the terminal

7.2 Send Requests with Postman

7.2.1 Text Request

Field Wert
Method POST
URL http://192.168.0.151:8888/v1/chat/completions
Body raw → JSON

Open Postman and create a new HTTP request.

Creating an HTTP request in Postman for text inference

Select POST and enter the URL with your device’s IP address and configured port. In Body, select raw, choose JSON, and paste the following request body.

{
  "model": "qwen3vl",
  "messages": [
    {"role": "user", "content": "How can I run a shell script at boot as a non-root user?"}
  ],
  "max_tokens": ""
}

Postman text request settings and JSON body-1

Replace content with your prompt. Use max_tokens to set the maximum number of output tokens. The original example leaves it empty to use the server default. Click Senden Sie to submit the request.

Use max_tokens to set the maximum number of output tokens

7.2.2 Image Recognition Request

Field Wert
Method POST
URL http://192.168.0.151:8889/v1/chat/completions
Body raw → JSON

Open Postman and create a new HTTP request.

Creating an HTTP request in Postman for text inference

Select POST and enter the URL with your device’s IP address and configured port. In Body, select raw, choose JSON, and paste the following request body.

{
  "model": "qwen3vl",
  "messages": [
    {
      "role": "user",
      "content": [
        {"type": "text", "text": "What is shown in this image?"},
        {
          "type": "image_url",
          "image_url": {
            "url": "base64code..."
          }
        }
      ]
    }
  ]
}

To convert an image to Base64, upload it using the Image-to-Base64 converter. After conversion, click the result to copy it. When the copy confirmation appears, paste the copied value into the url field.
Base64 image data in the Postman request body

Enter your prompt in the text field and paste the Base64-encoded image data into the url field. Click Senden Sie and wait for the response.

Successful text response in Postman-2

8. Integrate aichat

8.1 Install aichat

curl -L "https://ghfast.top/https://github.com/sigoden/aichat/releases/download/v0.30.0/aichat-v0.30.0-aarch64-unknown-linux-musl.tar.gz" -o aichat.tar.gz
tar -zxf aichat.tar.gz
mv ./aichat /usr/local/bin/
chmod +x /usr/local/bin/aichat
rm -f aichat.tar.gz
aichat --version

8.2 Configure aichat

mkdir -p ~/.config/aichat
cat > ~/.config/aichat/config.yaml << 'EOF'
default_model: rk:Qwen3-8B # Default model
clients:
  - type: openai-compatible # OpenAI-compatible API
    name: rk # Client alias used as rk:xxx on the command line
    api_base: http://localhost:8888/v1 # Server API base URL
    api_key: none  # The local service does not require authentication
    models: # Available models
      - name: Qwen3-8B
EOF

8.3 Use aichat

aichat                    # Start an interactive session
aichat "Your question"    # Send a single prompt
.model rk:Qwen3-8B        # Switch to Qwen3-8B
.new                      # Start a new conversation
.exit                     # Exit the session

To verify the setup in this RK1828 LLM deployment guide, send a text request to Qwen3-8B on port 8888 and an image request to Qwen3-VL-4B on port 8889. Once you have verified each endpoint, you can use the same request format in your own application.

Mehr erfahren:
Über mich
db6893fd1d3e314ac461fa240068dc06?s=150&d=mp&r=g
Spezialist für IoT-Lösungen ~ Web ~  Weitere Beiträge

Agnes Wang ist Spezialistin für IoT-Lösungen bei IOTRouter und konzentriert sich auf industrielle IoT-Gateways, Edge-Computing und Lösungen für die industrielle Automatisierung.

Sie ist auf industrielle Kommunikationstechnologien spezialisiert, darunter Modbus, IEC 60870-5-104, MQTT, OPC UA, SPS-Integration und Fernüberwachungsanwendungen. Sie verfasst Fachartikel und Anwendungsleitfäden zu industriellen IoT-Lösungen, Protokollkonvertierung und Edge-Computing.

↑