ONNX export of NbAiLab/nb-wav2vec2-1b-bokmaal, a Norwegian Bokmål wav2vec2 CTC ASR model from National Library of Norway AI Lab (NbAiLab), for use with onnx-asr (wav2vec2-ctc model type).
Fuente del modelo
Extracto de la fuente
ONNX export of NbAiLab/nb-wav2vec2-1b-bokmaal, a Norwegian Bokmål wav2vec2 CTC ASR model from National Library of Norway AI Lab (NbAiLab), for use with onnx-asr (wav2vec2-ctc model type).
Fuentes
1 fuenteVerificado 13 sept
Artefactos del modelo
1 artefactoExtractos de fuentes
2 extractos--- license: apache-2.0 language: - nb tags: - onnx - onnx-asr - wav2vec2 - automatic-speech-recognition base_model: - NbAiLab/nb-wav2vec2-1b-bokmaal --- # nb-wav2vec2-1b-bokmaal-onnx (ONNX) ONNX export of [NbAiLab/nb-wav2vec2-1b-bokmaal](https://huggingface.co/NbAiLab/nb-wav2vec2-1b-bokmaal), a Norwegian Bokmål wav2vec2 CTC ASR model from National Library of Norway AI Lab (NbAiLab), for use with [onnx-asr](https://github.com/istupakov/onnx-asr) (`wav2vec2-ctc` model type). Per-utterance zero-mean/unit-variance normalization is baked into the ONNX graph, masked by `input_lengths` for correct behavior with padded/batched input, so the model works with onnx-asr's plain `identity` preprocessor (raw 16kHz waveform in). ## Usage ```py import onnx_asr model = onnx_asr.load_model("OpenVoiceOS/nb-wav2vec2-1b-bokmaal-onnx") print(model.recognize("test.wav")) ``` ## Files * `model.onnx` / `model.onnx.data` — fp32 ONNX graph (inputs: `input_values` (batch, samples) float32, `input_lengths` (batch,) int64; output: `logprobs` (batch, frames, vocab) float32 log-softmax). * `vocab.txt` — CTC vocabulary in onnx-asr's `token id` format (word-delimiter -> `▁`, pad token -> `<blk>`). * `config.json` — `{"model_type": "wav2vec2-ctc", "subsampling_factor": 320}`. No int8 quantized variant is included yet -- `onnxruntime.quantization` does not currently support the `torch.onnx` dynamo-exported graph for this architecture. ## License Apache License 2.0, inherited from the base model.
Source context: 5 downloads · 0 likes · Pipeline automatic-speech-recognition · Repo OpenVoiceOS/nb-wav2vec2-1b-bokmaal-onnx