Error: "No supported gpu backend found!"
Hi team, i am getting this error after running this module in docker. But when i am running in conda env, its running fine. Any solution ?
$ boltz predict examples/prot_custom_msa.yaml --out_dir /run_output
Downloading the CCD dictionary to /root/.boltz/ccd.pkl. You may change the cache directory with the --cache flag.
Downloading the model weights to /root/.boltz/boltz1_conf.ckpt. You may change the cache directory with the --cache flag.
Checking input data.
Running predictions for 1 structure
Processing input data.
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████| 1/1 [00:00<00:00, 27.57it/s]
Traceback (most recent call last):
File "/usr/local/bin/boltz", line 8, in
I ran into this issue.
FROM nvidia/cuda:12.8.0-runtime-ubuntu24.04
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
--mount=type=cache,target=/root/.cache/pip \
apt-get update && \
apt-get install -y python3 python3-pip && \
pip install boltz[cuda] -U --break-system-packages
For the above Dockerfile I seemed to get this issue. This apparently was happening as Boltz dependencies were only being installed with a CPU version.
I was able to fix it by breaking out the torch stuff seperately as so:
FROM nvidia/cuda:12.8.0-runtime-ubuntu24.04
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
--mount=type=cache,target=/var/lib/apt,sharing=locked \
--mount=type=cache,target=/root/.cache/pip \
apt-get update && \
apt-get install -y python3 python3-pip && \
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu128 --break-system-packages && \
pip install boltz[cuda] -U --break-system-packages