Rockchip · AI & Linux Hub

AI inference

Validating RKNN3 models: accuracy, latency and memory in one acceptance plan

Successful conversion proves that artifacts were produced.

Successful conversion proves that artifacts were produced. It does not establish correct answers, acceptable latency or stable long-running operation. Define acceptance criteria before optimizing, otherwise a faster run may conceal lost accuracy or increasing memory use.

This is an original technical interpretation and implementation guide based on official documentation. This workflow has not been verified on ArmSoM hardware. Match the target chip, SDK, Runtime, driver and firmware before deployment.

Accuracy and performance: Original-model baseline → Compare converted output → Validate on target → Accept real workloads

Original ArmSoM workflow illustration; it does not represent hardware test results. Open the image for its vector version.

Preserve a trustworthy reference

The development guide covers conversion, quantization, evaluation and deployment, alongside KV Cache, LoRA and PagedAttention. For an engineering baseline, freeze the original model and preprocessing, then compare converted artifacts on the same test set.

For vision, retain both the source image and the preprocessed tensor. For language, preserve text, templates, tokenizer configuration and generation conditions. A filename alone can hide changes in color order, resizing or prompting.

Give each objective its own threshold

Dimension Useful evidence Insufficient evidence
Accuracy Application metric and failure distribution One attractive screenshot
Latency Initial, steady-state and tail latency Only the fastest run
Memory Peak and repeated-run behavior One reading after startup

Thresholds come from the application. Interactive systems prioritize waiting time; detection pipelines must also consider missed events and queued work. One metric cannot represent every product requirement.

Change one major variable at a time

Compare the original model, an unquantized conversion, a quantized conversion and device results in stages. When accuracy changes, first prove the inputs match, then identify the earliest meaningful divergence.

Different wording from a generative model is not automatically a failure. Prepare factual questions, output-format requirements, long prompts and invalid inputs, with an explicit scoring method. Include failed cases rather than selecting only impressive answers.

Measure the complete request

Record capture, preprocessing, queueing, inference and postprocessing separately. Improving inference alone may not resolve slow user responses. Stages in an asynchronous pipeline can overlap; measurements from different windows cannot simply be added.

An editorial result-record template:

case_id,model_sha256,input_sha256,run_mode,
load_ms,queue_ms,inference_ms,end_to_end_ms,
peak_memory_mb,quality_score,error

Fill it with measured results, not anticipated scores.

Regress after optimization

Keep a fixed regression set and add field samples. Recheck accuracy, resource cleanup and recovery after changing quantization, cache policy or concurrency. Documentation capabilities and examples are not ArmSoM product measurements. No hardware benchmark was performed for this article.

Plan an ArmSoM-based project

If an ArmSoM board is being considered as the application host, start with the product information for Sige7, Sige5 and CM5. Check interfaces, power, OS image and drivers for the actual board and carrier revision. These are host-selection references, not a plug-and-play compatibility claim for RK182X modules. The integrated NPUs in RK3588 / RK3576 use the corresponding RKNN Toolkit2 stack; selecting one of these hosts does not move its internal NPU to RKNN3.

Related interface and module documentation: RK182X M.2 · RK182X SO-DIMM · RK3572 Datasheet V1.0

Official documentation and version

Based on official repository snapshot 141883c8e11b0, checked on 2026-11-14. Consult the source for complete interfaces, parameters and restrictions. This article is not a replacement for the manual or a reproduction of the full PDF.

Reading order

Products and development resources

Check the hardware revision, carrier, image and interfaces in the product documentation. An article association is not evidence that a configuration has been tested.

These models are linked for further platform reading; the examples are not claimed to be ported to them.

Explore this topic → · Learning paths →