Haas-ja-v1.0 ONNX (int8)
This repository holds an ONNX conversion of third-intelligence/Haas-ja-v1.0, a Japanese speech recognition model. vrc-tsuyaku runs it with ONNX Runtime on the CPU, without PyTorch or NeMo.
Source checkpoint: Haas-ja-v1.0.nemo at revision 660728d39019e5e065046154beca44ac9a66a540, SHA-256 c6ed38698300a371a86eadab4b56d5458f47623f7fc4a5f1e938b5adbe8458aa.
Changes from the original
- The feature extractor, the encoder, one step of the prediction network and the joint network are exported from the checkpoint as separate ONNX graphs.
- The encoder weights are quantized to int8 with ONNX Runtime's per-channel dynamic quantization.
vocab.txtlists the SentencePiece tokenizer's pieces, with the TDT blank added as<blk> 3072.
Files
| File | Purpose |
|---|---|
features.onnx |
16 kHz mono float32 audio to 128-bin log-mel features |
encoder.int8.onnx |
FastConformer encoder with int8 weights |
decoder_step.onnx |
One prediction step with explicit convolution and recurrent states |
joint.onnx |
One encoder frame and prediction output to token and duration logits |
vocab.txt |
Token pieces, one <piece> <id> per line |
The audio padding, the greedy TDT decoding loop and the detokenization rule are in tools/haas-export, with the export scripts.
License
Apache-2.0, the license of Haas-ja-v1.0. See LICENSE.