OSError: libcudart.so.13: cannot open shared object file: No such file or directory

Author: VaHiXCreated Apr 9, 2026Updated Jun 3, 2026

I did these simple steps from README:

bash
$ docker run --gpus all --ipc=host --net=host --ulimit memlock=-1 --ulimit stack=67108864 -it --rm nvcr.io/nvidia/pytorch:25.02-py3 bash
# git clone https://github.com/boson-ai/higgs-audio.git
# cd higgs-audio

# pip install -r requirements.txt
# pip install -e .

# python3 examples/generation.py \
--transcript "The sun rises in the east and sets in the west. This simple fact has been observed by humans for thousands of years." \
--ref_audio belinda \
--temperature 0.3 \
--out_path generation.wav

And Got this error:

Traceback (most recent call last):
  File "/workspace/higgs-audio/examples/generation.py", line 10, in <module>
    import torchaudio
  File "/usr/local/lib/python3.12/dist-packages/torchaudio/__init__.py", line 7, in <module>
    from . import _extension  # noqa  # usort: skip
    ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/torchaudio/_extension/__init__.py", line 30, in <module>
    _IS_TORCHAUDIO_EXT_AVAILABLE = _load_lib("_torchaudio")
                                   ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/dist-packages/torchaudio/_extension/utils.py", line 56, in _load_lib
    torch.ops.load_library(paths[0])
  File "/usr/local/lib/python3.12/dist-packages/torch/_ops.py", line 1392, in load_library
    ctypes.CDLL(path)
  File "/usr/lib/python3.12/ctypes/__init__.py", line 379, in __init__
    self._handle = _dlopen(self._name, mode)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: libcudart.so.13: cannot open shared object file: No such file or directory

Any idea what should I do?