Add hf_transfer to testing image (#10096)

This commit is contained in:
Michael Goin 2024-11-08 03:35:25 -05:00 committed by GitHub
parent da07a9ead7
commit aea6ad629f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -191,6 +191,11 @@ ADD . /vllm-workspace/
RUN --mount=type=cache,target=/root/.cache/pip \
python3 -m pip install -r requirements-dev.txt
# enable fast downloads from hf (for testing)
RUN --mount=type=cache,target=/root/.cache/pip \
python3 -m pip install hf_transfer
ENV HF_HUB_ENABLE_HF_TRANSFER 1
# Copy in the v1 package for testing (it isn't distributed yet)
COPY vllm/v1 /usr/local/lib/python3.12/dist-packages/vllm/v1