fix: add proxy for stage 9 PyTorch force-reinstall download
This commit is contained in:
@@ -295,6 +295,7 @@ RUN set -ex && \
|
|||||||
${VENV}/bin/pip install --no-cache-dir 'mineru[core]' && \
|
${VENV}/bin/pip install --no-cache-dir 'mineru[core]' && \
|
||||||
${VENV}/bin/python /opt/apply_mineru_patches.py && \
|
${VENV}/bin/python /opt/apply_mineru_patches.py && \
|
||||||
# mineru[core] 会把 ROCm PyTorch 替换成 CUDA 版,按教程顺序恢复
|
# mineru[core] 会把 ROCm PyTorch 替换成 CUDA 版,按教程顺序恢复
|
||||||
|
export http_proxy=${GIT_PROXY} https_proxy=${GIT_PROXY} && \
|
||||||
${VENV}/bin/pip install --no-cache-dir --force-reinstall \
|
${VENV}/bin/pip install --no-cache-dir --force-reinstall \
|
||||||
torch==2.11.0+rocm7.2 torchvision pytorch-triton-rocm \
|
torch==2.11.0+rocm7.2 torchvision pytorch-triton-rocm \
|
||||||
--index-url ${TORCH_INDEX} && \
|
--index-url ${TORCH_INDEX} && \
|
||||||
|
|||||||
Reference in New Issue
Block a user