#NPU
ParaformerBert ASR model for Chinese speech recognition, trained on AISHELL-2 dataset with 5212 vocabulary. This is the NPU-adapted version running on Huawei Ascend 910B.
| Component | Version |
|---|---|
| PyTorch | 2.9.0+cpu |
| torch_npu | 2.9.0.post1 |
| CANN | 8.5.1 |
| Python | 3.11.14 |
| FunASR | 1.3.1 |
| NPU | Ascend 910B |
NPU Transcription: 欢迎大家来体验打磨院推出的语音识别模型
Inference Latency: 443.31 ms
| Metric | Value |
|---|---|
| Avg Latency | 86.98 ms |
| Min Latency | 85.90 ms |
| Max Latency | 88.34 ms |
| P50 Latency | 86.44 ms |
| P90 Latency | 88.32 ms |
| P95 Latency | 88.33 ms |
| Audio Duration | 5.55 s |
| Real-Time Factor | 0.0157 |
| Metric | Value |
|---|---|
| Max Abs Error | 0.00137 |
| Mean Abs Error | 0.000117 |
| Relative Error | 0.096% |
| Cosine Similarity | 1.0 |
| Threshold | 1.0% |
| Result | PASS |
pip install -r requirements.txt
# Inference
python inference.py
# CPU-NPU consistency check
python eval_consistency.py
# Benchmark
python benchmark.pyinference.py - NPU inference scripteval_consistency.py - CPU-NPU numerical consistency evaluationbenchmark.py - NPU latency and RTF benchmarkmodel_utils.py - Audio loading and model loading utilitiesmodels/ - Model weights and configurationassets/test.wav - Test audio filelogs/ - Inference and benchmark logs