Skip to content

Commit 004e18e

Browse files
Merge pull request #23 from AsymmetryChou/e3_para
Lock torch version to 2.1.1 in Dockerfile
2 parents bdce525 + a188b82 commit 004e18e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ RUN \
4343
# 这样如果找不到精确匹配的 Wheel,它会立刻报错,而不是花 10 分钟编译出一个会引发崩溃的包。
4444
conda run -n dpnegf pip install torch-scatter -f https://data.pyg.org/whl/torch-2.1.1+cpu.html --only-binary=torch-scatter && \
4545
# [3] 给本地仓库的安装加上 CPU 源保护,防止安装过程触发隐藏依赖,把刚才装好的 CPU 版 Torch 顶替成带 CUDA 的版本
46-
conda run -n dpnegf pip install ./DeePTB --extra-index-url https://download.pytorch.org/whl/cpu && \
47-
conda run -n dpnegf pip install ./ && \
46+
conda run -n dpnegf pip install ./DeePTB torch==2.1.1 --extra-index-url https://download.pytorch.org/whl/cpu && \
47+
conda run -n dpnegf pip install ./ torch==2.1.1 --extra-index-url https://download.pytorch.org/whl/cpu && \
4848
conda clean --all -y && \
4949
rm -rf /root/.cache/pip
5050

0 commit comments

Comments
 (0)