diff --git a/docker/Dockerfile.blackwell b/docker/Dockerfile.blackwell index 312353101..d0f00a25b 100644 --- a/docker/Dockerfile.blackwell +++ b/docker/Dockerfile.blackwell @@ -4,7 +4,7 @@ ENV DEBIAN_FRONTEND=noninteractive WORKDIR /sgl-workspace -RUN pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128 +RUN pip3 install torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu128 RUN pip3 install https://github.com/sgl-project/whl/releases/download/v0.1.4/sgl_kernel-0.1.4+cu128-cp39-abi3-manylinux2014_x86_64.whl \ && pip3 install setuptools==75.0.0 wheel==0.41.0 scikit-build-core diff --git a/python/pyproject.toml b/python/pyproject.toml index 6b4d84571..c7d3d36dd 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -61,8 +61,8 @@ srt = [ blackwell = [ "sglang[runtime_common]", "sgl-kernel", - "torch", - "torchvision", + "torch==2.7.0", + "torchvision==0.22.0", "cuda-python", "outlines>=0.0.44,<=0.1.11", "einops", diff --git a/sgl-kernel/build.sh b/sgl-kernel/build.sh index 1708e6a72..a3fb8a303 100755 --- a/sgl-kernel/build.sh +++ b/sgl-kernel/build.sh @@ -26,7 +26,7 @@ fi if [ ${CUDA_VERSION} = "12.8" ]; then DOCKER_IMAGE="${BUILDER_NAME}:cuda${CUDA_VERSION}" - TORCH_INSTALL="pip install --no-cache-dir --pre torch --index-url https://download.pytorch.org/whl/nightly/cu${CUDA_VERSION//.}" + TORCH_INSTALL="pip install --no-cache-dir torch==2.7.0 --index-url https://download.pytorch.org/whl/cu${CUDA_VERSION//.}" else DOCKER_IMAGE="${BUILDER_NAME}:cuda${CUDA_VERSION}" TORCH_INSTALL="pip install --no-cache-dir torch==2.6.0 --index-url https://download.pytorch.org/whl/cu${CUDA_VERSION//.}"