From 1327560ea72e928d01e9b10f98ed233ac30c0b1a Mon Sep 17 00:00:00 2001 From: thxCode Date: Tue, 1 Sep 2026 16:48:01 +0800 Subject: [PATCH] feat(dtk): post-operation to pin numpy and remove nixl ep for vllm 0.18.1 - add pack/.post_operation/20260901_dtk_pin_numpy_remove_nixl_ep with matrix rule and overlay Dockerfile porting PR #265 fixes - log the operation in pack/.post_operation/README.md - ignore local .claude/ tooling directory Task 1 of dtk-post-op-pin-numpy-remove-nixl. Signed-off-by: thxCode --- .gitignore | 3 + .../dtk/Dockerfile | 67 +++++++++++++++++++ .../matrix.yaml | 16 +++++ pack/.post_operation/README.md | 1 + 4 files changed, 87 insertions(+) create mode 100644 pack/.post_operation/20260901_dtk_pin_numpy_remove_nixl_ep/dtk/Dockerfile create mode 100644 pack/.post_operation/20260901_dtk_pin_numpy_remove_nixl_ep/matrix.yaml diff --git a/.gitignore b/.gitignore index e96aa10a..2eb85dc5 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,9 @@ .DS_Store *.swp +# Local agent tooling +.claude/ + # C extensions *.so diff --git a/pack/.post_operation/20260901_dtk_pin_numpy_remove_nixl_ep/dtk/Dockerfile b/pack/.post_operation/20260901_dtk_pin_numpy_remove_nixl_ep/dtk/Dockerfile new file mode 100644 index 00000000..e0210e5c --- /dev/null +++ b/pack/.post_operation/20260901_dtk_pin_numpy_remove_nixl_ep/dtk/Dockerfile @@ -0,0 +1,67 @@ +ARG DTK_VERSION=26.04 +ARG VLLM_VERSION=0.18.1 + +FROM gpustack/runner:dtk${DTK_VERSION}-vllm${VLLM_VERSION} AS vllm +SHELL ["/bin/bash", "-eo", "pipefail", "-c"] + +ARG TARGETPLATFORM +ARG TARGETOS +ARG TARGETARCH + +## Restore NumPy 1.x ABI compatibility + +# The DTK base image currently ships a Torch build compiled against the NumPy +# 1.x ABI. NumPy 2.x cannot initialize in that Torch build, which causes +# distributed initialization to fail when it calls Tensor.numpy(). +# +# Install without dependencies to avoid changing the prebuilt DTK Python +# environment beyond the NumPy compatibility pin. +RUN <