[sgl-kernel] Prep for torch 2.11 upgrade and switch PyPI default to cu130 (#24162)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: Baizhou Zhang <sobereddiezhang@gmail.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
Baizhou Zhang
parent
c04b20dc88
commit
340efca244
@@ -79,10 +79,10 @@ RUN set -eux; \
|
||||
RUN --mount=type=cache,id=sgl-kernel-pip,target=/root/.cache/pip \
|
||||
set -eux; \
|
||||
case "${CUDA_VERSION}" in \
|
||||
13.0) TORCH_VER=2.9.1; CU_TAG=cu130 ;; \
|
||||
12.9) TORCH_VER=2.9.1; CU_TAG=cu128 ;; \
|
||||
12.8) TORCH_VER=2.9.1; CU_TAG=cu128 ;; \
|
||||
*) TORCH_VER=2.9.1; CU_TAG=cu126 ;; \
|
||||
13.0) TORCH_VER=2.11.0; CU_TAG=cu130 ;; \
|
||||
12.9) TORCH_VER=2.11.0; CU_TAG=cu129 ;; \
|
||||
12.8) TORCH_VER=2.11.0; CU_TAG=cu128 ;; \
|
||||
*) TORCH_VER=2.11.0; CU_TAG=cu126 ;; \
|
||||
esac; \
|
||||
${PYTHON_ROOT_PATH}/bin/pip install torch==${TORCH_VER} --index-url https://${PYTORCH_MIRROR}/whl/${CU_TAG}; \
|
||||
${PYTHON_ROOT_PATH}/bin/pip install ninja setuptools==75.0.0 wheel==0.41.0 numpy uv scikit-build-core --index-url ${PIP_DEFAULT_INDEX}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
`sglang-kernel` provides optimized compute primitives for LLM inference engines, enabling efficient inference for large language models and vision-language models through custom kernel operations. The source tree remains under the `sgl-kernel/` directory and the Python import path remains `sgl_kernel`.
|
||||
|
||||
## Installation
|
||||
Requires torch == 2.9.1
|
||||
Requires torch == 2.11.0
|
||||
|
||||
```bash
|
||||
# Latest version
|
||||
|
||||
Reference in New Issue
Block a user