Skip to content

fix: torchaudio CUDA version mismatch and libnppicc missing#2765

Open
amlyczz wants to merge 1 commit intoRVC-Boss:mainfrom
amlyczz:fix/torchaudio-cuda-compat
Open

fix: torchaudio CUDA version mismatch and libnppicc missing#2765
amlyczz wants to merge 1 commit intoRVC-Boss:mainfrom
amlyczz:fix/torchaudio-cuda-compat

Conversation

@amlyczz
Copy link
Copy Markdown

@amlyczz amlyczz commented Apr 12, 2026

Summary

Fixes two issues with torchaudio/torchcodec in Docker container:

  1. torchaudio CUDA version mismatch: PyTorch is installed from CUDA 12.6 index but torchaudio was being pulled from PyPI with CUDA 12.8, causing RuntimeError: Detected that PyTorch and TorchAudio were compiled with different CUDA versions

  2. libnppicc.so.12 missing: torchcodec backend requires NVIDIA NPP library which was missing from the container

Changes

  • install.sh: Add torchaudio to pip install commands alongside torch and torchcodec from the same PyTorch index URL
  • requirements.txt: Remove torchaudio to avoid installing wrong version from PyPI
  • Dockerfile: Add libnppicc-12 package installation for torchcodec dependency

Test

Build the Docker image and run funasr_asr.py or subfix_webui.py without torchaudio/cuda version errors.

- Install torchaudio from same PyTorch index URL to avoid CUDA version mismatch
- Remove torchaudio from requirements.txt to prevent wrong version from PyPI
- Add libnppicc-12 to Dockerfile for torchcodec backend dependency
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

Successfully merging this pull request may close these issues.

1 participant