Parakeet-TDT-0.6B-v2 (Ascend NPU Adaptation)
NVIDIA NeMo Parakeet-TDT-0.6B Conformer-Transducer ASR model adapted for Huawei Ascend NPU inference.
| CPU (ONNX Runtime) | NPU (Ascend 910) |
|---|
| Encoder Latency | 1.154 s | 0.188 s |
| Total Latency | 109.95 s | 1.78 s |
| Encoder Speedup | — | 6.13× |
| Total Speedup | — | 61.82× |
| Encoder Accuracy | — | 99.82% (rel error 0.18%) |
| Text Match | — | PASS |
Model Details
- Original Model: eclipse005/parakeet-tdt-0.6b-v2-onnx
- Architecture: Conformer Encoder + TDT (Truncated Decoding Transformer) Decoder
- Task: Automatic Speech Recognition (ASR) — English
- Encoder: 1024-dim Conformer, 128 mel filterbank input, 8× subsampling
- Decoder: 2-layer LSTM (640 hidden) + Joint Network (1024+640→1030 output)
- Vocabulary: 1025 SentencePiece-style tokens + blank
- Original Format: ONNX (encoder-model.onnx + decoder_joint-model.onnx)
- NPU Adaptation: ONNX→PyTorch conversion + torch_npu inference
Quick Start
pip install torch torch_npu onnx onnxruntime onnx2torch kaldi-native-fbank soundfile numpy
python inference.py --audio input.wav --device npu
Accuracy Verification
| Metric | Value | Threshold | Status |
|---|
| Encoder Relative Error | 0.18% | <1% | PASS |
| Cosine Similarity | 0.99999818 | — | — |
| Text Output Match | Identical | — | PASS |
| Overall | — | — | PASS |
Environment
| Component | Version |
|---|
| PyTorch | 2.9.0 |
| torch_npu | 2.9.0.post1 |
| CANN | 8.5.1 |
| NPU | Ascend 910 (×2) |
| ONNX | 1.21.0 |
| onnx2torch | 1.5.15 |
Files
| File | Description |
|---|
inference.py | NPU inference script (main deliverable) |
benchmark.py | Accuracy & performance benchmark |
benchmark_result.json | Benchmark results (JSON) |
benchmark.log | Benchmark run log |
test_english.wav | Test audio sample |