Can't use Whisper on GPU Cuda

Open
#425 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, python

Research direction

Start by reproducing the failure through whisperx/main.py, then trace transcribe.py into asr.py and the WhisperModel initialization shown in the log. Check the reported CTranslate2 CUDA error and the torchcodec dependency resolution on Linux aarch64; done means transcription and diarization work on the stated GPU platform without either failure.

Written by the indexing model from the issue text.

Description

Hi

I have a Nvidia Spark DGX to use and get the following log when I try to transcribe a file with Whisper

Diarization completed. Found segments: 1\nResults saved to: data/temp/sortformer/cffedf75-331a-49d2-8e69-204c0fb45fd7/result.json\nFound 1 speakers: speaker_0\n/app/whisperx-env/WhisperX/.venv/lib/python3.10/site-packages/pyannote/audio/core/io.py:47: UserWarning: \ntorchcodec is not installed correctly so built-in audio decoding will fail. Solutions are:\n* use audio preloaded in-memory as a {'waveform': (channel, time) torch.Tensor, 'sample_rate': int} dictionary;\n* fix torchcodec installation. Error message was:\n\nNo module named 'torchcodec'\n warnings.warn(\nTraceback (most recent call last):\n File \"/home/ubuntu/.local/share/uv/python/cpython-3.10.20-linux-aarch64-gnu/lib/python3.10/runpy.py\", line 196, in _run_module_as_main\n return _run_code(code, main_globals, None,\n File \"/home/ubuntu/.local/share/uv/python/cpython-3.10.20-linux-aarch64-gnu/lib/python3.10/runpy.py\", line 86, in _run_code\n exec(code, run_globals)\n File \"/app/whisperx-env/WhisperX/whisperx/__main__.py\", line 102, in <module>\n cli()\n File \"/app/whisperx-env/WhisperX/whisperx/__main__.py\", line 98, in cli\n transcribe_task(args, parser)\n File \"/app/whisperx-env/WhisperX/whisperx/transcribe.py\", line 127, in transcribe_task\n model = load_model(\n File \"/app/whisperx-env/WhisperX/whisperx/asr.py\", line 357, in load_model\n model = model or WhisperModel(whisper_arch,\n File \"/app/whisperx-env/WhisperX/.venv/lib/python3.10/site-packages/faster_whisper/transcribe.py\", line 663, in __init__\n self.model = ctranslate2.models.Whisper(\nValueError: This CTranslate2 package was not compiled with CUDA support\n"

It seems that CTranslate2 package is not working with Cuda

Additionally on installing the docker package I get the following error

time=12:31:31 level=ERROR msg="Failed to initialize diarization model" model_id=pyannote error="failed to setup PyAnnote environment: uv sync failed: exit status 2: Resolved 136 packages in 13ms\nerror: Distribution `torchcodec==0.7.0 @ registry+https://pypi.org/simple` can't be installed because it doesn't have a source distribution or wheel for the current platform\n\nhint: You're on Linux (`manylinux_2_39_aarch64`), but `torchcodec` (v0.7.0) only has wheels for the following platforms: `manylinux_2_28_x86_64`, `macosx_11_0_arm64`, `win_amd64`; consider adding \"sys_platform == 'linux' and platform_machine == 'aarch64'\" to `tool.uv.required-environments` to ensure uv resolves to a version with compatible wheels"

Is there a solution to fix these error?

Thanks a lot

Dominant language
Go
Stars
3.1k
Forks
264
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rishikanthc/Scriberr

All issues in rishikanthc/Scriberr

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.