faster_whisper update yet?
#2
by
brainer
- opened
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-3-1ed8902204c1> in <cell line: 3>()
1 from faster_whisper import WhisperModel
2
----> 3 model = WhisperModel("faster-whisper-large-v3-turbo-ct2")
4
5 segments, info = model.transcribe("20_jQfEIrIqwyV7LsLXYOgAnmSu6Ex1_20_2024-08-26T15.36.38_NursingRecord.mp3")
1 frames
/usr/local/lib/python3.10/dist-packages/faster_whisper/utils.py in download_model(size_or_id, output_dir, local_files_only, cache_dir)
74 repo_id = _MODELS.get(size_or_id)
75 if repo_id is None:
---> 76 raise ValueError(
77 "Invalid model size '%s', expected one of: %s"
78 % (size_or_id, ", ".join(_MODELS.keys()))
ValueError: Invalid model size 'faster-whisper-large-v3-turbo-ct2', expected one of: tiny.en, tiny, base.en, base, small.en, small, medium.en, medium, large-v1, large-v2, large-v3, large, distil-large-v2, distil-medium.en, distil-small.en
you have to download in your local first:
from huggingface_hub import snapshot_download
repo_id = "deepdml/faster-whisper-large-v3-turbo-ct2"
local_dir = "faster-whisper-large-v3-turbo-ct2"
snapshot_download(repo_id=repo_id, local_dir=local_dir, repo_type="model")
brainer
changed discussion status to
closed