Skip to content
Merged
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
9 changes: 8 additions & 1 deletion comps/third_parties/video-llama/src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

FROM python:3.11-slim

# Set this to "cpu" or "gpu" or etc
ARG ARCH="cpu"

ENV LANG=C.UTF-8

RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
Expand All @@ -20,7 +23,11 @@ COPY --chown=user:user comps /home/user/comps
WORKDIR /home/user/comps/third_parties/video-llama/src

RUN pip install --no-cache-dir --upgrade pip setuptools && \
pip install --no-cache-dir -r /home/user/comps/third_parties/video-llama/src/requirements.txt
if [ ${ARCH} = "cpu" ]; then \
pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu -r /home/user/comps/third_parties/video-llama/src/requirements.txt; \
else \
pip install --no-cache-dir -r /home/user/comps/third_parties/video-llama/src/requirements.txt; \
fi

ARG VIDEO_LLAMA_REPO=https://github.com/DAMO-NLP-SG/Video-LLaMA.git
ARG VIDEO_LLAMA_COMMIT=0adb19e
Expand Down
Loading