Open mbetrifork opened 5 days ago
hi @mbetrifork ,
Please check if the GPU is accessible in Docker by running the following command:
docker run --gpus all nvidia/cuda:12.4.0-base-ubuntu20.04 nvidia-smi
docker run --gpus all -it nvidia/cuda:12.4.0-devel-ubuntu20.04 nvcc --version
Ensure that nvidia-container-toolkit is installed and properly configured
My output:
docker run --gpus all nvidia/cuda:12.4.0-base-ubuntu20.04 nvidia-smi
Wed Nov 20 15:57:18 2024
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.120 Driver Version: 550.120 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA GeForce RTX 3080 Ti Off | 00000000:03:00.0 On | N/A |
| 0% 50C P8 32W / 350W | 51MiB / 12288MiB | 23% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
+-----------------------------------------------------------------------------------------+
docker run --gpus all -it nvidia/cuda:12.4.0-devel-ubuntu20.04 nvcc --version
==========
== CUDA ==
==========
CUDA Version 12.4.0
Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Thu_Mar_28_02:18:24_PDT_2024
Cuda compilation tools, release 12.4, V12.4.131
Build cuda_12.4.r12.4/compiler.34097967_0
Following the instructions to clone and build the whisper docker image, I get this error on my Ubuntu 24.04 laptop with an nVidia RTX A2000 GPU:
I named my image docker-whisper-image. The rest of the command is taken straight from the README.md
When running Whisper, the output confirms that it's not using Cuda:
Nvidia-smi is installed and working it seems:
On the host same output: