Whisper small, 8-bit, for CTranslate2 / faster-whisper
openai/whisper-small (multilingual (99 languages)) converted to the
CTranslate2 format with its weights stored as
8-bit integers. It is about half the size of the 16-bit conversion
(Systran/faster-whisper-small) and is meant
to be run with compute_type="int8".
Published for Sorph, offline dictation for macOS, which pins the commit it downloads.
Use
from faster_whisper import WhisperModel
model = WhisperModel("trenchstravy/faster-whisper-small-int8", device="cpu", compute_type="int8")
segments, info = model.transcribe("audio.wav")
Conversion
from ctranslate2.converters import TransformersConverter
TransformersConverter(
"openai/whisper-small",
copy_files=["tokenizer.json", "preprocessor_config.json"],
load_as_float16=True,
).convert("faster-whisper-small-int8", quantization="int8")
CTranslate2 4.8.1. The weights are OpenAI's, unchanged apart from the quantization; the licence is theirs (MIT).