From d3ee70985f3acea739d1239496e52b006b0edba0 Mon Sep 17 00:00:00 2001 From: Yineng Zhang Date: Tue, 9 Sep 2025 03:16:25 -0700 Subject: [PATCH] chore: upgrade v0.3.9 sgl-kernel (#10220) --- docker/Dockerfile | 7 ++----- docker/Dockerfile.gb200 | 2 +- python/pyproject.toml | 2 +- python/sglang/srt/entrypoints/engine.py | 2 +- scripts/ci/ci_install_dependency.sh | 2 +- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 4f63091bf..2fbc76a4c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -84,11 +84,8 @@ RUN python3 -m pip install --no-cache-dir --upgrade pip setuptools wheel html5li && python3 -m pip install --no-cache-dir -e "python[${BUILD_TYPE}]" --extra-index-url https://download.pytorch.org/whl/cu${CUINDEX} \ && python3 -m pip install --no-cache-dir nvidia-nccl-cu12==2.27.6 --force-reinstall --no-deps \ && python3 -m flashinfer --download-cubin \ - && if [ "$CUDA_VERSION" = "12.8.1" ]; then \ - python3 -m pip install --no-cache-dir https://github.com/sgl-project/whl/releases/download/v0.3.8/sgl_kernel-0.3.8+cu128-cp310-abi3-manylinux2014_x86_64.whl --force-reinstall --no-deps ; \ - fi \ - && if [ "$CUDA_VERSION" = "12.9.1" ]; then \ - python3 -m pip install --no-cache-dir https://github.com/sgl-project/whl/releases/download/v0.3.8/sgl_kernel-0.3.8+cu129-cp310-abi3-manylinux2014_x86_64.whl --force-reinstall --no-deps ; \ + && if [ "$CUDA_VERSION" = "12.6.1" ]; then \ + python3 -m pip install --no-cache-dir https://github.com/sgl-project/whl/releases/download/v0.3.9/sgl_kernel-0.3.9+cu124-cp310-abi3-manylinux2014_x86_64.whl --force-reinstall --no-deps ; \ fi # Download source files diff --git a/docker/Dockerfile.gb200 b/docker/Dockerfile.gb200 index d8190856e..d862d08aa 100644 --- a/docker/Dockerfile.gb200 +++ b/docker/Dockerfile.gb200 @@ -4,7 +4,7 @@ FROM nvidia/cuda:${CUDA_VERSION}-cudnn-devel-ubuntu22.04 ARG BUILD_TYPE=blackwell ARG DEEPEP_COMMIT=1b14ad661c7640137fcfe93cccb2694ede1220b0 ARG CMAKE_BUILD_PARALLEL_LEVEL=2 -ARG SGL_KERNEL_VERSION=0.3.8 +ARG SGL_KERNEL_VERSION=0.3.9 ENV DEBIAN_FRONTEND=noninteractive \ CUDA_HOME=/usr/local/cuda \ GDRCOPY_HOME=/usr/src/gdrdrv-2.4.4/ \ diff --git a/python/pyproject.toml b/python/pyproject.toml index 2327575f4..bdb816ba0 100755 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -58,7 +58,7 @@ runtime_common = [ srt = [ "sglang[runtime_common]", - "sgl-kernel==0.3.8", + "sgl-kernel==0.3.9", "torch==2.8.0", "torchaudio==2.8.0", "torchvision", diff --git a/python/sglang/srt/entrypoints/engine.py b/python/sglang/srt/entrypoints/engine.py index f704018e6..72a14d561 100644 --- a/python/sglang/srt/entrypoints/engine.py +++ b/python/sglang/srt/entrypoints/engine.py @@ -682,7 +682,7 @@ def _set_envs_and_config(server_args: ServerArgs): if _is_cuda and not get_bool_env_var("SGLANG_SKIP_SGL_KERNEL_VERSION_CHECK"): assert_pkg_version( "sgl-kernel", - "0.3.8", + "0.3.9", "Please reinstall the latest version with `pip install sgl-kernel --force-reinstall`", ) diff --git a/scripts/ci/ci_install_dependency.sh b/scripts/ci/ci_install_dependency.sh index 199fcbaf0..6eb362abc 100755 --- a/scripts/ci/ci_install_dependency.sh +++ b/scripts/ci/ci_install_dependency.sh @@ -51,7 +51,7 @@ SGLANG_ROUTER_BUILD_NO_RUST=1 $PIP_CMD install -e "sgl-router" $PIP_INSTALL_SUFF if [ "$IS_BLACKWELL" = "1" ]; then # TODO auto determine sgl-kernel version - SGL_KERNEL_VERSION=0.3.8 + SGL_KERNEL_VERSION=0.3.9 $PIP_CMD install https://github.com/sgl-project/whl/releases/download/v${SGL_KERNEL_VERSION}/sgl_kernel-${SGL_KERNEL_VERSION}+cu128-cp310-abi3-manylinux2014_x86_64.whl --force-reinstall $PIP_INSTALL_SUFFIX fi