Skip to content

Commit da64ff7

Browse files
zhyncsjimoosciuc
authored andcommitted
feat: add cu128 identifier for sgl-kernel (sgl-project#5287)
1 parent d055579 commit da64ff7

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/release-whl-kernel-cu128.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
build-wheels:
1616
if: github.repository == 'sgl-project/sglang'
17-
runs-on: ubuntu-latest
17+
runs-on: sgl-kernel-build-node
1818
strategy:
1919
matrix:
2020
python-version: ['3.9']

sgl-kernel/build.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ set -ex
44
PYTHON_VERSION=$1
55
CUDA_VERSION=$2
66
PYTHON_ROOT_PATH=/opt/python/cp${PYTHON_VERSION//.}-cp${PYTHON_VERSION//.}
7-
ENABLE_SM90A=$(( ${CUDA_VERSION%.*} >= 12 ? ON : OFF ))
87

98
if [ ${CUDA_VERSION} = "12.8" ]; then
109
DOCKER_IMAGE="pytorch/manylinux2_28-builder:cuda${CUDA_VERSION}"

sgl-kernel/rename_wheels.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ WHEEL_DIR="dist"
55

66
wheel_files=($WHEEL_DIR/*.whl)
77
for wheel in "${wheel_files[@]}"; do
8-
new_wheel="${wheel/linux/manylinux2014}"
8+
intermediate_wheel="${wheel/linux/manylinux2014}"
9+
10+
if ls /usr/local/ | grep -q "12.8"; then
11+
new_wheel="${intermediate_wheel/-cp39/+cu128-cp39}"
12+
else
13+
new_wheel="$intermediate_wheel"
14+
fi
915

1016
if [[ "$wheel" != "$new_wheel" ]]; then
1117
echo "Renaming $wheel to $new_wheel"
1218
mv -- "$wheel" "$new_wheel"
13-
1419
fi
1520
done
16-
1721
echo "Wheel renaming completed."

0 commit comments

Comments
 (0)