Skip to content

Split the RKNN quality numbers by what varies, in docs/build/rockchip-npu.md - #945

Merged
0xShug0 merged 1 commit into
0xShug0:mainfrom
wOvAN:rknn-divergence-split
Oct 17, 2026
Merged

0xShug0 merged 1 commit into
0xShug0:mainfrom
wOvAN:rknn-divergence-split

Conversation

@wOvAN

@wOvAN wOvAN commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

What this documents

The cosyvoice3 RKNN section states one quality number, offline ggml-vs-RKNN output SNR 27 dB, and
one comparison, the two batch sizes agree to 57 dB, in one paragraph. Those numbers are not
comparable to each other and one of the comparisons in that area is not about the NPU at all, which
is easy to miss when reading the table cold.

This change splits them by what varies, and states the one row that is a mode effect rather than a
sidecar cost.

The measurement

One binary, one voice reference, seed=42, conv_weight_type=f16, all other stages on CPU, 2x2
matrix (backend x mode) plus the batch comparison:

pair SNR 20 ms RMS envelope corr
backend, offline, 185 chars 27 dB -
backend, offline, 307 chars 25.1 dB 0.9999
backend, streaming, 307 chars 16.4 dB 0.9988
backend, RKNN B=16 vs B=64 57 dB -
mode, same backend (streaming vs offline), 307 chars -2.2 dB 0.187

The last row is the one worth writing down. It measures the same on the CPU graph path (-2.24 dB on
CPU against -2.23 dB on RKNN), so the streaming/offline gap is the streaming mode, not the sidecar.
Cross-correlation alignment moves it by 0.1 dB at a -120 ms lag, so it is not an alignment artifact:
an envelope correlation of 0.187 over the whole phrase is what two valid syntheses of one text look
like, not what a time shift looks like. GigaAM v3 CTC (16 kHz) transcribes all five renders of the
matrix to the input text exactly (CER 0.00%), so none of them dropped or repeated content.

Validation

Docs only, no code path touched. The numbers come from the runs recorded in the section this change
edits; the paragraph it replaces keeps its content (the fp16 noise floor, the group-boundary
discontinuity check, the B=16/B=64 agreement) as rows and notes of the table.

…-npu.md

The quality paragraph quoted one number per pair, and the pairs are not
comparable: the streaming/offline mode switch is -2.2 dB on every backend
including CPU, while the ggml-vs-RKNN backend switch is 16-27 dB. Quoted side by
side as single numbers, the smaller one reads as the sidecar's cost, which is the
opposite of what it measures.

Split into a table with the mode row labelled as the mode row, and the mode row
given the evidence that it is not a backend effect: -2.24 dB on CPU against
-2.23 dB on RKNN, one binary, one voice reference, seed 42, 307 Russian
characters; cross-correlation alignment moves it by 0.1 dB at a -120 ms lag, so
it is not a time shift, and the 20 ms envelope correlation of 0.187 against
0.9988-0.9999 for the backend rows is the signature of a different generation
trajectory, not of an artifact. GigaAM v3 CTC transcribes all five renders of
that matrix to the input text exactly (CER 0.00%).

From the 0xShug0#901 exchange, where the same single-number table was read as "the RKNN
divergence looks a bit high".
@0xShug0
0xShug0 merged commit 2d3ceeb into 0xShug0:main Oct 17, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants