Skip to content

Auto convert hf custom whisper to ct2(faster-whisper)#378

Merged
makaveli10 merged 2 commits intocollabora:mainfrom
makaveli10:auto_convert_faster_whisper
Jun 2, 2025
Merged

Auto convert hf custom whisper to ct2(faster-whisper)#378
makaveli10 merged 2 commits intocollabora:mainfrom
makaveli10:auto_convert_faster_whisper

Conversation

@makaveli10
Copy link
Copy Markdown
Collaborator

Enables automatic conversion of custom huggingface whisper models.

Signed-off-by: makaveli10 <vineet.suryan@collabora.com>
if ctranslate2.contains_model(local_snapshot):
model_to_load = local_snapshot
else:
cache_root = os.path.expanduser("~/.cache/whisper-live/whisper-ct2-models/")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we allow to make this configurable, and use this as a default path?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, sounds like a good idea

Signed-off-by: makaveli10 <vineet.suryan@collabora.com>
@makaveli10 makaveli10 merged commit 4ae3825 into collabora:main Jun 2, 2025
12 checks passed
zachhhhh pushed a commit to zachhhhh/WhisperLive that referenced this pull request Sep 24, 2025
…whisper

Auto convert hf custom whisper to ct2(faster-whisper)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants