Fun-ASR-Nano-2512 是阿里云 FunAudioLLM 团队推出的小型端到端语音识别模型,基于 SenseVoice 编码器 + Qwen3-0.6B 大语言模型架构,支持中英文语音转写。
本项目将该模型适配到单卡昇腾 NPU(Ascend910)上运行,使用 ModelScope snapshot_download 下载权重,通过 FunASR AutoModel 框架加载,包含推理验证、CPU-NPU 精度一致性检查和性能基准测试。
| 项目 | 配置 |
|---|---|
| 硬件 | 单卡 Ascend910_9362 |
| CANN | 8.5.1 |
| Python | 3.11.14 |
| PyTorch | 2.9.0+cpu |
| torch_npu | 2.9.0.post1 |
| FunASR | 1.3.1 |
| 模型参数量 | ~0.6B(Qwen3-0.6B LLM) |
pip install -r requirements.txt
python inference.py推理结果(NPU):
NPU transcription: 开饭时间早上九点至下午五点。
NPU inference time: 2.1886s音频时长 5.62 秒,RTF=0.190(处理速度快于实时)。
对单张测试音频进行 CPU 与 NPU 一致性验证(audio_encoder 输出层):
| 指标 | 数值 |
|---|---|
| max_abs_error | 0.000243 |
| mean_abs_error | 0.000015 |
| relative_error | 0.0236% |
| cosine_similarity | 1.000000 |
| threshold | 1.0% |
| 结果 | PASS |
20 次迭代基准测试(5.62s 音频):
| 指标 | 数值 |
|---|---|
| avg_latency | 1769.86 ms |
| min_latency | 1655.26 ms |
| max_latency | 1833.24 ms |
| p50_latency | 1792.76 ms |
| p90_latency | 1829.28 ms |
| p95_latency | 1829.76 ms |
| RTF | 0.3151 |
本项目包含单图 smoke consistency 验证,非官方完整验证集评测。详细指标见第 4 节。
详见 screenshots/self_verification.png。
logs/inference.log — NPU 推理日志logs/eval_consistency.log — CPU-NPU 精度一致性检查logs/benchmark.log — 性能基准测试logs/env_check.log — 环境检查#NPU #Ascend #ASR #FunASR #FunAudioLLM