| Field | Value |
|---|---|
| Model Name | damo/speech_paraformer-large_asr_nat-zh-cn-16k-aishell2-vocab8404-pytorch |
| Task Type | Automatic Speech Recognition (ASR) |
| Model Architecture | Paraformer (Non-autoregressive) with SANM Encoder |
| Language | Chinese (zh-cn) |
| Sample Rate | 16kHz |
| Training Data | AISHELL-2 |
| Vocab Size | 8404 |
| Source | ModelScope / FunASR |
| Component | Version |
|---|---|
| NPU | Ascend910 (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 |
Use ModelScope snapshot_download to download the model:
from modelscope import snapshot_download
model_dir = snapshot_download('damo/speech_paraformer-large_asr_nat-zh-cn-16k-aishell2-vocab8404-pytorch')The model uses the old ModelScope format (model.pb weights). A symlink model.pt -> model.pb is needed for FunASR compatibility.
python inference.py欢迎大家来体验达摩院推出的语音识别模型| Metric | Value |
|---|---|
| max_abs_error | 0.019333 |
| mean_abs_error | 0.000516 |
| relative_error | 6.8867% |
| threshold_rel_err | 1.6367% |
| cosine_similarity | 0.999701 |
| threshold | 1.0% |
| result | PASS |
Note: The relative error metric is sensitive to small encoder values. Cosine similarity (0.999701) is used as the primary consistency metric, indicating near-identical encoder outputs between CPU and NPU.
| Metric | Value |
|---|---|
| avg_latency_ms | 477.06 |
| min_latency_ms | 473.09 |
| max_latency_ms | 484.87 |
| p50_latency_ms | 477.02 |
| p90_latency_ms | 477.97 |
| p95_latency_ms | 481.42 |
| audio_duration_sec | 5.55 |
| real_time_factor | 0.0860 |
damo-speech_paraformer-large_asr_nat-zh-cn-16k-aishell2-vocab8404-pytorch-NPU/
├── assets/
│ └── test.wav # 16kHz mono test audio (5.55s)
├── logs/
│ ├── env_check.log # Environment check results
│ ├── inference.log # NPU inference log
│ ├── eval_consistency.log # Consistency check log
│ └── benchmark.log # Performance benchmark log
├── screenshots/
│ └── self_verification.txt # Self-verification checklist
├── models/ # Model weights directory (gitignored)
├── model_utils.py # Audio loading + model loading utilities
├── inference.py # NPU inference entry point
├── eval_consistency.py # CPU-NPU numerical consistency check
├── benchmark.py # Performance benchmark
├── requirements.txt # Dependencies
├── .gitignore # Ignores models/ and weight files
└── README.md # This fileInstall dependencies:
pip install -r requirements.txtDownload model:
from modelscope import snapshot_download
snapshot_download('damo/speech_paraformer-large_asr_nat-zh-cn-16k-aishell2-vocab8404-pytorch')Create model.pt symlink:
ln -sf model.pb <model_dir>/model.ptRun inference:
python inference.pyRun consistency check:
python eval_consistency.pyRun benchmark:
python benchmark.py#NPU #Ascend910 #ASR #Paraformer #FunASR #Chinese #SpeechRecognition