CTranslate2 int8 conversion of
thorhojhus/whisper-small-danish for
faster-whisper.
All credit for the model goes to its original authors: the thorhojhus Hugging Face account — thorhojhus/whisper-small-danish, a Danish fine-tune of openai/whisper-small. This repository only re-packages those weights in another format; it adds no training. The licence (MIT) is carried over unchanged from the original repository; see its model card for training data, evaluation and limitations.
Danish speech-to-text on a server, made for the faster-whisper server engine of whisper_web (browser Whisper app: Transformers.js in the browser, optional faster-whisper server engine):
from faster_whisper import WhisperModel
model = WhisperModel("lucasw89/whisper-small-danish-ct2-int8", device="cpu", compute_type="int8")
segments, info = model.transcribe("audio.wav", language="da")
WER on the same 21.5 s Danish clip as the ONNX sibling repo, faster-whisper on CPU, int8, beam 5:
0.078 (stock small: 0.234).
A single short clip: a sanity check of the conversion, not a benchmark.
ct2-transformers-converter --model thorhojhus/whisper-small-danish --output_dir whisper-small-danish-ct2-int8 \
--quantization int8 --copy_files tokenizer.json preprocessor_config.json # ctranslate2 4.8.4