Comments (7)
This is what I use, I think it's for the same issue you're having:
echo 'export LD_LIBRARY_PATH=/opt/ctranslate2/lib:$LD_LIBRARY_PATH' >> ~/.bashrc
from whisper-ctranslate2.
$ whisper-ctranslate2 12694263-Joan-Svarczkopf.mp3 --compute_type int8_float16
Detecting language using up to the first 30 seconds. Use --language
to specify the language
100%|████████████████████████████████████████| 922M/922M [00:03<00:00, 273MiB/s]
100%|█████████████████████████████████████| 2.29k/2.29k [00:00<00:00, 13.3MiB/s]
100%|███████████████████████████████████████| 449k/449k [00:00<00:00, 2.69MiB/s]
100%|█████████████████████████████████████| 2.10M/2.10M [00:00<00:00, 9.16MiB/s]
Estimating duration from bitrate, this may be inaccurate
Could not load library libcudnn_ops_infer.so.8. Error: libcudnn_ops_infer.so.8: cannot open shared object file: No such file or directory
Please make sure libcudnn_ops_infer.so.8 is in your library path!
Aborted (core dumped)
$ sudo find / -name "libcudnn_ops_infer.so.8"
/home/silvacarl/.local/lib/python3.8/site-packages/torch/lib/libcudnn_ops_infer.so.8
$ echo $LD_LIBRARY_PATH
/usr/local/cuda-11.7/targets/x86_64-linux/lib/:/usr/local/cuda-11.7/lib64:/usr/lib/x86_64-linux-gnu:/home/silvacarl/.local/lib/python3.8/site-packages/torch/lib/
$ ls /opt/ctranslate2/lib
ls: cannot access '/opt/ctranslate2/lib': No such file or directory
from whisper-ctranslate2.
The same happened to me using an Anaconda virtual environment, this is the solution I found:
mkdir -p $CONDA_PREFIX/etc/conda/activate.d
echo 'CUDNN_PATH=$(dirname $(python3 -c "import nvidia.cudnn;print(nvidia.cudnn.__file__)"))' >> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/:$CUDNN_PATH/lib' >> $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
source $CONDA_PREFIX/etc/conda/activate.d/env_vars.sh
from whisper-ctranslate2.
I had this error in runpod.io. The following helped:
!apt-get install libcudnn8
!apt-get install libcublas-12-1 -y
Or a specific version of cuda so you don't have to upgrade libcublas:
!apt-get install libcudnn8=8.9.2.26-1+cuda11.8 -y
Upd.
In the end, it all came down to copying.
To do this, we are looking for where our libcudnn is located:
!find / -name "libcudnn_ops_infer.so.8"
Then we look where it should be:
!apt-get install libcudnn8=8.9.2.26-1+cuda11.8 -y
!find / -name "libcudnn_ops_infer.so.8"
And in the following sessions, we simply copy all libcudnn to the desired directory.
In my case it is:
!cp /usr/local/lib/python3.10/dist-packages/torch/lib/libcudnn* /usr/lib/x86_64-linux-gnu/
from whisper-ctranslate2.
this nailed it for me:
export LD_LIBRARY_PATH=$(echo "$LD_LIBRARY_PATH:/usr/local/cuda-11.7/targets/x86_64-linux/lib/:/home/silvacarl/.local/lib/python3.8/site-packages/nvidia/cudnn/lib/")
from whisper-ctranslate2.
@silvacarl2 you save my day, thank you
from whisper-ctranslate2.
any time, ctranslate2 is awesome
from whisper-ctranslate2.
Related Issues (20)
- How to transfer the word-level timestamped json to srt? HOT 4
- --live_transcribe does nothing for me in macOS HOT 3
- Use the output of --live_transcribe HOT 4
- 2 hour video but generated transcription of only 35 mins. HOT 7
- How to transcibe as fast as possible in a CPU only server? HOT 1
- How to calculate the probability value of a word? HOT 1
- 0.2.9 --help explained incorrectly HOT 1
- unexpected keyword argument 'repetition_penalty HOT 3
- Additional quants please! HOT 7
- Ablility to specify model directory HOT 1
- Feature request, does use of compute USB stick can accelerate inference? HOT 1
- Measure times HOT 1
- Running on Macos? HOT 20
- detect language HOT 1
- Support Whisper large-v3? HOT 6
- distill-whisper? HOT 4
- invalid int value HOT 1
- Multi Files HOT 1
- Issue with output redirection to R console using processx HOT 2
- GPU or CoreML acceleration on Mac Arm
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whisper-ctranslate2.