Instructions to use rhasspy/faster-whisper-medium-int8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use rhasspy/faster-whisper-medium-int8 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("rhasspy/faster-whisper-medium-int8", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Please provide example usage
#1
by asmith26 - opened
Hi @synesthesiam ,
I'm hoping to try run this model on my local computer (CPU Linux), just wondering how I run this?
Many thanks for any help!
I would also be interested in this, thanks
Many thanks for your help @synesthesiam ! I got this working:
from faster_whisper import WhisperModel
model = WhisperModel("rhasspy/faster-whisper-medium-int8", device="cpu", compute_type="int8")
segments, info = model.transcribe("jfk.flac", 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))