Open sscotti opened 1 year ago
Just a follow up to my previous post. I kept having problems with that ffmpeg library not being available: libblas.so.3
So, my solution was to actually compile my own ffmpeg library per the directions here:
and then map or copy that compiled ffmpeg to my Whisper container. Surprising that seems to have worked because when I test with :
curl -F "file=@test.wav" http://localhost:5000/whisper
that works now. I just get a warning:
/usr/local/lib/python3.9/site-packages/whisper/transcribe.py:114: UserWarning: FP16 is not supported on CPU; using FP32 instead
whisper_service_1 | warnings.warn("FP16 is not supported on CPU; using FP32 instead")
Is there something I should do with the whisper options in app.py to configure it correctly for my system ?
Another thing I am curious about. My dev machine and others do not have a GPU, but quite a few CPU's. Does Whisper automatically use all of the resources, or do I need to somehow configure it to use multiple processes or pools, if it can do that at all.
The performance on my dev iMac (Intel i7 machine) isn't bad. I haven't tried it yet on an M1 MBP. A production machine is a Dell R710 with 24 cores, but not GPU. Kind of wondering how it might work on that machine ?
Hey, this example was really made for GPU usage, but there is this whisper implementation that is made for CPU: https://github.com/ggerganov/whisper.cpp
Thank you 🚀
Getting that error when trying to build this using a docker-compose.yml file. I think everything is mostly working though.
I am running docker on and INTEL Mac with Docker Desktop. The container builds, but when I enter the terminal and type:
ffmpeg --version
get that error:
ffmpeg: error while loading shared libraries: libblas.so.3: cannot open shared object file: No such file or directory
Same error when I execute from the CLI:
curl -F "file=@/Users/sscotti/Desktop/test.wav" http://localhost:5000/whisper
with port 5000 exposed in docker-compose.yml
Seems like so sort of issue with that library being loaded.