-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Option to be 100% local, no internet #263
Comments
What's failing is the loading of the internal faster whisper model. The easiest fix would be to clone the used model manually once from Huggingface and then pass the local filepath as the
And then use whisperx with |
I also met a similar issue without internet access. My code and error are as follows. The weird thing is: When I turn the internet on, it works successfully. Did the load_model download some files implicitly? BTW, faster_whisper can load my local model without internet successfully.
|
I have developed a custom script based on WhisperX that enables running various pipelines entirely offline. All you need to do is download the pre-trained models and specify their PATHs in the script. |
I found that by pre-downloading all the relevant models (I used this script) and then setting |
Is there a way to run WhisperX locally with no internet once the specified model has been downloaded?
Once in a while I get an error running the inference due to Hugging Face being down (error msg below). So when this happens I have to wait until Hugging Face can respond properly. This wouldn't be an issue but I plan to run WhisperX for prolonged periods of time so this would be an issue.
If no option/flag to make 100% local (after models downloaded), could someone point me in the right direction on where to make the code change?
Error msg:
Whisperx error due to internet connection:
Traceback (most recent call last):
File "C:\Users\user1\anaconda3\envs\whisperxxx\lib\site-packages\huggingface_hub\utils_errors.py", line 259, in hf_raise_for_status
response.raise_for_status()
File "C:\Users\user1\anaconda3\envs\whisperxxx\lib\site-packages\requests\models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 504 Server Error: Gateway Time-out for url: https://huggingface.co/api/models/guillaumekln/faster-whisper-medium/revision/main
The text was updated successfully, but these errors were encountered: