wav2vec2-xlsr-53-espeak-cv-ft, ONNX int8
An ONNX export of facebook/wav2vec2-xlsr-53-espeak-cv-ft
(revision 2c733782da5604684829819a5eb744c193fe9398), with dynamic int8 quantization, for CPU
inference with onnxruntime and no PyTorch.
Changes from the original: exported to ONNX (opset 17) and quantized (dynamic, int8 weights of
MatMul and Gemm). Weights, vocabulary and behaviour are otherwise the original's. export.py
reproduces the file.
| File | |
|---|---|
model_int8.onnx |
input input_values float32 [1, samples], 16 kHz mono, normalized to zero mean and unit variance; output logits [1, frames, 392] |
vocab.json |
the original vocabulary: token -> id (392 tokens); <pad> (id 0) is the CTC blank |
export.py |
how the file was made |
Decoding: argmax per frame, collapse repeats, drop <pad>.
On 44 short English recordings (117 s) the int8 model's phonemes are identical to the original fp32 PyTorch model's in 36, and differ in a few phonemes in the others (such as ə for ɐ). Speed: about 0.06 s of CPU per second of audio (2 threads).
Licence
Apache License 2.0, as the original model (LICENSE). Original model: Qiantong Xu, Alexei Baevski, Michael Auli, Simple and Effective Zero-shot Cross-lingual Phoneme Recognition, arXiv:2109.11680.