Downloads · 30 days
9
3% of all-time downloads
smcproject/vegam-whisper-medium-ml-int8_float16
vegam-whisper-medium-ml-int8_float16 is a automatic speech recognition model from smcproject. Use it when you need speech turned into text. It is set up for ctranslate2. The card lists the license as mit.
This just support int8float16 quantization only.
Downloads · 30 days
9
3% of all-time downloads
All-time downloads
287
Public
Repo size
773 MB
Likes
1
Public
Click a slice to open those files.
.bin773 MB · 100%
From the Hugging Face model README
This just support
int8_float16quantization only.
Note: Model file size is 773 MB.
This is a conversion of thennal/whisper-medium-ml to the CTranslate2 model format.
This model can be used in CTranslate2 or projects based on CTranslate2 such as faster-whisper.
pip install faster-whisper
apt-get install git-lfs
git lfs install
git clone https://huggingface.co/kurianbenoy/vegam-whisper-medium-ml-int8_float16
from faster_whisper import WhisperModel
model_path = "vegam-whisper-medium-ml-int8_float16"
model = WhisperModel(model_path, device="cuda", compute_type="int8_float16")
segments, info = model.transcribe("audio.mp3", beam_size=5)
print("Detected language '%s' with probability %f" % (info.language, info.language_probability))
for segment in segments:
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
from faster_whisper import WhisperModel
model_path = "vegam-whisper-medium-ml-int8_float16"
model = WhisperModel(model_path, device="cuda", compute_type="int8_float16")
segments, info = model.transcribe("00b38e80-80b8-4f70-babf-566e848879fc.webm", beam_size=5)
print("Detected language '%s' with probability %f" % (info.language, info.language_probability))
for segment in segments:
print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))
Detected language 'ta' with probability 0.353516
[0.00s -> 4.74s] പാലം കടുക്കുവോളം നാരായണ പാലം കടന്നാലൊ കൂരായണ
Note: The audio file 00b38e80-80b8-4f70-babf-566e848879fc.webm is from Malayalam Speech Corpus and is stored along with model weights.
This conversion was possible with wonderful CTranslate2 library leveraging the Transformers converter for OpenAI Whisper.The original model was converted with the following command:
ct2-transformers-converter --model thennal/whisper-medium-ml --output_dir vegam-whisper-medium-ml-int8_float16 \
--quantization int8_float16