#NPU
ParaformerBert ASR model for Chinese speech recognition, trained on AISHELL-1 dataset with 4234 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: 405.96 ms
| Metric | Value |
|---|---|
| Avg Latency | 43.40 ms |
| Min Latency | 43.04 ms |
| Max Latency | 44.34 ms |
| P50 Latency | 43.30 ms |
| P90 Latency | 43.75 ms |
| P95 Latency | 44.04 ms |
| Audio Duration | 5.55 s |
| Real-Time Factor | 0.0078 |
| Metric | Value |
|---|---|
| Max Abs Error | 0.00163 |
| Mean Abs Error | 0.000119 |
| Relative Error | 0.105% |
| 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