v
v50_/openai-whisper-tiny-ASR-NPU
模型介绍文件和版本Pull Requests讨论分析
下载使用量0

openai/whisper-tiny on Ascend NPU - 语音识别 (Automatic Speech Recognition)

1. 简介

本项目将 openai/whisper-tiny 语音识别 (Automatic Speech Recognition)模型适配到华为昇腾 NPU(Ascend910B4-1)上运行。

  • 原始模型:openai/whisper-tiny
  • 模型类型:语音识别 (Automatic Speech Recognition)
  • 适配方式:ModelScope / HuggingFace snapshot_download 下载权重,HuggingFace pipeline 推理
  • 运行设备:单卡 Ascend NPU

2. 验证环境

  • NPU: Ascend910B4-1
  • torch: 2.7.1+cpu
  • torch_npu: 2.7.1.post4
  • transformers: transformers.version

安装依赖:

pip install -r requirements.txt

3. 推理运行

python inference.py

推理输出:

Input: assets/test_audio.wav (7.36s)
Output: the quick roundfucks jumps over the lazy dog. this is a test of automatic speech recognition.
Status: SUCCESS

4. 精度验证

python eval_accuracy.py

CPU 与 NPU 输出一致性验证:

指标数值
relative_error0.00%
cosine_similarity1.000000

CPU 与 NPU 输出一致性验证通过。