[XPU] update nixl to v1.2.0 (#46327)
Signed-off-by: zhenwei-intel <zhenwei.liu@intel.com>
This commit is contained in:
+10
-10
@@ -132,7 +132,7 @@ CMD ["/bin/bash"]
|
|||||||
FROM vllm-base AS ucx-nixl-build
|
FROM vllm-base AS ucx-nixl-build
|
||||||
|
|
||||||
ARG UCX_VERSION=v1.21.0-rc2
|
ARG UCX_VERSION=v1.21.0-rc2
|
||||||
ARG NIXL_VERSION=0.10.1
|
ARG NIXL_VERSION=v1.2.0
|
||||||
|
|
||||||
# Build-time only: compiler, autotools, and verbs dev headers
|
# Build-time only: compiler, autotools, and verbs dev headers
|
||||||
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
||||||
@@ -149,25 +149,25 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
|||||||
# patchelf (installed via uv) is used by the NIXL wheel build to rewrite
|
# patchelf (installed via uv) is used by the NIXL wheel build to rewrite
|
||||||
# RPATH entries, making the wheel portable across stages.
|
# RPATH entries, making the wheel portable across stages.
|
||||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
git clone https://github.com/openucx/ucx /tmp/ucx_source && \
|
git clone --depth 1 --branch "${UCX_VERSION}" https://github.com/openucx/ucx /tmp/ucx_source && \
|
||||||
cd /tmp/ucx_source && git checkout "${UCX_VERSION}" && \
|
cd /tmp/ucx_source && \
|
||||||
bash autogen.sh && \
|
bash autogen.sh && \
|
||||||
./configure --prefix=/tmp/ucx_install --with-ze=yes --enable-examples --enable-mt && \
|
./configure --prefix=/tmp/ucx_install --with-ze=yes --enable-examples --enable-mt && \
|
||||||
make CFLAGS="-Wno-error=incompatible-pointer-types" -j8 && make install && \
|
make CFLAGS="-Wno-error=incompatible-pointer-types" -j"$(nproc)" && make install && \
|
||||||
git clone https://github.com/ai-dynamo/nixl /tmp/nixl_source && \
|
git clone --depth 1 --branch "${NIXL_VERSION}" https://github.com/ai-dynamo/nixl /tmp/nixl_source && \
|
||||||
cd /tmp/nixl_source && git checkout "${NIXL_VERSION}" && \
|
cd /tmp/nixl_source && \
|
||||||
uv pip install --upgrade meson pybind11 patchelf && \
|
uv pip install --upgrade meson pybind11 patchelf && \
|
||||||
uv pip install -r requirements.txt && \
|
uv pip install -r requirements.txt && \
|
||||||
PKG_CONFIG_PATH=/tmp/ucx_install/lib/pkgconfig \
|
PKG_CONFIG_PATH=/tmp/ucx_install/lib/pkgconfig \
|
||||||
LD_LIBRARY_PATH=/tmp/ucx_install/lib \
|
LD_LIBRARY_PATH=/tmp/ucx_install/lib \
|
||||||
python -m pip wheel --no-deps . -w /tmp/nixl_wheels/ && \
|
python -m pip wheel --no-deps . -w /tmp/nixl_wheels/ && \
|
||||||
find /tmp/ucx_install -type f \( -name '*.a' -o -name '*.la' \) -delete && \
|
find /tmp/ucx_install -type f \( -name '*.a' -o -name '*.la' \) -delete && \
|
||||||
rm -rf /tmp/ucx_install/include /tmp/ucx_install/share /tmp/ucx_install/etc /tmp/ucx_install/lib/cmake /tmp/ucx_install/bin && \
|
rm -rf /tmp/ucx_install/{include,share,etc,bin} /tmp/ucx_install/lib/cmake \
|
||||||
rm -rf /tmp/ucx_source /tmp/nixl_source
|
/tmp/ucx_source /tmp/nixl_source
|
||||||
|
|
||||||
FROM vllm-base AS vllm-openai
|
FROM vllm-base AS vllm-openai
|
||||||
|
|
||||||
ARG NIXL_VERSION=0.10.1
|
ARG NIXL_VERSION=v1.2.0
|
||||||
|
|
||||||
# Copy compiled UCX runtime libraries and the pre-built NIXL wheel.
|
# Copy compiled UCX runtime libraries and the pre-built NIXL wheel.
|
||||||
# No compiler or autotools are installed in this stage.
|
# No compiler or autotools are installed in this stage.
|
||||||
@@ -192,7 +192,7 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
|||||||
librdmacm1t64 \
|
librdmacm1t64 \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& uv pip install --no-deps /tmp/nixl_wheels/nixl*.whl \
|
&& uv pip install --no-deps /tmp/nixl_wheels/nixl*.whl \
|
||||||
&& uv pip install nixl==${NIXL_VERSION} \
|
&& uv pip install nixl==${NIXL_VERSION} && uv pip uninstall nixl-cu13 \
|
||||||
&& rm -rf /tmp/nixl_wheels
|
&& rm -rf /tmp/nixl_wheels
|
||||||
|
|
||||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
|
|||||||
Reference in New Issue
Block a user