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
80aa8ca8
Unverified
Commit
80aa8ca8
authored
Apr 11, 2025
by
Yineng Zhang
Committed by
GitHub
Apr 11, 2025
Browse files
fix: update update_wheel_index for cu128 (#5300)
parent
4aa6bab0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
scripts/update_kernel_whl_index.py
scripts/update_kernel_whl_index.py
+1
-1
No files found.
scripts/update_kernel_whl_index.py
View file @
80aa8ca8
...
@@ -14,7 +14,7 @@ def update_wheel_index(cuda_version="118"):
...
@@ -14,7 +14,7 @@ def update_wheel_index(cuda_version="118"):
for
path
in
sorted
(
pathlib
.
Path
(
"sgl-kernel/dist"
).
glob
(
"*.whl"
)):
for
path
in
sorted
(
pathlib
.
Path
(
"sgl-kernel/dist"
).
glob
(
"*.whl"
)):
with
open
(
path
,
"rb"
)
as
f
:
with
open
(
path
,
"rb"
)
as
f
:
sha256
=
hashlib
.
sha256
(
f
.
read
()).
hexdigest
()
sha256
=
hashlib
.
sha256
(
f
.
read
()).
hexdigest
()
ver
=
re
.
findall
(
r
"sgl_kernel-([0-9.]+(?:\.post[0-9]+)?)-"
,
path
.
name
)[
0
]
ver
=
re
.
findall
(
r
"sgl_kernel-([0-9.]+(?:\.post[0-9]+)?)
(?:\+cu[0-9]+)?
-"
,
path
.
name
)[
0
]
full_url
=
f
"
{
base_url
}
/v
{
ver
}
/
{
path
.
name
}
#sha256=
{
sha256
}
"
full_url
=
f
"
{
base_url
}
/v
{
ver
}
/
{
path
.
name
}
#sha256=
{
sha256
}
"
with
(
index_dir
/
"index.html"
).
open
(
"a"
)
as
f
:
with
(
index_dir
/
"index.html"
).
open
(
"a"
)
as
f
:
f
.
write
(
f
'<a href="
{
full_url
}
">
{
path
.
name
}
</a><br>
\n
'
)
f
.
write
(
f
'<a href="
{
full_url
}
">
{
path
.
name
}
</a><br>
\n
'
)
...
...
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