Skip to content

unable to use whisper offline #1399

Answered by nicholasgcotton
vrgovinda asked this question in Q&A
Discussion options

You must be logged in to vote

As of some recent change Whisper now calls to the internet for vocab files. Downloading the vocab.bpe and encoder.json files from the URLs specified in openai_public.py and updating some local code will re-enable offline usage.
- Download Vocab.bpe
- Download Encoder.json
- Install the files to a folder of your choosing, for ease of use I recommend C:\Users[username]\.cache\whisper e.g. C:\Users\nic\.cache\whisper.
- You will then need to change your local copy of openai_public.py which will be installed in your python folder e.g. python3.9/site-packages/tiktoken_ext/openai_public.py to point to where you downloaded the files. Change lines 11 and 12 to remove the URL "https://openaipublic…

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
3 replies
@vrgovinda
Comment options

@nicholasgcotton
Comment options

@nicholasgcotton
Comment options

Comment options

You must be logged in to vote
3 replies
@Sethecientos
Comment options

@vrgovinda
Comment options

@hissain
Comment options

Answer selected by vrgovinda
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants