Closed usmanm closed 8 months ago
Hey @usmanm, I was playing around and encountered same issue. Then I saw that models are not actually downloaded but only had Git LFS links.
In order to get the CLI working, you would need to navigate into Models/whisperkit-coreml
(after make download-models
step), and then run git lfs install
(not sure right now if there are some larger than 5GiB for which huggingface-cli lfs-enable-largefiles .
command is also needed).
After Git LFS install step you can download all files with git lfs pull
(not recommending straight away), or files for the model that you want to use, for your example git lfs pull --include openai_whisper-tiny
.
Once all LFS files are resolved it should be possible to run CLI command.
@zbiljic thanks for chiming in, yes git-lfs is required to download the full set of models.
If it's not on your system you can install it with the command brew install git-lfs
- will look into adding this to the make setup
command
After the command: swift run transcribe --model-path "Models/whisperkit-coreml/openai_whisper-tiny" --audio-path /Users/fch/Downloads/GopherConAU_2023-1080.mp3 . I got an error: Building for debugging... Build complete! (0.17s) Error: An SSL error has occurred and a secure connection to the server cannot be made.
After the command: swift run transcribe --model-path "Models/whisperkit-coreml/openai_whisper-tiny" --audio-path /Users/fch/Downloads/GopherConAU_2023-1080.mp3 . I got an error: Building for debugging... Build complete! (0.17s) Error: An SSL error has occurred and a secure connection to the server cannot be made.
I have fix the proble. git lfs pull --include openai_whisper-tiny . notice the . It is very important
Ah interesting, thanks for looking into this, glad you got it working!
Hey folks! I'm trying to use the CLI, but it fails to load models:
The setup instructions seemed to have worked correctly: