Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion docker_PaddleOCR/paddle-ocr.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,9 @@ RUN set -eux && source /opt/utils/script-setup.sh \
&& pip install -U --no-cache-dir paddleocr \
# Step 4. install PaddleOCR fixes for Python>=3.10 compatibility
&& pip uninstall -y attrdict && pip install -UI --no-cache-dir attrdict3 \
# Step 5. cleanup
# Step 5. uninstall nvidia python packages if any
&& echo "Try to uninstall nvidia python packages to reduce storage size..." \
&& pip freeze | grep -i '^nvidia-' | cut -d'=' -f1 | xargs -r pip uninstall -y \
&& apt-get -qq update --fix-missing && apt-get -qq install -y --no-install-recommends --allow-change-held-packages libcusparselt0 libnccl2 libnccl-dev \
# Step 6. cleanup
&& install__clean && list_installed_packages
4 changes: 4 additions & 0 deletions docker_aidoc/miner.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ RUN set -eux \
libreoffice poppler-utils \
&& pip install -U magic-pdf[full] modelscope \
# ----------
&& echo "Try to uninstall nvidia python packages to reduce storage size..." \
&& pip freeze | grep -i '^nvidia-' | cut -d'=' -f1 | xargs -r pip uninstall -y \
&& apt-get -qq update --fix-missing && apt-get -qq install -y --no-install-recommends --allow-change-held-packages libcusparselt0 libnccl2 libnccl-dev \
# ----------
&& rm -rf /var/lib/apt/lists/* \
&& source /opt/utils/script-setup.sh \
&& install__clean && list_installed_packages
3 changes: 3 additions & 0 deletions docker_vllm/vllm-cuda.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ RUN set -eux && source /opt/utils/script-setup.sh \
&& echo "Detected CUDA version=${CUDA_VER} and IDX=${IDX}" \
# -----------------------------
&& pip install vllm --index-url "https://download.pytorch.org/whl/${IDX}" --extra-index-url https://pypi.org/simple \
&& echo "Try to uninstall nvidia python packages to reduce storage size..." \
&& pip freeze | grep -i '^nvidia-' | cut -d'=' -f1 | xargs -r pip uninstall -y \
&& apt-get -qq update --fix-missing && apt-get -qq install -y --no-install-recommends --allow-change-held-packages libcusparselt0 libnccl2 libnccl-dev \
# && cd /tmp/ \
# && git clone https://github.com/vllm-project/vllm.git \
# && cd /tmp/vllm \
Expand Down