Refine flashinfer version retrieval in Dockerfile.ci to enhance reliability and maintain consistency in package installations

Signed-off-by: tzhouam <tzhouam@connect.ust.hk>
This commit is contained in:
tzhouam committed 2026-02-11 04:56:50 +00:00
1 parent 50cea0b29c
commit 31b6584373
1 file changed
+1 -1
+1 -1
View File
@@ -23,7 +23,7 @@ RUN uv pip install --system --upgrade --force-reinstall --prerelease=allow vllm
# Keep flashinfer runtime packages in version sync.
# We derive the version from installed flashinfer (pulled by vllm)
# and enforce the same version for flashinfer-cubin / flashinfer-jit-cache.
RUN FLASHINFER_VERSION="$(python3 -c 'import importlib.metadata as m; print(next(m.version(n) for n in ("flashinfer","flashinfer-python") if m.packages_distributions().get(n)))')" && \
RUN FLASHINFER_VERSION="$(python3 -c 'import importlib.metadata as m; print(m.version("flashinfer-python"))' 2>/dev/null || python3 -c 'import importlib.metadata as m; print(m.version("flashinfer"))')" && \
FLASHINFER_CUDA_TAG="$(python3 -c 'import torch; print((torch.version.cuda or "12.4").replace(".", ""))')" && \
uv pip install --system --upgrade --force-reinstall \
"flashinfer-cubin==${FLASHINFER_VERSION}" \