-
-
Notifications
You must be signed in to change notification settings - Fork 117
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
[BUG] Offline does not work #125
Comments
For your specific issue you just need to modify the docker-compose.yml file. Change pull_policy: always to pull_policy: missing under the whisper configuration. This assumes you already have the container images on your machine. But if you want to run whishper offline there are a few more things you need to do. First you need to make some changes to your docker-compose.yml (on top of changing pull_policy to missing).
to
and
to
Then you need to launch the app while you're connected to the internet. From here do a transcription with a random audio/video with whatever models you want to use (I used tiny and small). Now you can stop the app (sudo docker compose down) and disconnect from the internet. For some reason, the whisper transcription models aren't saved to a snapshots folder automatically so you need to do that manually. For each transcription model do the following: On your host machine:
then enter whichever directory you want to work on first You should be inside a directory like faster-whisper-small. From here you need to create the snapshot directory
Then you need to grab the hash of the model
Take that hash and make a folder with that hash as its name under snapshots ex.
Then you need to copy all the model files into the snapshots folder
Repeat this for all the models you want to use offline. From here you should be able to go offline and use this app (at least I was able to). It would be great if there was a way to make this app write to snapshots automatically. It would also be nice to have a docker-compose.yml file that is configured for 100% offline use on this repo. |
Description
Thank you for the product! I have plenty of ideas for implementation, but only in an offline version. Unfortunately, when the internet is disconnected, the container tries to reach "https://registry-1.docker.io/v2/" and won't start anymore. How can I fix this issue?
Thanks in advance!
Environment
P.S.: I'm willing to donate for a solution to this problem.
The text was updated successfully, but these errors were encountered: