Skip to content

Commit 317d8bc

Browse files
committed
add information about cpu-only torch
1 parent 7ea36a2 commit 317d8bc

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

Dockerfile.cpu

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
1515
WORKDIR /opt/deeprank-gnn-esm
1616
COPY . .
1717

18-
RUN uv pip install --system .
18+
RUN uv pip install --system torch --extra-index-url https://download.pytorch.org/whl/cpu && \
19+
uv pip install --system .
1920

2021
ENTRYPOINT ["deeprank-gnn-esm-predict"]
2122
# ==============================================================================

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,15 @@ at <https://arxiv.org/abs/2407.16375>
1919
pip install deeprank-gnn-esm
2020
```
2121

22+
### CPU only
23+
24+
To avoid downloading the heavy CUDA libraries (~3GB), install the CPU-only `torch` first:
25+
26+
```bash
27+
pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
28+
pip install deeprank-gnn-esm
29+
```
30+
2231
### GPU support
2332

2433
GPU support is included automatically — the default PyPI `torch` wheel bundles CUDA.

0 commit comments

Comments
 (0)