Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
b75275b6
Unverified
Commit
b75275b6
authored
Apr 11, 2025
by
Yineng Zhang
Committed by
GitHub
Apr 11, 2025
Browse files
feat: add cu128 identifier for sgl-kernel (#5287)
parent
7074e9ca
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
.github/workflows/release-whl-kernel-cu128.yml
.github/workflows/release-whl-kernel-cu128.yml
+1
-1
sgl-kernel/build.sh
sgl-kernel/build.sh
+0
-1
sgl-kernel/rename_wheels.sh
sgl-kernel/rename_wheels.sh
+7
-3
No files found.
.github/workflows/release-whl-kernel-cu128.yml
View file @
b75275b6
...
@@ -14,7 +14,7 @@ on:
...
@@ -14,7 +14,7 @@ on:
jobs
:
jobs
:
build-wheels
:
build-wheels
:
if
:
github.repository == 'sgl-project/sglang'
if
:
github.repository == 'sgl-project/sglang'
runs-on
:
ubuntu-latest
runs-on
:
sgl-kernel-build-node
strategy
:
strategy
:
matrix
:
matrix
:
python-version
:
[
'
3.9'
]
python-version
:
[
'
3.9'
]
...
...
sgl-kernel/build.sh
View file @
b75275b6
...
@@ -4,7 +4,6 @@ set -ex
...
@@ -4,7 +4,6 @@ set -ex
PYTHON_VERSION
=
$1
PYTHON_VERSION
=
$1
CUDA_VERSION
=
$2
CUDA_VERSION
=
$2
PYTHON_ROOT_PATH
=
/opt/python/cp
${
PYTHON_VERSION
//.
}
-cp
${
PYTHON_VERSION
//.
}
PYTHON_ROOT_PATH
=
/opt/python/cp
${
PYTHON_VERSION
//.
}
-cp
${
PYTHON_VERSION
//.
}
ENABLE_SM90A
=
$((
${
CUDA_VERSION
%.*
}
>=
12
? ON : OFF
))
if
[
${
CUDA_VERSION
}
=
"12.8"
]
;
then
if
[
${
CUDA_VERSION
}
=
"12.8"
]
;
then
DOCKER_IMAGE
=
"pytorch/manylinux2_28-builder:cuda
${
CUDA_VERSION
}
"
DOCKER_IMAGE
=
"pytorch/manylinux2_28-builder:cuda
${
CUDA_VERSION
}
"
...
...
sgl-kernel/rename_wheels.sh
View file @
b75275b6
...
@@ -5,13 +5,17 @@ WHEEL_DIR="dist"
...
@@ -5,13 +5,17 @@ WHEEL_DIR="dist"
wheel_files
=(
$WHEEL_DIR
/
*
.whl
)
wheel_files
=(
$WHEEL_DIR
/
*
.whl
)
for
wheel
in
"
${
wheel_files
[@]
}
"
;
do
for
wheel
in
"
${
wheel_files
[@]
}
"
;
do
new_wheel
=
"
${
wheel
/linux/manylinux2014
}
"
intermediate_wheel
=
"
${
wheel
/linux/manylinux2014
}
"
if
ls
/usr/local/ |
grep
-q
"12.8"
;
then
new_wheel
=
"
${
intermediate_wheel
/-cp39/+cu128-cp39
}
"
else
new_wheel
=
"
$intermediate_wheel
"
fi
if
[[
"
$wheel
"
!=
"
$new_wheel
"
]]
;
then
if
[[
"
$wheel
"
!=
"
$new_wheel
"
]]
;
then
echo
"Renaming
$wheel
to
$new_wheel
"
echo
"Renaming
$wheel
to
$new_wheel
"
mv
--
"
$wheel
"
"
$new_wheel
"
mv
--
"
$wheel
"
"
$new_wheel
"
fi
fi
done
done
echo
"Wheel renaming completed."
echo
"Wheel renaming completed."
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment