We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bdce525 + a188b82 commit 004e18eCopy full SHA for 004e18e
1 file changed
Dockerfile
@@ -43,8 +43,8 @@ RUN \
43
# 这样如果找不到精确匹配的 Wheel,它会立刻报错,而不是花 10 分钟编译出一个会引发崩溃的包。
44
conda run -n dpnegf pip install torch-scatter -f https://data.pyg.org/whl/torch-2.1.1+cpu.html --only-binary=torch-scatter && \
45
# [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 ./ && \
+ conda run -n dpnegf pip install ./DeePTB torch==2.1.1 --extra-index-url https://download.pytorch.org/whl/cpu && \
+ conda run -n dpnegf pip install ./ torch==2.1.1 --extra-index-url https://download.pytorch.org/whl/cpu && \
48
conda clean --all -y && \
49
rm -rf /root/.cache/pip
50
0 commit comments