NeMo FastConformer-CTC large (English), ONNX for sherpa-onnx

An ONNX conversion of NVIDIA's nvidia/stt_en_fastconformer_ctc_large (~115M parameters, 8x subsampling, 1024-piece SentencePiece tokenizer), for offline CTC decoding with sherpa-onnx. It is the command-recognition model for BranchKit's voice plugin.

Attribution and license

"stt_en_fastconformer_ctc_large" by NVIDIA, https://huggingface.co/nvidia/stt_en_fastconformer_ctc_large (revision 5a84a7a3bee8d9bd414c6719ddfea7bc723e3961), is licensed under CC BY 4.0. These files are a modified version of it, distributed under the same license. They are provided as is, without warranties of any kind.

Changes made:

  • model.onnx: the checkpoint (stt_en_fastconformer_ctc_large.nemo, sha256 1f2c819d9d418466525b45a8d5d5b1d48509ed3c1af2a63d25e35154052adf5f) restored with NeMo 2.1.0 as EncDecCTCModelBPE and exported with its own export(). sherpa-onnx metadata was added: vocab_size, normalize_type=per_feature, subsampling_factor=8, model_type=EncDecCTCModelBPE.
  • model.int8.onnx: model.onnx with dynamic int8 quantization of MatMul weights (onnxruntime quantize_dynamic, QUInt8).
  • tokens.txt: the model's decoder vocabulary, one piece id per line, with <blk> appended last.
  • bpe.model: the checkpoint's SentencePiece tokenizer, unmodified.
  • bpe.vocab: a text dump of bpe.model, one piece score per line.

Weights were not retrained or fine-tuned.

Files

file size sha256
model.onnx 483.4 MB b34e2ba9d856cb65306ba323cad93c74c713eef0ca1a6269177f507baa417a9e
model.int8.onnx 182.6 MB 2aa898d35e40e58a42d8a3803e71635d14fa44c3be698ba487d1be66f27a5ec6
tokens.txt 12 KB 618dc110fc2213886b52e063ff42329bbdf37a266ca7705184090fa5f39f3131
bpe.model 261 KB 6fdbb245a2b0020c7466e1f2b2913fe5bc282a6981c78f2366b6662ed0905f6d
bpe.vocab 27 KB 613cf3286f45b8f6ecde0666e5f75b710e5fcd0259de842108a2f615fef67327

Use with sherpa-onnx

import sherpa_onnx
rec = sherpa_onnx.OfflineRecognizer.from_nemo_ctc(model="model.int8.onnx", tokens="tokens.txt")

bpe.model and bpe.vocab are for grammar-constrained decoding, which spells arbitrary words into the model's tokens; plain decoding needs only the model and tokens.txt.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for branchkit/nemo-ctc-en-fastconformer-large-onnx

Quantized
(2)
this model