[CI] Keep custom sgl-kernel wheel in CUDA CI (#24291)
This commit is contained in:
@@ -285,11 +285,15 @@ install_sglang_kernel() {
|
||||
$PIP_CMD install "torch==${TORCH_VER}" "torchaudio==${TORCHAUDIO_VER}" "torchvision==${TORCHVISION_VER}" --index-url "https://download.pytorch.org/whl/${CU_VERSION}" --force-reinstall --no-deps $PIP_INSTALL_SUFFIX
|
||||
fi
|
||||
|
||||
# install_sglang above pulls sglang-kernel from PyPI, whose default wheel
|
||||
# tracks one CUDA version (currently cu130). Force-reinstall from the
|
||||
# CU_VERSION-matched sglang wheel index so runners on a different CUDA
|
||||
# (e.g. h20 / cu129) get a wheel linked against the right libnvrtc.
|
||||
$PIP_CMD install "sglang-kernel==${SGL_KERNEL_VERSION_FROM_SRT}" --index-url "https://docs.sglang.ai/whl/${CU_VERSION}/" --force-reinstall --no-deps $PIP_INSTALL_SUFFIX
|
||||
if [ "${CUSTOM_BUILD_SGL_KERNEL:-}" != "true" ]; then
|
||||
# install_sglang above pulls sglang-kernel from PyPI, whose default wheel
|
||||
# tracks one CUDA version (currently cu130). Force-reinstall from the
|
||||
# CU_VERSION-matched sglang wheel index so runners on a different CUDA
|
||||
# (e.g. h20 / cu129) get a wheel linked against the right libnvrtc.
|
||||
$PIP_CMD install "sglang-kernel==${SGL_KERNEL_VERSION_FROM_SRT}" --index-url "https://docs.sglang.ai/whl/${CU_VERSION}/" --force-reinstall --no-deps $PIP_INSTALL_SUFFIX
|
||||
else
|
||||
echo "CUSTOM_BUILD_SGL_KERNEL=true: keeping freshly built sgl-kernel wheel."
|
||||
fi
|
||||
|
||||
mark_step_done "${FUNCNAME[0]}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user