Giter Site home page Giter Site logo

Comments (7)

mayeaux avatar mayeaux commented on May 14, 2024

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.

silvacarl2 avatar silvacarl2 commented on May 14, 2024

$ 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.

Botoni avatar Botoni commented on May 14, 2024

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.

kanazei avatar kanazei commented on May 14, 2024

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.

silvacarl2 avatar silvacarl2 commented on May 14, 2024

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.

YusufCandraArif avatar YusufCandraArif commented on May 14, 2024

@silvacarl2 you save my day, thank you

from whisper-ctranslate2.

silvacarl2 avatar silvacarl2 commented on May 14, 2024

any time, ctranslate2 is awesome

from whisper-ctranslate2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.