Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrating with Hugging Face pretrained models #197

Closed
mkatic007 opened this issue Apr 3, 2024 · 1 comment
Closed

Integrating with Hugging Face pretrained models #197

mkatic007 opened this issue Apr 3, 2024 · 1 comment

Comments

@mkatic007
Copy link

Could you please explain how to add a Hugging Face pretrained model to work with WhisperLive?

@makaveli10
Copy link
Collaborator

@mkatic007 that is indeed possible with both backends i.e. tensorrt as well as faster_whisper

  • TensorRT
    This guide converts the original whisper models to TensorRT. Adjust accoridingly to convert huggingface pretrained whisper models.

  • faster_whisper
    Faster whisper has a section in their readme which shows how you can convert hf model to ctranslate2. Once you have the model converted run the server with your custom model:

python3 run_server.py --port 9090 \
                      --backend faster_whisper
                      -fw "/path/to/custom/faster/whisper/model"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants