erquren commited on
Commit
315f0d7
·
verified ·
1 Parent(s): 0b091a2

Add tested RK3588 conversion artifacts and concise validation summary

Browse files

All model assets are under rk3588/. Host validation passed; board inference and RKLLM recognition accuracy remain untested.

.gitattributes CHANGED
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ rk3588/rknn/encoder-2s.fp16.rk3588.rknn filter=lfs diff=lfs merge=lfs -text
37
+ rk3588/rknn/encoder-4s.fp16.rk3588.rknn filter=lfs diff=lfs merge=lfs -text
38
+ rk3588/rknn/encoder-15s.fp16.rk3588.rknn filter=lfs diff=lfs merge=lfs -text
39
+ rk3588/rkllm/decoder.fp16.rk3588.rkllm filter=lfs diff=lfs merge=lfs -text
40
+ rk3588/rkllm/decoder.w8a8.rk3588.rkllm filter=lfs diff=lfs merge=lfs -text
LICENSE ADDED
@@ -0,0 +1,201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Alibaba Cloud
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
NOTICE ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Qwen3-ASR-0.6B conversions for RK3588
2
+
3
+ These artifacts are derived from Qwen/Qwen3-ASR-0.6B by the Alibaba Qwen team,
4
+ revision 5eb144179a02acc5e5ba31e748d22b0cf3e303b0. The source model is licensed
5
+ under Apache License 2.0. Its original model card and attribution are available
6
+ at https://huggingface.co/Qwen/Qwen3-ASR-0.6B/tree/5eb144179a02acc5e5ba31e748d22b0cf3e303b0.
7
+
8
+ Modifications: fixed-duration audio encoders were exported to FP32/FP16 ONNX
9
+ and FP16 RKNN; the text decoder was extracted, adapted to an equivalent
10
+ equal-position ordinary-RoPE configuration, and compiled to FP16 and W8A8
11
+ RKLLM. Deployment tokenizer/configuration assets, FP32 token embeddings, and
12
+ mel filters accompany the conversions. The decoder_hf directory is not a
13
+ complete standalone Hugging Face checkpoint.
14
+
15
+ Conversion and validation source code:
16
+ https://github.com/erquren/qwen3-asr
17
+
18
+ RKNN Toolkit2 and RKLLM Toolkit are separately distributed Rockchip software
19
+ and are not included or relicensed here. Their own license terms apply.
20
+
21
+ Recognition evaluation uses five Mandarin test utterances from google/fleurs.
22
+ FLEURS data and reproduced reference transcriptions retain their CC-BY-4.0
23
+ license: https://creativecommons.org/licenses/by/4.0/.
24
+ Attribution: Alexis Conneau, Min Ma, Simran Khanuja, Yu Zhang, Vera Axelrod,
25
+ Siddharth Dalmia, Jason Riesa, Clara Rivera, and Ankur Bapna (2022),
26
+ FLEURS: Few-shot Learning Evaluation of Universal Representations of Speech,
27
+ https://arxiv.org/abs/2205.12446. The evaluated source dataset revision is
28
+ 168de341b3db6859a9bac1c50a2ef5e3b47647e0 at
29
+ https://huggingface.co/datasets/google/fleurs/tree/168de341b3db6859a9bac1c50a2ef5e3b47647e0.
30
+ No audio recordings or calibration arrays are included in this repository.
31
+
32
+ Compilation and host tests do not establish RK3588 board operation or
33
+ quantized RKLLM recognition accuracy. See README.md for measured results and
34
+ known limitations.
README.md CHANGED
@@ -1,3 +1,109 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - zh
5
+ - en
6
+ pipeline_tag: automatic-speech-recognition
7
+ base_model: Qwen/Qwen3-ASR-0.6B
8
+ tags:
9
+ - qwen3-asr
10
+ - onnx
11
+ - rknn
12
+ - rkllm
13
+ - rk3588
14
+ - speech-recognition
15
  ---
