x
This commit is contained in:
+3
-3
@@ -295,15 +295,15 @@ RUN set -ex && \
|
||||
--index-url ${TORCH_INDEX} && \
|
||||
${VENV}/bin/python -c "import vllm; print('vllm import OK:', vllm.__version__)" && \
|
||||
# 锁定所有 ROCm 关键包版本,防止 mineru 安装时覆盖
|
||||
${VENV}/bin/pip freeze | grep -iE "^(torch|vllm|triton|pytorch.triton|setuptools)" >> ${VENV}/torch-constraint.txt && \
|
||||
${VENV}/bin/pip freeze | grep -iE "^(torch|vllm|triton|pytorch.triton|setuptools|torchvision|flash.attn|aiter)" >> ${VENV}/torch-constraint.txt && \
|
||||
rm -rf /opt/vllm_build
|
||||
|
||||
# ===========================================================================
|
||||
# 阶段 9:安装 MinerU(--no-deps 避免污染 ROCm 环境)
|
||||
# 阶段 9:安装 MinerU(constraint 保护 ROCm 环境,正常安装其他依赖)
|
||||
# ===========================================================================
|
||||
RUN set -ex && \
|
||||
export http_proxy=${GIT_PROXY} https_proxy=${GIT_PROXY} && \
|
||||
${VENV}/bin/pip install --no-deps 'mineru[core]' && \
|
||||
${VENV}/bin/pip install 'mineru[core]' && \
|
||||
${VENV}/bin/python -c "import torch; import vllm; import mineru; print('MinerU OK')"
|
||||
|
||||
# ===========================================================================
|
||||
|
||||
Reference in New Issue
Block a user