panhg/parakeet-tdt-0.6b-v2-onnx
Model Introduction
Files & versions
Pull Requests
Discussion
Analysis

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 Latency1.154 s0.188 s
Total Latency109.95 s1.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

MetricValueThresholdStatus
Encoder Relative Error0.18%<1%PASS
Cosine Similarity0.99999818——
Text Output MatchIdentical—PASS
Overall——PASS

Environment

ComponentVersion
PyTorch2.9.0
torch_npu2.9.0.post1
CANN8.5.1
NPUAscend 910 (×2)
ONNX1.21.0
onnx2torch1.5.15

Files

FileDescription
inference.pyNPU inference script (main deliverable)
benchmark.pyAccuracy & performance benchmark
benchmark_result.jsonBenchmark results (JSON)
benchmark.logBenchmark run log
test_english.wavTest audio sample