16
+
17
+ # Qwen3-ASR-0.6B:RKNN 兼容 ONNX / RK3588 转换产物
18
+
19
+ 从官方 [Qwen/Qwen3-ASR-0.6B](https://huggingface.co/Qwen/Qwen3-ASR-0.6B) 固定 revision `5eb144179a02acc5e5ba31e748d22b0cf3e303b0` 转换。
20
+ 主要用途是 **导出支持 RKNN 转换的 encoder ONNX**,并提供独立 decoder 的 RKLLM 文件。
21
+
22
+ **已完成主机导出、数值对比、小样本中文识别回归;尚未完成 RK3588 实机验证或 RKLLM 量化后识别精度测试。**
23
+ 15 秒 RKNN 编译仍有 `Unkown op target: 0` 诊断,且 encoder 图有 CPU 算子回退。不要把这些文件视为已经板测的纯 NPU 生产部署包。
24
+
25
+ ## 文件
26
+
27
+ | 目录 | 内容 |
28
+ | --- | --- |
29
+ | `rk3588/onnx/` | 2 / 4 / 15 秒静态 encoder,FP32 和 FP16 ONNX;opset 18 |
30
+ | `rk3588/rknn/` | 2 / 4 / 15 秒 FP16 encoder,RK3588,RKNN Toolkit2 2.3.2 |
31
+ | `rk3588/rkllm/decoder.fp16.rk3588.rkllm` | 独立 decoder FP16,1,529,743,212 bytes |
32
+ | `rk3588/rkllm/decoder.w8a8.rk3588.rkllm` | 独立 decoder W8A8,936,054,076 bytes |
33
+ | `rk3588/decoder_hf/` | 部署用 FP32 `embed_tokens.npy`、tokenizer、词表、chat template、配置 |
34
+ | `rk3588/preprocessor/` | 官方 mel filters `[201,128]` FP32,以及 preprocessor config |
35
+ | `rk3588/reports/asr_summary.json` | 简洁中文 CER 汇总;模型来源和 SHA-256 见发布清单 |
36
+
37
+ `rk3588/decoder_hf/` **没有独立 decoder 的 model.safetensors**,不能直接作为完整 HF 模型加载。需要复现/再转换时,可用代码仓库的提取脚本从官方原始模型重建。原始完整 ASR 权重、录音、校准 embedding 数组、失败产物和 SDK wheel 不包含在此仓库。
38
+
39
+ ## 中文识别精度:实际结果
40
+
41
+ 2026-10-10,Google FLEURS `cmn_hans_cn/test` 的固定 **5 条完整录音,33.84 秒,129 个归一化参考字符**。
42
+ 四个路径使用相同官方 processor/Chinese prompt 和 CPU FP32 decoder,greedy decoding。
43
+
44
+ | 路径 | CER | 相对原模型变化 |
45
+ | --- | ---: | ---: |
46
+ | 官方原模型 FP32 greedy | 0.7752%(1/129) | — |
47
+ | ONNX FP32 encoder + HF decoder | 0.7752%(1/129) | 0 个百分点 |
48
+ | ONNX FP16 encoder + HF decoder | 0.7752%(1/129) | 0 个百分点 |
49
+ | RKNN host simulator encoder + HF decoder | 0.7752%(1/129) | 0 个百分点 |
50
+
51
+ 5/5 条原始识别文本及生成 token IDs 均相同;唯一 CER 错误是“转送”被识别成“转转送”。无失败、无截断、无错误样本剔除。CER 使用 NFKC/casefold、去除 Unicode 标点与空白后的累计 Levenshtein 错误数 / 累计参考字符数。
52
+
53
+ 这是 **encoder 转换的短句回归**,不是全量基准精度。全部录音为 5.04–7.74 秒,因此识别回归只覆盖 15 秒桶;2/4 秒桶另有 tensor 级数值验证。
54
+ **RKLLM FP16 / W8A8 没有运行识别推理,不能把上表当作 RKLLM 量化后的 CER。**
55
+
56
+ 简洁汇总见 `rk3588/reports/asr_summary.json`;逐条参考/输出和复现方法见代码仓库的精度文档,原始测试 JSON 与日志保留在本地。语料与 W8A8 校准的英文 JFK 音频分开;不声称 Qwen 的原始预训练一定未用过 FLEURS。
57
+
58
+ ## 转换与数值验证
59
+
60
+ - 2/4/15 秒 ONNX FP32、FP16:导出、ONNX checker、ONNX Runtime CPU 对比通过。
61
+ - 2/4/15 秒 RKNN:load/build/export 返回 0,host simulator 数值对比通过。
62
+ - encoder 全部测试中:FP32 ONNX 最大 relative L2 约 `1.053e-5`;FP16 ONNX 约 `0.001539`;RKNN simulator 约 `0.005397`。具体容差及数值汇总见代码仓库的验证文档。
63
+ - 独立 decoder 与官方 decoder 的 16 项 CPU FP32 比较逐位一致,包括 KV cache、padding、RoPE 和完整 FP32 embedding 表。
64
+ - RKLLM 1.2.3,目标 RK3588、3 核、max_context 4096:FP16 和 W8A8 的 load/build/export 均成功。
65
+ - W8A8 使用真实 2/4/15 秒 encoder 输出加官方文本 prompt 做校准,共 3 个输入、44/70/213 token。它们来自同一个英文语音,只是校准链 smoke test,不是代表性多语种/多场景校准。
66
+ - W8A8 前两次在序列化阶段被 SIGKILL;释放主机 RAM 压力、CPU FP16 加载和标准 allocator 回收后,同一 3 输入重试成功。失败日志未被当作成功证据。
67
+
68
+ 最终 decoder SHA-256:
69
+
70
+ ```text
71
+ FP16 b186eae6e5e22be630363d1c1ae6509beb8a90896458ec8fd53da9ad1536af55
72
+ W8A8 0e9942a3c9723a760dd8283081fcc7a032c28d66c3f1e41df2506746984f0d15
73
+ ```
74
+
75
+ ## Encoder 输入约定
76
+
77
+ | 桶 | input_features | attention_mask | audio_embeds |
78
+ | --- | --- | --- | --- |
79
+ | 2 s | `[1,128,200]` | `[1,1,26,26]` | `[1,26,1024]` |
80
+ | 4 s | `[1,128,400]` | `[1,1,52,52]` | `[1,52,1024]` |
81
+ | 15 s | `[1,128,1500]` | `[1,1,195,195]` | `[1,195,1024]` |
82
+
83
+ ONNX 外部 I/O 是 **FP32**,即使文件名为 FP16。使用 RKNN Runtime 时应查询实际 tensor dtype/layout,不要根据 ONNX 或文件名猜测。
84
+
85
+ - batch=1;16 kHz 音频,官方 WhisperFeatureExtractor,128 mel bins,FFT400 / hop160。
86
+ - 每 100 mel 帧单独经过卷积,位置编码重置,输出 13 token;最终 projection 为 1024 维。
87
+ - additive mask:允许=0,禁止=-10000;默认双向窗口 104 token,15 秒为 `[104,91]`。
88
+ - 本次支持至少 100 个有效 mel 帧。先提取真实 mel,再把有效长度后的 **mel 填零**;波形静音 padding 与 mel 零 padding 不是同一语义。
89
+ - 屏蔽 padding key,并只把前 `13*(valid_frames//100)+ceil((valid_frames%100)/8)` 个输出 token 送入 decoder。
90
+ - 官方 qwen-asr 0.0.6 eager 的长音频注意力没有应用其 cu_seqlens 窗口;本项目用原生 layer 分段执行构造分窗参考。中文回归音频均不超过 800 mel 帧,避免该区别。
91
+
92
+ ## 已知部署限制
93
+
94
+ 1. 15 秒 RKNN 编译器打印一次 `E RKNN: Unkown op target: 0`。虽然 export 与 host simulation 通过,仍需在真实 RK3588 上确认,未认定该诊断无害。
95
+ 2. GELU 展开的 22 个 Erf 算子有 CPU 回退;不能宣称全部算子在 NPU 执行。
96
+ 3. 未验证真实 RK3588 的模型加载、RKLLM external embedding 接口、KV cache、EOS、准确率、稳定性或速度。
97
+ 4. FP16 ONNX 对比的是官方 FP32 参考,不是原生官方 FP16 所有分支的逐算子等价证明。
98
+ 5. 5 条中文 / 129 字不能证明全任务无精度损失;W8A8 的 3 条同源英文校准样本也不足以保证量化识别质量。
99
+
100
+ ## 复现代码
101
+
102
+ [erquren/qwen3-asr](https://github.com/erquren/qwen3-asr):导出、RKNN/RKLLM 转换、独立 decoder parity、真实语音识别与 CER、完整输入约定和测试摘要。
103
+ 工具链分别使用:导出 Transformers4.57.6 / Torch2.6.0 CPU;RKNN Toolkit2 2.3.2;RKLLM Toolkit1.2.3 / Transformers4.55.2。三个环境应分开。
104
+
105
+ ## 许可与归属
106
+
107
+ 官方 Qwen3-ASR-0.6B 权重及本项目原创转换代码遵循 Apache License2.0。Rockchip SDK/runtime 遵循其自身条款,未打包或重新许可。
108
+
109
+ 报告中的 FLEURS 参考文本来自 [Google FLEURS](https://huggingface.co/datasets/google/fleurs),Conneau et al., *FLEURS: Few-shot Learning Evaluation of Universal Representations of Speech* (2022),[论文](https://arxiv.org/abs/2205.12446),依 [CC BY4.0](https://creativecommons.org/licenses/by/4.0/) 使用。参考原文未改写,CER 归一化另行说明;未包含音频。
rk3588/SHA256SUMS ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ a44a6081c73ad75f0255bb2bb5cab74ef1829565a895a24e53a4f11290ab7655 LICENSE
2
+ c738f8f8b62931209c65ccd4560e3de98a174969dfdbabe2780f85df467649bf NOTICE
3
+ 44571186dd3103979ea00b4d2ad5aa76a7aa1d1e81473a0f72ced9c431e375ec README.md
4
+ a103579066642f0e035873f12de6046a1bbc909a7a2833732fda9fd6bc7c528d rk3588/decoder_hf/chat_template.jinja
5
+ 75a8cfca24f00de72d796fbfed6858fc9614ef3dabd8696684cc3bc03a9c58ff rk3588/decoder_hf/chat_template.json
6
+ c0d80499d7b2d58a3bbd4868175a9d6acc8778b2543b5ac564944053ba032d7d rk3588/decoder_hf/config.json
7
+ dc7fa8078c75467dbb400b214289a69cc7d3624fc944980282a098b5de15ca97 rk3588/decoder_hf/embed_tokens.npy
8
+ 1da527824d81e07118facff437e03f2e24a23311e3bdeb2368973fe77e5f275c rk3588/decoder_hf/generation_config.json
9
+ 8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5 rk3588/decoder_hf/merges.txt
10
+ 4942d005604266809309cabc9f4e9cb89ce855d59b14681fdc0e1cc62ea26c4c rk3588/decoder_hf/tokenizer_config.json
11
+ ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910 rk3588/decoder_hf/vocab.json
12
+ f103fe2c78353e3d6a0c1cf736373dde603cb01e47231374160b8780fa45dd97 rk3588/manifest.json
13
+ c001dd707e7938224e23bcfc5c8952944ac341f2ece11000d334b6cdf7ca2cb0 rk3588/onnx/encoder-15s.fp16.onnx
14
+ 2f897ef5935d4926544b2ceac1c65235d732e3d47406ab4aa5b7debd886f2315 rk3588/onnx/encoder-15s.fp32.onnx
15
+ 4d2172575bac53516215ba8491ba88a99c9c07c71e8223d2d0ee5aafeb617bfd rk3588/onnx/encoder-2s.fp16.onnx
16
+ a9e4c0714be35a14f828369c18a79afe2f60f9a0e1c314185906382b5c7ae663 rk3588/onnx/encoder-2s.fp32.onnx
17
+ 5570792843087565415cfab88932f266cd753e7e74e4ab924e0b4dcfc35dc870 rk3588/onnx/encoder-4s.fp16.onnx
18
+ 289ae1a34389e1450e49fe8d8e1e4e2fa69d464e1f2e90135ab56c53736b6aa6 rk3588/onnx/encoder-4s.fp32.onnx
19
+ 8abf12444e0d9c0fd6c5e49f8b977d41e47b51a5eb48d399c232578d3d5e914f rk3588/preprocessor/mel_filters.npy
20
+ 45e120a4eda2c20c5d7f2ea9354e63536bf35e27aa573fb7cdf78017b378770d rk3588/preprocessor/preprocessor_config.json
21
+ a90df60defeb217ceec30588eec78306bf10f88a7675332b4bc46b9ff2a5d5ca rk3588/reports/asr_summary.json
22
+ b186eae6e5e22be630363d1c1ae6509beb8a90896458ec8fd53da9ad1536af55 rk3588/rkllm/decoder.fp16.rk3588.rkllm
23
+ 0e9942a3c9723a760dd8283081fcc7a032c28d66c3f1e41df2506746984f0d15 rk3588/rkllm/decoder.w8a8.rk3588.rkllm
24
+ e93e4f3730970e64a1028e5fd87da72e84aed88df4b7fb2bdbc61aad6cb75bc5 rk3588/rknn/encoder-15s.fp16.rk3588.rknn
25
+ 273c17ea6d56ee9257ac66cdd6efa33ab1e9475474c67d2f72fa30fc36a06077 rk3588/rknn/encoder-2s.fp16.rk3588.rknn
26
+ f60de939f1ccfea3bdcc173e4daf744f30709d02873e3b0efcf95c4c1948bc4b rk3588/rknn/encoder-4s.fp16.rk3588.rknn
rk3588/decoder_hf/chat_template.jinja ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set ns = namespace(system_text="") -%}
2
+ {%- for m in messages -%}
3
+ {%- if m.role == 'system' -%}
4
+ {%- if m.content is string -%}
5
+ {%- set ns.system_text = ns.system_text + m.content -%}
6
+ {%- else -%}
7
+ {%- for c in m.content -%}
8
+ {%- if c.type == 'text' and (c.text is defined) -%}
9
+ {%- set ns.system_text = ns.system_text + c.text -%}
10
+ {%- endif -%}
11
+ {%- endfor -%}
12
+ {%- endif -%}
13
+ {%- endif -%}
14
+ {%- endfor -%}
15
+
16
+ {%- set ns2 = namespace(audio_tokens="") -%}
17
+ {%- for m in messages -%}
18
+ {%- if m.content is not string -%}
19
+ {%- for c in m.content -%}
20
+ {%- if c.type == 'audio' or ('audio' in c) or ('audio_url' in c) -%}
21
+ {%- set ns2.audio_tokens = ns2.audio_tokens + "<|audio_start|><|audio_pad|><|audio_end|>" -%}
22
+ {%- endif -%}
23
+ {%- endfor -%}
24
+ {%- endif -%}
25
+ {%- endfor -%}
26
+
27
+ {{- '<|im_start|>system\n' + (ns.system_text if ns.system_text is string else '') + '<|im_end|>\n' -}}
28
+ {{- '<|im_start|>user\n' + ns2.audio_tokens + '<|im_end|>\n' -}}
29
+ {%- if add_generation_prompt -%}
30
+ {{- '<|im_start|>assistant\n' -}}
31
+ {%- endif -%}
rk3588/decoder_hf/chat_template.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"chat_template": "{%- set ns = namespace(system_text=\"\") -%}\n{%- for m in messages -%}\n {%- if m.role == 'system' -%}\n {%- if m.content is string -%}\n {%- set ns.system_text = ns.system_text + m.content -%}\n {%- else -%}\n {%- for c in m.content -%}\n {%- if c.type == 'text' and (c.text is defined) -%}\n {%- set ns.system_text = ns.system_text + c.text -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- endif -%}\n{%- endfor -%}\n\n{%- set ns2 = namespace(audio_tokens=\"\") -%}\n{%- for m in messages -%}\n {%- if m.content is not string -%}\n {%- for c in m.content -%}\n {%- if c.type == 'audio' or ('audio' in c) or ('audio_url' in c) -%}\n {%- set ns2.audio_tokens = ns2.audio_tokens + \"<|audio_start|><|audio_pad|><|audio_end|>\" -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n{%- endfor -%}\n\n{{- '<|im_start|>system\\n' + (ns.system_text if ns.system_text is string else '') + '<|im_end|>\\n' -}}\n{{- '<|im_start|>user\\n' + ns2.audio_tokens + '<|im_end|>\\n' -}}\n{%- if add_generation_prompt -%}\n{{- '<|im_start|>assistant\\n' -}}\n{%- endif -%}"}
rk3588/decoder_hf/config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "vocab_size": 151936,
3
+ "hidden_size": 1024,
4
+ "intermediate_size": 3072,
5
+ "num_hidden_layers": 28,
6
+ "num_attention_heads": 16,
7
+ "num_key_value_heads": 8,
8
+ "head_dim": 128,
9
+ "hidden_act": "silu",
10
+ "max_position_embeddings": 65536,
11
+ "initializer_range": 0.02,
12
+ "rms_norm_eps": 1e-06,
13
+ "rope_theta": 1000000,
14
+ "attention_bias": false,
15
+ "attention_dropout": 0.0,
16
+ "use_cache": true,
17
+ "model_type": "qwen3",
18
+ "architectures": [
19
+ "Qwen3ForCausalLM"
20
+ ],
21
+ "tie_word_embeddings": false,
22
+ "rope_scaling": null,
23
+ "use_sliding_window": false,
24
+ "sliding_window": null,
25
+ "torch_dtype": "bfloat16",
26
+ "eos_token_id": [
27
+ 151643,
28
+ 151645
29
+ ],
30
+ "pad_token_id": 151643
31
+ }
rk3588/decoder_hf/embed_tokens.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc7fa8078c75467dbb400b214289a69cc7d3624fc944980282a098b5de15ca97
3
+ size 622329984
rk3588/decoder_hf/generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "eos_token_id": [151643,151645],
4
+ "pad_token_id": 151643,
5
+ "do_sample": false,
6
+ "temperature": 0.000001
7
+ }
rk3588/decoder_hf/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
rk3588/decoder_hf/tokenizer_config.json ADDED
@@ -0,0 +1,549 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "151665": {
182
+ "content": "<tool_response>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "151666": {
190
+ "content": "</tool_response>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "151667": {
198
+ "content": "<think>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "151668": {
206
+ "content": "</think>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ },
213
+ "151669": {
214
+ "content": "<|audio_start|>",
215
+ "lstrip": false,
216
+ "normalized": false,
217
+ "rstrip": false,
218
+ "single_word": false,
219
+ "special": true
220
+ },
221
+ "151670": {
222
+ "content": "<|audio_end|>",
223
+ "lstrip": false,
224
+ "normalized": false,
225
+ "rstrip": false,
226
+ "single_word": false,
227
+ "special": true
228
+ },
229
+ "151671": {
230
+ "content": "<tts_pad>",
231
+ "lstrip": false,
232
+ "normalized": false,
233
+ "rstrip": false,
234
+ "single_word": false,
235
+ "special": true
236
+ },
237
+ "151672": {
238
+ "content": "<tts_text_bos>",
239
+ "lstrip": false,
240
+ "normalized": false,
241
+ "rstrip": false,
242
+ "single_word": false,
243
+ "special": true
244
+ },
245
+ "151673": {
246
+ "content": "<tts_text_eod>",
247
+ "lstrip": false,
248
+ "normalized": false,
249
+ "rstrip": false,
250
+ "single_word": false,
251
+ "special": true
252
+ },
253
+ "151674": {
254
+ "content": "<tts_text_bos_single>",
255
+ "lstrip": false,
256
+ "normalized": false,
257
+ "rstrip": false,
258
+ "single_word": false,
259
+ "special": true
260
+ },
261
+ "151675": {
262
+ "content": "<non_speech>",
263
+ "lstrip": false,
264
+ "normalized": false,
265
+ "rstrip": false,
266
+ "single_word": false,
267
+ "special": false
268
+ },
269
+ "151676": {
270
+ "content": "<|audio_pad|>",
271
+ "lstrip": false,
272
+ "normalized": false,
273
+ "rstrip": false,
274
+ "single_word": false,
275
+ "special": true
276
+ },
277
+ "151677": {
278
+ "content": "<blank1>",
279
+ "lstrip": false,
280
+ "normalized": false,
281
+ "rstrip": false,
282
+ "single_word": false,
283
+ "special": true
284
+ },
285
+ "151678": {
286
+ "content": "<blank2>",
287
+ "lstrip": false,
288
+ "normalized": false,
289
+ "rstrip": false,
290
+ "single_word": false,
291
+ "special": true
292
+ },
293
+ "151679": {
294
+ "content": "<blank3>",
295
+ "lstrip": false,
296
+ "normalized": false,
297
+ "rstrip": false,
298
+ "single_word": false,
299
+ "special": true
300
+ },
301
+ "151680": {
302
+ "content": "<blank4>",
303
+ "lstrip": false,
304
+ "normalized": false,
305
+ "rstrip": false,
306
+ "single_word": false,
307
+ "special": true
308
+ },
309
+ "151681": {
310
+ "content": "<blank5>",
311
+ "lstrip": false,
312
+ "normalized": false,
313
+ "rstrip": false,
314
+ "single_word": false,
315
+ "special": true
316
+ },
317
+ "151682": {
318
+ "content": "<blank6>",
319
+ "lstrip": false,
320
+ "normalized": false,
321
+ "rstrip": false,
322
+ "single_word": false,
323
+ "special": true
324
+ },
325
+ "151683": {
326
+ "content": "<blank7>",
327
+ "lstrip": false,
328
+ "normalized": false,
329
+ "rstrip": false,
330
+ "single_word": false,
331
+ "special": true
332
+ },
333
+ "151684": {
334
+ "content": "<blank8>",
335
+ "lstrip": false,
336
+ "normalized": false,
337
+ "rstrip": false,
338
+ "single_word": false,
339
+ "special": true
340
+ },
341
+ "151685": {
342
+ "content": "<blank9>",
343
+ "lstrip": false,
344
+ "normalized": false,
345
+ "rstrip": false,
346
+ "single_word": false,
347
+ "special": true
348
+ },
349
+ "151686": {
350
+ "content": "<blank10>",
351
+ "lstrip": false,
352
+ "normalized": false,
353
+ "rstrip": false,
354
+ "single_word": false,
355
+ "special": true
356
+ },
357
+ "151687": {
358
+ "content": "<blank11>",
359
+ "lstrip": false,
360
+ "normalized": false,
361
+ "rstrip": false,
362
+ "single_word": false,
363
+ "special": true
364
+ },
365
+ "151688": {
366
+ "content": "<blank12>",
367
+ "lstrip": false,
368
+ "normalized": false,
369
+ "rstrip": false,
370
+ "single_word": false,
371
+ "special": true
372
+ },
373
+ "151689": {
374
+ "content": "<blank13>",
375
+ "lstrip": false,
376
+ "normalized": false,
377
+ "rstrip": false,
378
+ "single_word": false,
379
+ "special": true
380
+ },
381
+ "151690": {
382
+ "content": "<blank14>",
383
+ "lstrip": false,
384
+ "normalized": false,
385
+ "rstrip": false,
386
+ "single_word": false,
387
+ "special": true
388
+ },
389
+ "151691": {
390
+ "content": "<blank15>",
391
+ "lstrip": false,
392
+ "normalized": false,
393
+ "rstrip": false,
394
+ "single_word": false,
395
+ "special": true
396
+ },
397
+ "151692": {
398
+ "content": "<blank16>",
399
+ "lstrip": false,
400
+ "normalized": false,
401
+ "rstrip": false,
402
+ "single_word": false,
403
+ "special": true
404
+ },
405
+ "151693": {
406
+ "content": "<blank17>",
407
+ "lstrip": false,
408
+ "normalized": false,
409
+ "rstrip": false,
410
+ "single_word": false,
411
+ "special": true
412
+ },
413
+ "151694": {
414
+ "content": "<blank18>",
415
+ "lstrip": false,
416
+ "normalized": false,
417
+ "rstrip": false,
418
+ "single_word": false,
419
+ "special": true
420
+ },
421
+ "151695": {
422
+ "content": "<blank19>",
423
+ "lstrip": false,
424
+ "normalized": false,
425
+ "rstrip": false,
426
+ "single_word": false,
427
+ "special": true
428
+ },
429
+ "151696": {
430
+ "content": "<blank20>",
431
+ "lstrip": false,
432
+ "normalized": false,
433
+ "rstrip": false,
434
+ "single_word": false,
435
+ "special": true
436
+ },
437
+ "151697": {
438
+ "content": "<blank21>",
439
+ "lstrip": false,
440
+ "normalized": false,
441
+ "rstrip": false,
442
+ "single_word": false,
443
+ "special": true
444
+ },
445
+ "151698": {
446
+ "content": "<blank22>",
447
+ "lstrip": false,
448
+ "normalized": false,
449
+ "rstrip": false,
450
+ "single_word": false,
451
+ "special": true
452
+ },
453
+ "151699": {
454
+ "content": "<blank23>",
455
+ "lstrip": false,
456
+ "normalized": false,
457
+ "rstrip": false,
458
+ "single_word": false,
459
+ "special": true
460
+ },
461
+ "151700": {
462
+ "content": "<blank24>",
463
+ "lstrip": false,
464
+ "normalized": false,
465
+ "rstrip": false,
466
+ "single_word": false,
467
+ "special": true
468
+ },
469
+ "151701": {
470
+ "content": "<blank25>",
471
+ "lstrip": false,
472
+ "normalized": false,
473
+ "rstrip": false,
474
+ "single_word": false,
475
+ "special": true
476
+ },
477
+ "151702": {
478
+ "content": "<blank26>",
479
+ "lstrip": false,
480
+ "normalized": false,
481
+ "rstrip": false,
482
+ "single_word": false,
483
+ "special": true
484
+ },
485
+ "151703": {
486
+ "content": "<blank27>",
487
+ "lstrip": false,
488
+ "normalized": false,
489
+ "rstrip": false,
490
+ "single_word": false,
491
+ "special": true
492
+ },
493
+ "151704": {
494
+ "content": "<asr_text>",
495
+ "lstrip": false,
496
+ "normalized": false,
497
+ "rstrip": false,
498
+ "single_word": false,
499
+ "special": false
500
+ }
501
+ },
502
+ "additional_special_tokens": [
503
+ "<|im_start|>",
504
+ "<|im_end|>",
505
+ "<|object_ref_start|>",
506
+ "<|object_ref_end|>",
507
+ "<|box_start|>",
508
+ "<|box_end|>",
509
+ "<|quad_start|>",
510
+ "<|quad_end|>",
511
+ "<|vision_start|>",
512
+ "<|vision_end|>",
513
+ "<|vision_pad|>",
514
+ "<|image_pad|>",
515
+ "<|video_pad|>",
516
+ "<|audio_start|>",
517
+ "<|audio_end|>",
518
+ "<tts_pad>",
519
+ "<tts_text_bos>",
520
+ "<tts_text_bos_single>",
521
+ "<|audio_pad|>"
522
+ ],
523
+ "audio_bos_token": "<|audio_start|>",
524
+ "audio_eos_token": "<|audio_end|>",
525
+ "audio_token": "<|audio_pad|>",
526
+ "bos_token": null,
527
+ "clean_up_tokenization_spaces": false,
528
+ "eos_token": "<|im_end|>",
529
+ "errors": "replace",
530
+ "extra_special_tokens": {
531
+ "audio_bos_token": "<|audio_start|>",
532
+ "audio_eos_token": "<|audio_end|>",
533
+ "audio_token": "<|audio_pad|>",
534
+ "image_token": "<|image_pad|>",
535
+ "video_token": "<|video_pad|>",
536
+ "vision_bos_token": "<|vision_start|>",
537
+ "vision_eos_token": "<|vision_end|>"
538
+ },
539
+ "image_token": "<|image_pad|>",
540
+ "model_max_length": 131072,
541
+ "pad_token": "<|endoftext|>",
542
+ "processor_class": "Qwen3ASRProcessor",
543
+ "split_special_tokens": false,
544
+ "tokenizer_class": "Qwen2Tokenizer",
545
+ "unk_token": null,
546
+ "video_token": "<|video_pad|>",
547
+ "vision_bos_token": "<|vision_start|>",
548
+ "vision_eos_token": "<|vision_end|>"
549
+ }
rk3588/decoder_hf/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
rk3588/manifest.json ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "repo_id": "erquren/Qwen3-ASR-0.6B-RK",
3
+ "target_platform": "rk3588",
4
+ "source_model": "Qwen/Qwen3-ASR-0.6B",
5
+ "source_revision": "5eb144179a02acc5e5ba31e748d22b0cf3e303b0",
6
+ "board_inference": "not_run",
7
+ "rkllm_quantized_accuracy": "not_measured",
8
+ "files": [
9
+ {
10
+ "path": "rk3588/onnx/encoder-2s.fp32.onnx",
11
+ "bytes": 745651908,
12
+ "sha256": "a9e4c0714be35a14f828369c18a79afe2f60f9a0e1c314185906382b5c7ae663"
13
+ },
14
+ {
15
+ "path": "rk3588/onnx/encoder-2s.fp16.onnx",
16
+ "bytes": 372917948,
17
+ "sha256": "4d2172575bac53516215ba8491ba88a99c9c07c71e8223d2d0ee5aafeb617bfd"
18
+ },
19
+ {
20
+ "path": "rk3588/rknn/encoder-2s.fp16.rk3588.rknn",
21
+ "bytes": 379208302,
22
+ "sha256": "273c17ea6d56ee9257ac66cdd6efa33ab1e9475474c67d2f72fa30fc36a06077"
23
+ },
24
+ {
25
+ "path": "rk3588/onnx/encoder-4s.fp32.onnx",
26
+ "bytes": 745651908,
27
+ "sha256": "289ae1a34389e1450e49fe8d8e1e4e2fa69d464e1f2e90135ab56c53736b6aa6"
28
+ },
29
+ {
30
+ "path": "rk3588/onnx/encoder-4s.fp16.onnx",
31
+ "bytes": 372917948,
32
+ "sha256": "5570792843087565415cfab88932f266cd753e7e74e4ab924e0b4dcfc35dc870"
33
+ },
34
+ {
35
+ "path": "rk3588/rknn/encoder-4s.fp16.rk3588.rknn",
36
+ "bytes": 380162798,
37
+ "sha256": "f60de939f1ccfea3bdcc173e4daf744f30709d02873e3b0efcf95c4c1948bc4b"
38
+ },
39
+ {
40
+ "path": "rk3588/onnx/encoder-15s.fp32.onnx",
41
+ "bytes": 745651911,
42
+ "sha256": "2f897ef5935d4926544b2ceac1c65235d732e3d47406ab4aa5b7debd886f2315"
43
+ },
44
+ {
45
+ "path": "rk3588/onnx/encoder-15s.fp16.onnx",
46
+ "bytes": 372918682,
47
+ "sha256": "c001dd707e7938224e23bcfc5c8952944ac341f2ece11000d334b6cdf7ca2cb0"
48
+ },
49
+ {
50
+ "path": "rk3588/rknn/encoder-15s.fp16.rk3588.rknn",
51
+ "bytes": 385762738,
52
+ "sha256": "e93e4f3730970e64a1028e5fd87da72e84aed88df4b7fb2bdbc61aad6cb75bc5"
53
+ },
54
+ {
55
+ "path": "rk3588/rkllm/decoder.fp16.rk3588.rkllm",
56
+ "bytes": 1529743212,
57
+ "sha256": "b186eae6e5e22be630363d1c1ae6509beb8a90896458ec8fd53da9ad1536af55"
58
+ },
59
+ {
60
+ "path": "rk3588/rkllm/decoder.w8a8.rk3588.rkllm",
61
+ "bytes": 936054076,
62
+ "sha256": "0e9942a3c9723a760dd8283081fcc7a032c28d66c3f1e41df2506746984f0d15"
63
+ },
64
+ {
65
+ "path": "rk3588/decoder_hf/config.json",
66
+ "bytes": 687,
67
+ "sha256": "c0d80499d7b2d58a3bbd4868175a9d6acc8778b2543b5ac564944053ba032d7d"
68
+ },
69
+ {
70
+ "path": "rk3588/decoder_hf/generation_config.json",
71
+ "bytes": 142,
72
+ "sha256": "1da527824d81e07118facff437e03f2e24a23311e3bdeb2368973fe77e5f275c"
73
+ },
74
+ {
75
+ "path": "rk3588/decoder_hf/tokenizer_config.json",
76
+ "bytes": 12487,
77
+ "sha256": "4942d005604266809309cabc9f4e9cb89ce855d59b14681fdc0e1cc62ea26c4c"
78
+ },
79
+ {
80
+ "path": "rk3588/decoder_hf/vocab.json",
81
+ "bytes": 2776833,
82
+ "sha256": "ca10d7e9fb3ed18575dd1e277a2579c16d108e32f27439684afa0e10b1440910"
83
+ },
84
+ {
85
+ "path": "rk3588/decoder_hf/merges.txt",
86
+ "bytes": 1671853,
87
+ "sha256": "8831e4f1a044471340f7c0a83d7bd71306a5b867e95fd870f74d0c5308a904d5"
88
+ },
89
+ {
90
+ "path": "rk3588/decoder_hf/chat_template.json",
91
+ "bytes": 1161,
92
+ "sha256": "75a8cfca24f00de72d796fbfed6858fc9614ef3dabd8696684cc3bc03a9c58ff"
93
+ },
94
+ {
95
+ "path": "rk3588/decoder_hf/chat_template.jinja",
96
+ "bytes": 1099,
97
+ "sha256": "a103579066642f0e035873f12de6046a1bbc909a7a2833732fda9fd6bc7c528d"
98
+ },
99
+ {
100
+ "path": "rk3588/decoder_hf/embed_tokens.npy",
101
+ "bytes": 622329984,
102
+ "sha256": "dc7fa8078c75467dbb400b214289a69cc7d3624fc944980282a098b5de15ca97"
103
+ },
104
+ {
105
+ "path": "rk3588/preprocessor/mel_filters.npy",
106
+ "bytes": 103040,
107
+ "sha256": "8abf12444e0d9c0fd6c5e49f8b977d41e47b51a5eb48d399c232578d3d5e914f"
108
+ },
109
+ {
110
+ "path": "rk3588/preprocessor/preprocessor_config.json",
111
+ "bytes": 330,
112
+ "sha256": "45e120a4eda2c20c5d7f2ea9354e63536bf35e27aa573fb7cdf78017b378770d"
113
+ },
114
+ {
115
+ "path": "rk3588/reports/asr_summary.json",
116
+ "bytes": 1360,
117
+ "sha256": "a90df60defeb217ceec30588eec78306bf10f88a7675332b4bc46b9ff2a5d5ca"
118
+ },
119
+ {
120
+ "path": "README.md",
121
+ "bytes": 7376,
122
+ "sha256": "44571186dd3103979ea00b4d2ad5aa76a7aa1d1e81473a0f72ced9c431e375ec"
123
+ },
124
+ {
125
+ "path": "LICENSE",
126
+ "bytes": 11343,
127
+ "sha256": "a44a6081c73ad75f0255bb2bb5cab74ef1829565a895a24e53a4f11290ab7655"
128
+ },
129
+ {
130
+ "path": "NOTICE",
131
+ "bytes": 1903,
132
+ "sha256": "c738f8f8b62931209c65ccd4560e3de98a174969dfdbabe2780f85df467649bf"
133
+ }
134
+ ]
135
+ }
rk3588/onnx/encoder-15s.fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c001dd707e7938224e23bcfc5c8952944ac341f2ece11000d334b6cdf7ca2cb0
3
+ size 372918682
rk3588/onnx/encoder-15s.fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f897ef5935d4926544b2ceac1c65235d732e3d47406ab4aa5b7debd886f2315
3
+ size 745651911
rk3588/onnx/encoder-2s.fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4d2172575bac53516215ba8491ba88a99c9c07c71e8223d2d0ee5aafeb617bfd
3
+ size 372917948
rk3588/onnx/encoder-2s.fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9e4c0714be35a14f828369c18a79afe2f60f9a0e1c314185906382b5c7ae663
3
+ size 745651908
rk3588/onnx/encoder-4s.fp16.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5570792843087565415cfab88932f266cd753e7e74e4ab924e0b4dcfc35dc870
3
+ size 372917948
rk3588/onnx/encoder-4s.fp32.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:289ae1a34389e1450e49fe8d8e1e4e2fa69d464e1f2e90135ab56c53736b6aa6
3
+ size 745651908
rk3588/preprocessor/mel_filters.npy ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8abf12444e0d9c0fd6c5e49f8b977d41e47b51a5eb48d399c232578d3d5e914f
3
+ size 103040
rk3588/preprocessor/preprocessor_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "chunk_length": 30,
3
+ "dither": 0.0,
4
+ "feature_extractor_type": "WhisperFeatureExtractor",
5
+ "feature_size": 128,
6
+ "hop_length": 160,
7
+ "n_fft": 400,
8
+ "n_samples": 480000,
9
+ "nb_max_frames": 3000,
10
+ "padding_side": "right",
11
+ "padding_value": 0.0,
12
+ "processor_class": "Qwen3ASRProcessor",
13
+ "return_attention_mask": true
14
+ }
rk3588/reports/asr_summary.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dataset": "google/fleurs cmn_hans_cn test",
3
+ "samples": 5,
4
+ "duration_seconds": 33.84,
5
+ "reference_characters": 129,
6
+ "recognition_buckets_tested": [
7
+ 15
8
+ ],
9
+ "normalization": "NFKC, casefold, remove Unicode punctuation and whitespace; weighted CER",
10
+ "results": [
11
+ {
12
+ "backend": "official_fp32",
13
+ "errors": 1,
14
+ "reference_characters": 129,
15
+ "cer_percent": 0.7751937984496124,
16
+ "failures": 0,
17
+ "raw_text_equal_to_baseline": 5,
18
+ "generated_token_ids_equal_to_baseline": 5
19
+ },
20
+ {
21
+ "backend": "onnx_fp32",
22
+ "errors": 1,
23
+ "reference_characters": 129,
24
+ "cer_percent": 0.7751937984496124,
25
+ "failures": 0,
26
+ "raw_text_equal_to_baseline": 5,
27
+ "generated_token_ids_equal_to_baseline": 5
28
+ },
29
+ {
30
+ "backend": "onnx_fp16",
31
+ "errors": 1,
32
+ "reference_characters": 129,
33
+ "cer_percent": 0.7751937984496124,
34
+ "failures": 0,
35
+ "raw_text_equal_to_baseline": 5,
36
+ "generated_token_ids_equal_to_baseline": 5
37
+ },
38
+ {
39
+ "backend": "rknn_simulator",
40
+ "errors": 1,
41
+ "reference_characters": 129,
42
+ "cer_percent": 0.7751937984496124,
43
+ "failures": 0,
44
+ "raw_text_equal_to_baseline": 5,
45
+ "generated_token_ids_equal_to_baseline": 5
46
+ }
47
+ ],
48
+ "rkllm_quantized_accuracy": "not_measured",
49
+ "board_inference": "not_run"
50
+ }
rk3588/rkllm/decoder.fp16.rk3588.rkllm ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b186eae6e5e22be630363d1c1ae6509beb8a90896458ec8fd53da9ad1536af55
3
+ size 1529743212
rk3588/rkllm/decoder.w8a8.rk3588.rkllm ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e9942a3c9723a760dd8283081fcc7a032c28d66c3f1e41df2506746984f0d15
3
+ size 936054076
rk3588/rknn/encoder-15s.fp16.rk3588.rknn ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e93e4f3730970e64a1028e5fd87da72e84aed88df4b7fb2bdbc61aad6cb75bc5
3
+ size 385762738
rk3588/rknn/encoder-2s.fp16.rk3588.rknn ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:273c17ea6d56ee9257ac66cdd6efa33ab1e9475474c67d2f72fa30fc36a06077
3
+ size 379208302
rk3588/rknn/encoder-4s.fp16.rk3588.rknn ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f60de939f1ccfea3bdcc173e4daf744f30709d02873e3b0efcf95c4c1948bc4b
3
+ size 380162798