Skip to content

Commit

Permalink
fix(mlc-llm): nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
JJGadgets committed Oct 7, 2024
1 parent 7f26ba7 commit fee1cc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/mlc-llm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RUN conda init && conda create --yes --copy -p /app python=3.11 && conda install
RUN conda install --yes --freeze-installed -p /app -c conda-forge gcc libvulkan-loader && conda clean -afy && rm -rf /tmp/*
# TODO: optimize above install command
ARG VERSION
RUN bash -c '[[ "${VERSION}" == "$(date +%Y.%m.%d)" ]] && export PACKAGES_TO_INSTALL="mlc-llm-nightly-cpu mlc-ai-nightly-cpu" || [[ "${VERSION}" != "$(date +%Y.%m.%d)" ]] && export PACKAGES_TO_INSTALL="mlc-llm-cpu>=${VERSION:=0.0.0} mlc-ai-cpu>=${VERSION:=0.0.0}"; \
RUN VERSION=${VERSION} bash -c '[[ "${VERSION}" == "$(date +%Y.%m.%d)" ]] && export PACKAGES_TO_INSTALL="mlc-llm-nightly-cpu mlc-ai-nightly-cpu" || [[ "${VERSION}" != "$(date +%Y.%m.%d)" ]] && export PACKAGES_TO_INSTALL="mlc-llm-cpu>=${VERSION:=0.0.0} mlc-ai-cpu>=${VERSION:=0.0.0}"; \
conda run -p /app python -m pip install --no-cache-dir --pre -U -vv --force-reinstall -f https://mlc.ai/wheels ${PACKAGES_TO_INSTALL} && \
conda clean -afy && rm -rf /tmp/*'
RUN apt update && apt install -y mesa-va-drivers mesa-vulkan-drivers vulkan-tools && apt clean && rm -rf /tmp/* /var/lib/apt/lists/* /var/cache /var/tmp/
Expand Down

0 comments on commit fee1cc7

Please sign in to comment.