Repository navigation
Split the RKNN quality numbers by what varies, in docs/build/rockchip-npu.md - #945
Merged
Merged
Conversation
…-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".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this documents
The cosyvoice3 RKNN section states one quality number,
offline ggml-vs-RKNN output SNR 27 dB, andone comparison,
the two batch sizes agree to 57 dB, in one paragraph. Those numbers are notcomparable 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, 2x2matrix (backend x mode) plus the batch comparison:
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.