wordalign models

ONNX models used by wordalign, a C++ library that finds when each word of a known text is spoken, and by the Baker76 apps. They run on ONNX Runtime with no Python involved.

Nothing here was trained or fine-tuned by us. Each folder is converted from the original checkpoint and keeps its licence, in the folder:

Folder Size Model Licence
whisper-base/ 296 MB Whisper base (OpenAI), revision e37978b, fp32, with cross-attention outputs MIT, Copyright (c) 2022 OpenAI (openai/whisper, LICENSE); the Hugging Face checkpoint it was converted from is tagged Apache-2.0 (LICENSE-APACHE-2.0)
whisper-large-v3-turbo/ 4.9 GB Whisper large-v3-turbo (OpenAI), revision 41f01f3, fp32 and fp16 (floats in and out), with cross-attention outputs. For transcribing with videogen; wordalign's times are no better with it MIT, Copyright (c) 2022 OpenAI (LICENSE)

Changed by us: the weights are as OpenAI published them, rewritten as ONNX graphs (opset 17) by wordalign's tools/export_whisper.py. The tokenizer and settings files are unchanged. MODEL_README.md is the original model card.

hf download baker76/wordalign-models --include "whisper-base/*" --local-dir models

Interface

That of onnx-community's _timestamped exports: onnx/encoder_model.onnx and onnx/decoder_model_merged.onnx (use_cache_branch false: the encoder's keys and values are made from encoder_hidden_states; true: taken from the past), batch size 1.

Accuracy

Against the PyTorch checkpoints, the largest difference on a few recordings:

Model Encoder output Logits Cross-attentions
whisper-base fp32 8e-4 1.1e-4 5e-6
whisper-large-v3-turbo fp32 6e-3 4e-4 1.4e-4
whisper-large-v3-turbo fp16 0.64 0.03 0.025

videogen's transcripts are the same, word times too, as with onnx-community's exports: 32 of 32 recordings (base), 10 of 10 (large, fp32), 4 of 4 (large, fp16). All on the CPU; fp16 on a GPU has not been tried yet.

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 baker76/wordalign-models

Quantized
(272)
this model