Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library libcublas.so.12 is not found #717

Open
Xiaomingpapapa opened this issue Feb 26, 2024 · 12 comments
Open

Library libcublas.so.12 is not found #717

Xiaomingpapapa opened this issue Feb 26, 2024 · 12 comments

Comments

@Xiaomingpapapa
Copy link

upgrade faster-whisper version 0.10.0 -> 1.0.0
and meet the error: Library libcublas.so.12 is not found or cannot be loaded

operation system version: centos_7_9_x64
cuda version: 12.2

anyone else had the same problem?

@tuotuoshao
Copy link

I meet the same error. But my cuda version is 11.8 via command nvcc -V. So why faster-whisper use cuda12? I can also get cuda version 12.2 via nvidia-smi, but as i known it's the driver version which means the latest cuda runtime version support.

@jhj0517
Copy link

jhj0517 commented Feb 26, 2024

Yea it seems that the latest version of faster-whisper (version 1.0.0) is not compatible with some CUDA versions. I'm using CUDA 11.8 and faced the same problem.
As a temporary fix, you can downgrade faster-whisper to 0.10.1:

pip uninstall faster-whisper
pip install faster-whisper==0.10.1

@minhthuc2502
Copy link
Collaborator

From faster-whisper 1.0.0, it requires CUDA 12 as the description here . You need to install CUDA runtime version 12.* . It is no longer compatible with CUDA 11.* .

@Oheed911
Copy link

Oheed911 commented Mar 4, 2024

`
#Use an official Python runtime as a parent image
FROM python:3.8

#Add the NVIDIA key for CUDA 12 repositories
RUN curl "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.0-1_all.deb" -o cuda.deb &&
dpkg -i cuda.deb && rm cuda.deb

#Install CUDA 12 runtime and development packages along with libcudnn and libcublas
RUN apt-get update -y &&
apt-get install -y --no-install-recommends
cuda-cudart-12-0 cuda-nvcc-12-0 cuda-nvrtc-12-0
libcudnn8 libcublas-12-0 &&
rm -rf /var/lib/apt/lists/*

#Install python3, pip, and ffmpeg
RUN apt-get update && apt-get install -y python3 python3-pip libsndfile1 ffmpeg

#Set the working directory in the container
WORKDIR /app

#Copy the requirements file and the script to the container
COPY ./src /app

#Install Python dependencies
RUN pip3 install --no-cache-dir -r requirements.txt
`

above is my docker file, that resolved this issue.

@grzegorz700
Copy link

@minhthuc2502 Please refer to the right place where it mentions the requirements of cuda 12, if it exists. I understand that the release information only added support for Cuda 12. And still, in the README, there is nothing about stopping support for CUDA 11.*

So this version (1.0.x) must be fixed to properly use cuda 11.8...

@minhthuc2502
Copy link
Collaborator

You can see it in this release note in Ctranslate2. It needs to be more clear in the notes but it was emphasized that this is the major version of Ctranslate2 because of the breaking change when going up to CUDA 12.*.

Thank you for your remark.

@aryn832
Copy link

aryn832 commented Mar 9, 2024

Update the silly README:

`GPU
GPU execution requires the following NVIDIA libraries to be installed:

cuBLAS for CUDA 11
cuDNN 8 for CUDA 11`

@SeaDude
Copy link

SeaDude commented Mar 9, 2024

To install CUDA 12 and use the latest faster-whisper, is it as simple as pip install nvidia-cublas-cu12 nvidia-cudnn-cu12?

@aryn832
Copy link

aryn832 commented Mar 9, 2024

To install CUDA 12 and use the latest faster-whisper, is it as simple as pip install nvidia-cublas-cu12 nvidia-cudnn-cu12?

it's actually insanely broken because it still requires cuDNN 11 but cuBLAS 12, just do a downgrade as @jhj0517 recommended.

@SeaDude
Copy link

SeaDude commented Mar 11, 2024

I've been able to use the -cu12 suffixes without issue.

@fedirz
Copy link
Contributor

fedirz commented May 18, 2024

Here's a workaround, which might help for those trying to make it work in Docker.

#516 (comment)

jim60105 added a commit to jim60105/docker-whisperX that referenced this issue Aug 25, 2024
ref: SYSTRAN/faster-whisper#717 (comment)

- Update PyTorch extra-index-url from cu118 to cu121 in `Dockerfile`
- Update PyTorch extra-index-url from cu118 to cu121 in `ubi.Dockerfile`

Signed-off-by: 陳鈞 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants