diff --git a/.github/workflows/_pr-test-sgl-kernel-build.yml b/.github/workflows/_pr-test-sgl-kernel-build.yml index 13190a8d91..3cd07242db 100644 --- a/.github/workflows/_pr-test-sgl-kernel-build.yml +++ b/.github/workflows/_pr-test-sgl-kernel-build.yml @@ -50,7 +50,7 @@ jobs: strategy: matrix: include: - - python-version: "3.10" + - python-version: "3.11" cuda-version: "13.0" name: ${{ inputs.job_display_name }} steps: diff --git a/.github/workflows/_pr-test-stage.yml b/.github/workflows/_pr-test-stage.yml index 880a447799..9ee7bf4532 100644 --- a/.github/workflows/_pr-test-stage.yml +++ b/.github/workflows/_pr-test-stage.yml @@ -147,7 +147,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - name: Download artifacts (v6) if: ${{ fromJson(inputs.check_changes).sgl_kernel == 'true' && steps.rc.outputs.artifact_version == 'v6' }} @@ -155,7 +155,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - uses: ./.github/actions/download-rust-ext if: ${{ !inputs.skip_prebuilt_rust_ext }} diff --git a/.github/workflows/bot-bump-docs-version.yml b/.github/workflows/bot-bump-docs-version.yml index 5a53acdacb..c091369509 100644 --- a/.github/workflows/bot-bump-docs-version.yml +++ b/.github/workflows/bot-bump-docs-version.yml @@ -58,11 +58,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' - - - name: Install Python dependencies - run: | - pip install tomli + python-version: '3.12' - name: Configure Git and branch run: | diff --git a/.github/workflows/bot-bump-flashinfer-version.yml b/.github/workflows/bot-bump-flashinfer-version.yml index cc1cba930c..6a6ff2e2d1 100644 --- a/.github/workflows/bot-bump-flashinfer-version.yml +++ b/.github/workflows/bot-bump-flashinfer-version.yml @@ -24,11 +24,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' - - - name: Install Python dependencies - run: | - pip install tomli + python-version: '3.12' - name: Configure Git and branch run: | diff --git a/.github/workflows/bot-bump-kernel-version-to-sglang.yml b/.github/workflows/bot-bump-kernel-version-to-sglang.yml index b26192aba1..c338f8492e 100644 --- a/.github/workflows/bot-bump-kernel-version-to-sglang.yml +++ b/.github/workflows/bot-bump-kernel-version-to-sglang.yml @@ -22,11 +22,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' - - - name: Install Python dependencies - run: | - pip install tomli + python-version: '3.12' - name: Check if sync is needed id: check_sync diff --git a/.github/workflows/bot-bump-kernel-version.yml b/.github/workflows/bot-bump-kernel-version.yml index 91a808c6ab..a914829f35 100644 --- a/.github/workflows/bot-bump-kernel-version.yml +++ b/.github/workflows/bot-bump-kernel-version.yml @@ -24,11 +24,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' - - - name: Install Python dependencies - run: | - pip install tomli + python-version: '3.12' - name: Configure Git and branch run: | diff --git a/.github/workflows/bot-bump-sglang-version.yml b/.github/workflows/bot-bump-sglang-version.yml index 125229b303..80066e1d23 100644 --- a/.github/workflows/bot-bump-sglang-version.yml +++ b/.github/workflows/bot-bump-sglang-version.yml @@ -26,11 +26,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' - - - name: Install Python dependencies - run: | - pip install tomli + python-version: '3.12' - name: Configure Git and branch id: set_output diff --git a/.github/workflows/ci-coverage-overview.yml b/.github/workflows/ci-coverage-overview.yml index f0b5ea570c..afc2732fae 100644 --- a/.github/workflows/ci-coverage-overview.yml +++ b/.github/workflows/ci-coverage-overview.yml @@ -25,7 +25,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Generate Summary Report run: | @@ -41,7 +41,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Generate Tests by Folder Report run: | @@ -57,7 +57,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Generate Tests by Suite Report run: | @@ -73,7 +73,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Generate Tests by GPU Count Report run: | @@ -184,7 +184,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Generate JSON Report run: | diff --git a/.github/workflows/diffusion-ci-gt-gen.yml b/.github/workflows/diffusion-ci-gt-gen.yml index 3fe736e9ce..fefb434fd5 100644 --- a/.github/workflows/diffusion-ci-gt-gen.yml +++ b/.github/workflows/diffusion-ci-gt-gen.yml @@ -24,7 +24,7 @@ on: default: '' type: string kernel_artifact_run_id: - description: "Optional sgl-kernel wheel source: GitHub Actions run ID of a pr-test.yml run on the SAME commit as 'ref' that uploaded wheel-python3.10-cuda13.0. Use only when this branch's torch/ABI change makes the PyPI sglang-kernel wheel incompatible. Find it under Actions > pr-test; artifacts expire after 90 days." + description: "Optional sgl-kernel wheel source: GitHub Actions run ID of a pr-test.yml run on the SAME commit as 'ref' that uploaded wheel-python3.11-cuda13.0. Use only when this branch's torch/ABI change makes the PyPI sglang-kernel wheel incompatible. Find it under Actions > pr-test; artifacts expire after 90 days." required: false default: '' type: string @@ -204,7 +204,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - name: wheel-python3.10-cuda13.0 + name: wheel-python3.11-cuda13.0 run-id: ${{ inputs.kernel_artifact_run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} @@ -351,7 +351,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Verify write access to sgl-project/ci-data-diffusion if: ${{ inputs.publish }} @@ -403,7 +403,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - name: wheel-python3.10-cuda13.0 + name: wheel-python3.11-cuda13.0 run-id: ${{ inputs.kernel_artifact_run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} @@ -479,7 +479,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - name: wheel-python3.10-cuda13.0 + name: wheel-python3.11-cuda13.0 run-id: ${{ inputs.kernel_artifact_run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} @@ -557,7 +557,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - name: wheel-python3.10-cuda13.0 + name: wheel-python3.11-cuda13.0 run-id: ${{ inputs.kernel_artifact_run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} @@ -630,7 +630,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - name: wheel-python3.10-cuda13.0 + name: wheel-python3.11-cuda13.0 run-id: ${{ inputs.kernel_artifact_run_id }} github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/pr-test-jit-kernel.yml b/.github/workflows/pr-test-jit-kernel.yml index ef3c99f093..87ccf08127 100644 --- a/.github/workflows/pr-test-jit-kernel.yml +++ b/.github/workflows/pr-test-jit-kernel.yml @@ -99,7 +99,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda13.0 + pattern: wheel-python3.11-cuda13.0 - uses: ./.github/actions/download-rust-ext with: diff --git a/.github/workflows/pr-test-multimodal-gen.yml b/.github/workflows/pr-test-multimodal-gen.yml index 27c3522673..e83fbd0969 100644 --- a/.github/workflows/pr-test-multimodal-gen.yml +++ b/.github/workflows/pr-test-multimodal-gen.yml @@ -65,7 +65,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Compute partitions id: compute @@ -101,7 +101,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - name: Install dependencies timeout-minutes: 20 @@ -168,7 +168,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - name: Install dependencies timeout-minutes: 20 @@ -239,7 +239,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - name: Install dependencies timeout-minutes: 20 @@ -304,7 +304,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - name: Install dependencies timeout-minutes: 20 @@ -374,7 +374,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - name: Install dependencies timeout-minutes: 20 @@ -419,7 +419,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - name: Install dependencies timeout-minutes: 20 @@ -505,7 +505,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - name: Install dependencies timeout-minutes: 20 @@ -548,7 +548,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Download all execution reports uses: actions/download-artifact@v4 diff --git a/.github/workflows/pr-test-sgl-kernel.yml b/.github/workflows/pr-test-sgl-kernel.yml index 4c7b926e26..95312b5edd 100644 --- a/.github/workflows/pr-test-sgl-kernel.yml +++ b/.github/workflows/pr-test-sgl-kernel.yml @@ -56,7 +56,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - uses: ./.github/actions/download-rust-ext with: @@ -95,7 +95,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - uses: ./.github/actions/download-rust-ext with: @@ -146,7 +146,7 @@ jobs: with: path: python/sglang/kernels/aot/dist/ merge-multiple: true - pattern: wheel-python3.10-cuda* + pattern: wheel-python3.11-cuda* - uses: ./.github/actions/download-rust-ext with: @@ -181,7 +181,7 @@ jobs: # with: # path: python/sglang/kernels/aot/dist/ # merge-multiple: true - # pattern: wheel-python3.10-cuda* + # pattern: wheel-python3.11-cuda* # - name: Install dependencies # run: | diff --git a/.github/workflows/release-pypi-nightly.yml b/.github/workflows/release-pypi-nightly.yml index 6bd6aaa8fe..c3afb7b1b9 100644 --- a/.github/workflows/release-pypi-nightly.yml +++ b/.github/workflows/release-pypi-nightly.yml @@ -161,7 +161,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Update wheel index run: | diff --git a/.github/workflows/release-pypi-pr.yml b/.github/workflows/release-pypi-pr.yml index 1da472f994..97ec9f8539 100644 --- a/.github/workflows/release-pypi-pr.yml +++ b/.github/workflows/release-pypi-pr.yml @@ -170,7 +170,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Update wheel index run: | diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index dd46f7e2cb..5074bf1a67 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -104,7 +104,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Upload to pypi run: | diff --git a/.github/workflows/release-whl-deepep.yml b/.github/workflows/release-whl-deepep.yml index 7a0dd8880a..90ace86f53 100644 --- a/.github/workflows/release-whl-deepep.yml +++ b/.github/workflows/release-whl-deepep.yml @@ -26,7 +26,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.10", "3.11", "3.12", "3.13"] + python-version: ["3.11", "3.12", "3.13"] arch: [x86_64, aarch64] include: - arch: x86_64 diff --git a/.github/workflows/release-whl-kernel.yml b/.github/workflows/release-whl-kernel.yml index 876aed4fbe..a2eb159ced 100644 --- a/.github/workflows/release-whl-kernel.yml +++ b/.github/workflows/release-whl-kernel.yml @@ -39,7 +39,7 @@ jobs: (github.event_name == 'push' || github.event.inputs.target == 'all' || github.event.inputs.target == 'cu130') strategy: matrix: - python-version: ["3.10"] + python-version: ["3.11"] cuda-version: ["13.0"] arch: [x86_64, aarch64] include: @@ -174,8 +174,9 @@ jobs: matrix: python-version: ["3.10"] # ROCm 10.0.0 builds inside a Python 3.12 container; the wheel is still - # tagged cp310-abi3 (wheel.py-api in pyproject.toml), so it stays under - # the same python-version leg as the 7.x wheels. + # tagged cp310-abi3 (build_rocm.sh sets wheel.py-api to cp310 for every + # ROCm flavor), so it stays under the same python-version leg as the 7.x + # wheels. # # A dispatch that names one flavor builds only that flavor. Every extra # leg is another image build on the shared AMD node, and its release job diff --git a/.github/workflows/runner-utilization.yml b/.github/workflows/runner-utilization.yml index eba1fe2a00..a63daf79e4 100644 --- a/.github/workflows/runner-utilization.yml +++ b/.github/workflows/runner-utilization.yml @@ -50,7 +50,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Unit-test report logic # Pure-logic tests (stdlib only, no API calls) — guards the diff --git a/.github/workflows/slash-command-handler.yml b/.github/workflows/slash-command-handler.yml index 99884117d3..beb3545e03 100644 --- a/.github/workflows/slash-command-handler.yml +++ b/.github/workflows/slash-command-handler.yml @@ -92,7 +92,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Install dependencies run: | diff --git a/.github/workflows/weekly-update-est-time.yml b/.github/workflows/weekly-update-est-time.yml index 970e60e8f2..970a5521c6 100644 --- a/.github/workflows/weekly-update-est-time.yml +++ b/.github/workflows/weekly-update-est-time.yml @@ -21,7 +21,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.10' + python-version: '3.12' - name: Update est_time values env: diff --git a/3rdparty/amd/wheel/sgl-kernel/build_rocm.sh b/3rdparty/amd/wheel/sgl-kernel/build_rocm.sh index 906a5fb2af..6b6fa4cbb4 100755 --- a/3rdparty/amd/wheel/sgl-kernel/build_rocm.sh +++ b/3rdparty/amd/wheel/sgl-kernel/build_rocm.sh @@ -56,6 +56,19 @@ if [[ "${ROCM_VERSION}" == "1000" ]]; then WHEEL_ROCM_VERSION="1000" fi +# The build reuses the CUDA pyproject.toml, which requires Python 3.11 and tags +# its wheel cp311-abi3. The ROCm 7.2.0 image and amd-sglang still run on Python +# 3.10, so the ROCm wheels keep the Python 3.10 floor and the cp310-abi3 tag. +sed -i \ + -e 's/^requires-python = ">=3.11"$/requires-python = ">=3.10"/' \ + -e 's/^wheel.py-api = "cp311"$/wheel.py-api = "cp310"/' \ + pyproject.toml +if ! grep -qx 'requires-python = ">=3.10"' pyproject.toml \ + || ! grep -qx 'wheel.py-api = "cp310"' pyproject.toml; then + echo "ERROR: could not set the ROCm Python 3.10 / cp310 metadata in pyproject.toml." >&2 + exit 1 +fi + # Pull and run the latest image echo "Pulling Docker image: ${IMAGE}" docker pull "${IMAGE}" @@ -86,5 +99,6 @@ ${ROCM_SETUP} rm -rf CMakeLists.txt && mv CMakeLists_rocm.txt CMakeLists.txt && \ ${PYTHON_ROOT_PATH}/python rocm_hipify.py && \ ${PYTHON_ROOT_PATH}/python -m uv build --wheel -Cbuild-dir=build . --color=always --no-build-isolation && \ - ./rename_wheels_rocm.sh ${WHEEL_ROCM_VERSION} + ./rename_wheels_rocm.sh ${WHEEL_ROCM_VERSION} && \ + ${PYTHON_ROOT_PATH}/pip install --dry-run --no-deps dist/*.whl " diff --git a/python/pyproject.toml b/python/pyproject.toml index a1bee4d89b..c6d53beebc 100755 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -30,8 +30,6 @@ dependencies = [ "build", "compressed-tensors==0.18.0", "cuda-python>=13.0", - # Transitive dep of flashinfer-python, pinned because 1.6.0rc6 shipped no cp310 linux x86_64 wheel. - "cuda-tile==1.6.0rc5", "datasets", "decord2 ; sys_platform == 'linux' and (platform_machine == 'aarch64' or platform_machine == 'arm64' or platform_machine == 'armv7l')", "distro", diff --git a/python/sglang/benchmark/dspark_sps_profiler.py b/python/sglang/benchmark/dspark_sps_profiler.py index 88a3a13ca5..4f0595d4cf 100644 --- a/python/sglang/benchmark/dspark_sps_profiler.py +++ b/python/sglang/benchmark/dspark_sps_profiler.py @@ -1,5 +1,5 @@ # /// script -# requires-python = ">=3.10" +# requires-python = ">=3.11" # dependencies = ["msgspec", "requests", "plotly", "kaleido", "numpy"] # /// from __future__ import annotations diff --git a/python/sglang/kernels/aot/Dockerfile b/python/sglang/kernels/aot/Dockerfile index 730d58a1ba..302cda6e49 100644 --- a/python/sglang/kernels/aot/Dockerfile +++ b/python/sglang/kernels/aot/Dockerfile @@ -7,9 +7,9 @@ FROM ${BASE_IMG}:cuda${CUDA_VERSION} AS deps # Overridable build arguments ARG ARCH=x86_64 ARG CUDA_VERSION=13.0 -ARG PYTHON_VERSION=3.10 -# Manylinux python path tag, e.g. cp310-cp310 / cp312-cp312 -ARG PYTHON_TAG=cp310-cp310 +ARG PYTHON_VERSION=3.11 +# Manylinux python path tag, e.g. cp311-cp311 / cp312-cp312 +ARG PYTHON_TAG=cp311-cp311 ARG CMAKE_VERSION_MAJOR=3.31 ARG CMAKE_VERSION_MINOR=1 # Install ccache 4.12.1 from source for CUDA support (yum provides old 3.7.7) diff --git a/python/sglang/kernels/aot/README.md b/python/sglang/kernels/aot/README.md index 21251c4d34..421dcf75c7 100644 --- a/python/sglang/kernels/aot/README.md +++ b/python/sglang/kernels/aot/README.md @@ -22,7 +22,7 @@ pip3 install sglang-kernel --upgrade ## Building from Source Requires - CMake ≥3.31, -- Python ≥3.10 +- Python ≥3.11 - scikit-build-core - ninja(optional) diff --git a/python/sglang/kernels/aot/build.sh b/python/sglang/kernels/aot/build.sh index a290c8d6ab..2c14cd495c 100755 --- a/python/sglang/kernels/aot/build.sh +++ b/python/sglang/kernels/aot/build.sh @@ -6,7 +6,7 @@ if [ $# -lt 2 ]; then exit 1 fi -PYTHON_VERSION="$1" # e.g. 3.10 +PYTHON_VERSION="$1" # e.g. 3.11 CUDA_VERSION="$2" # e.g. 12.9 ARCH="${3:-$(uname -i)}" # optional override diff --git a/python/sglang/kernels/aot/pyproject.toml b/python/sglang/kernels/aot/pyproject.toml index 8d008573d0..01ad0361c3 100644 --- a/python/sglang/kernels/aot/pyproject.toml +++ b/python/sglang/kernels/aot/pyproject.toml @@ -14,7 +14,7 @@ authors = [ ] description = "Kernel Library for SGLang" readme = "README.md" -requires-python = ">=3.10" +requires-python = ">=3.11" license = { file = "LICENSE" } classifiers = [ "Programming Language :: Python :: 3", @@ -37,6 +37,6 @@ exclude = [ cmake.build-type = "Release" minimum-version = "build-system.requires" -wheel.py-api = "cp310" +wheel.py-api = "cp311" wheel.license-files = [] wheel.packages = ["python/sgl_kernel"] diff --git a/scripts/build_sgl_deep_gemm.sh b/scripts/build_sgl_deep_gemm.sh index 834d2efdba..e96375da6e 100755 --- a/scripts/build_sgl_deep_gemm.sh +++ b/scripts/build_sgl_deep_gemm.sh @@ -2,7 +2,7 @@ # Build sgl-deep-gemm wheel inside a CUDA-versioned container. # # Usage: build_sgl_deep_gemm.sh [ARCH] -# PYTHON_VERSION: e.g. 3.10 +# PYTHON_VERSION: e.g. 3.12 # CUDA_VERSION: e.g. 13.0 # DEEPGEMM_SRC: path to a checkout of sgl-project/DeepGEMM # ARCH: x86_64 (default) or aarch64 diff --git a/scripts/build_sgl_deepep.sh b/scripts/build_sgl_deepep.sh index b5d3fa596f..cc53a6456b 100755 --- a/scripts/build_sgl_deepep.sh +++ b/scripts/build_sgl_deepep.sh @@ -13,7 +13,7 @@ usage() { cat <<'EOF' Usage: build_sgl_deepep.sh [architecture] - python-version: 3.10, 3.11, 3.12, or 3.13 + python-version: 3.11, 3.12, or 3.13 cuda-version: 13.0 deepep-source: DeepEP checkout containing the sgl_deep_ep package architecture: x86_64 or aarch64 (defaults to the current machine) @@ -37,7 +37,7 @@ if [[ "${ARCHITECTURE}" == arm64 ]]; then fi case "${PYTHON_VERSION}" in - 3.10|3.11|3.12|3.13) ;; + 3.11|3.12|3.13) ;; *) echo "Unsupported Python version: ${PYTHON_VERSION}" >&2 exit 2 diff --git a/scripts/ci/cuda/ci_install_dependency.sh b/scripts/ci/cuda/ci_install_dependency.sh index 5c890ec60a..06f4734ce0 100755 --- a/scripts/ci/cuda/ci_install_dependency.sh +++ b/scripts/ci/cuda/ci_install_dependency.sh @@ -679,7 +679,7 @@ install_sglang_kernel() { else WHEEL_ARCH="x86_64" fi - KERNEL_WHL=$(ls python/sglang/kernels/aot/dist/sglang_kernel-${SGL_KERNEL_VERSION_FROM_KERNEL}+${CU_VERSION}-cp310-abi3-manylinux2014_${WHEEL_ARCH}.whl 2>/dev/null | head -1 || true) + KERNEL_WHL=$(ls python/sglang/kernels/aot/dist/sglang_kernel-${SGL_KERNEL_VERSION_FROM_KERNEL}+${CU_VERSION}-cp311-abi3-manylinux2014_${WHEEL_ARCH}.whl 2>/dev/null | head -1 || true) if [ -z "$KERNEL_WHL" ]; then echo "ERROR: No matching sgl-kernel wheel found in python/sglang/kernels/aot/dist/ for version ${SGL_KERNEL_VERSION_FROM_KERNEL} arch ${WHEEL_ARCH} cuda ${CU_VERSION}" ls -alh python/sglang/kernels/aot/dist/ diff --git a/scripts/release/bump_kernel_version_to_sglang.py b/scripts/release/bump_kernel_version_to_sglang.py index 9250f2ff8f..be86139367 100755 --- a/scripts/release/bump_kernel_version_to_sglang.py +++ b/scripts/release/bump_kernel_version_to_sglang.py @@ -9,13 +9,9 @@ Updates: import re import sys +import tomllib from pathlib import Path -try: - import tomllib # Python 3.11+ -except ImportError: - import tomli as tomllib # Fallback for older Python versions - def get_kernel_version_from_source() -> str: """Extract the version from the AOT source pyproject.""" diff --git a/scripts/release/check_kernel_version_to_sglang.py b/scripts/release/check_kernel_version_to_sglang.py index 97a185d976..3900bb2ff2 100755 --- a/scripts/release/check_kernel_version_to_sglang.py +++ b/scripts/release/check_kernel_version_to_sglang.py @@ -10,13 +10,9 @@ Sets GitHub Actions output variables to indicate if sync is needed. import os import re import sys +import tomllib from pathlib import Path -try: - import tomllib # Python 3.11+ -except ImportError: - import tomli as tomllib # Fallback for older Python versions - def get_kernel_version_from_source() -> str: """Extract the version from the AOT source pyproject.""" diff --git a/scripts/release/utils.py b/scripts/release/utils.py index da212734b2..5ec92f4544 100644 --- a/scripts/release/utils.py +++ b/scripts/release/utils.py @@ -1,13 +1,9 @@ import re import sys +import tomllib from pathlib import Path from typing import List, Tuple -try: - import tomllib # Python 3.11+ -except ImportError: - import tomli as tomllib # Fallback for older Python versions - def normalize_version(version: str) -> str: """Remove 'v' prefix from version string if present.""" diff --git a/scripts/update_kernel_whl_index.py b/scripts/update_kernel_whl_index.py index 46845479b1..ea1504a0e4 100644 --- a/scripts/update_kernel_whl_index.py +++ b/scripts/update_kernel_whl_index.py @@ -27,7 +27,7 @@ def check_wheel_cuda_version(path_name, target_cuda_version): return match.group(1) == target_cuda_version # An untagged wheel is the default-CUDA build, e.g. - # sglang_kernel-0.4.0-cp310-abi3-manylinux2014_x86_64.whl (PyPI rejects + # sglang_kernel-0.4.0-cp311-abi3-manylinux2014_x86_64.whl (PyPI rejects # local versions, so that upload strips the tag). return target_cuda_version == DEFAULT_CUDA_VERSION diff --git a/test/registered/core/test_srt_empty_deps.py b/test/registered/core/test_srt_empty_deps.py index 192a8b7d9c..ff9df39fe1 100644 --- a/test/registered/core/test_srt_empty_deps.py +++ b/test/registered/core/test_srt_empty_deps.py @@ -33,11 +33,7 @@ TORCH_PULLING_PACKAGES = frozenset( def _parse_runtime_base() -> set: """Parse runtime_base package names from pyproject_other.toml.""" - # Try tomllib (3.11+) or tomli - try: - import tomllib - except ModuleNotFoundError: - import tomli as tomllib # type: ignore[no-redef] + import tomllib toml_path = Path(__file__).resolve().parents[3] / "python" / "pyproject_other.toml" if not toml_path.exists():