2024-09-14 07:54:34 +08:00
FROM intel/oneapi-basekit:2024.2.1-0-devel-ubuntu22.04
2024-06-18 02:01:25 +08:00
RUN wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | tee /usr/share/keyrings/intel-oneapi-archive-keyring.gpg > /dev/null && \
echo "deb [signed-by=/usr/share/keyrings/intel-oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main " | tee /etc/apt/sources.list.d/oneAPI.list && \
chmod 644 /usr/share/keyrings/intel-oneapi-archive-keyring.gpg && \
wget -O- https://repositories.intel.com/graphics/intel-graphics.key | gpg --dearmor | tee /usr/share/keyrings/intel-graphics.gpg > /dev/null && \
echo "deb [arch=amd64,i386 signed-by=/usr/share/keyrings/intel-graphics.gpg] https://repositories.intel.com/graphics/ubuntu jammy arc" | tee /etc/apt/sources.list.d/intel.gpu.jammy.list && \
chmod 644 /usr/share/keyrings/intel-graphics.gpg
2024-09-24 00:44:26 +08:00
RUN apt-get update -y && \
apt-get install -y curl libicu70 lsb-release git wget vim numactl python3 python3-pip ffmpeg libsm6 libxext6 libgl1
2024-09-14 07:54:34 +08:00
2024-06-18 02:01:25 +08:00
COPY ./ /workspace/vllm
WORKDIR /workspace/vllm
2024-09-24 00:44:26 +08:00
RUN --mount= type = cache,target= /root/.cache/pip \
pip install -v --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us/ \
cmake>= 3.26 ninja packaging setuptools-scm>= 8 wheel jinja2 \
-r requirements-xpu.txt
2024-06-18 02:01:25 +08:00
2024-09-24 00:44:26 +08:00
RUN --mount= type = cache,target= /root/.cache/pip \
--mount= type = bind,source= .git,target= .git \
VLLM_TARGET_DEVICE = xpu python3 setup.py install
2024-06-18 02:01:25 +08:00
CMD [ "/bin/bash" ]