Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e0b056e4
Unverified
Commit
e0b056e4
authored
Aug 21, 2025
by
youkaichao
Committed by
GitHub
Aug 21, 2025
Browse files
[ci/build] Fix abi tag for aarch64 (#23329)
Signed-off-by:
youkaichao
<
youkaichao@gmail.com
>
parent
79f05e44
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
7 deletions
+32
-7
.buildkite/generate_index.py
.buildkite/generate_index.py
+7
-2
.buildkite/scripts/upload-wheels.sh
.buildkite/scripts/upload-wheels.sh
+13
-2
setup.py
setup.py
+12
-3
No files found.
.buildkite/generate_index.py
View file @
e0b056e4
...
...
@@ -22,11 +22,16 @@ filename = os.path.basename(args.wheel)
with
open
(
"index.html"
,
"w"
)
as
f
:
print
(
f
"Generated index.html for
{
args
.
wheel
}
"
)
# sync the abi tag with .buildkite/scripts/upload-wheels.sh
if
"x86_64"
in
filename
:
x86_wheel
=
filename
arm_wheel
=
filename
.
replace
(
"x86_64"
,
"aarch64"
)
arm_wheel
=
filename
.
replace
(
"x86_64"
,
"aarch64"
).
replace
(
"manylinux1"
,
"manylinux2014"
)
elif
"aarch64"
in
filename
:
x86_wheel
=
filename
.
replace
(
"aarch64"
,
"x86_64"
)
x86_wheel
=
filename
.
replace
(
"aarch64"
,
"x86_64"
).
replace
(
"manylinux2014"
,
"manylinux1"
)
arm_wheel
=
filename
else
:
raise
ValueError
(
f
"Unsupported wheel:
{
filename
}
"
)
...
...
.buildkite/scripts/upload-wheels.sh
View file @
e0b056e4
...
...
@@ -14,8 +14,19 @@ fi
# Get the single wheel file
wheel
=
"
${
wheel_files
[0]
}
"
# Rename 'linux' to 'manylinux1' in the wheel filename
new_wheel
=
"
${
wheel
/linux/manylinux1
}
"
# Detect architecture and rename 'linux' to appropriate manylinux version
arch
=
$(
uname
-m
)
if
[[
$arch
==
"x86_64"
]]
;
then
manylinux_version
=
"manylinux1"
elif
[[
$arch
==
"aarch64"
]]
;
then
manylinux_version
=
"manylinux2014"
else
echo
"Warning: Unknown architecture
$arch
, using manylinux1 as default"
manylinux_version
=
"manylinux1"
fi
# Rename 'linux' to the appropriate manylinux version in the wheel filename
new_wheel
=
"
${
wheel
/linux/
$manylinux_version
}
"
mv
--
"
$wheel
"
"
$new_wheel
"
wheel
=
"
$new_wheel
"
...
...
setup.py
View file @
e0b056e4
...
...
@@ -643,16 +643,25 @@ if envs.VLLM_USE_PRECOMPILED:
if
wheel_location
is
not
None
:
wheel_url
=
wheel_location
else
:
import
platform
arch
=
platform
.
machine
()
if
arch
==
"x86_64"
:
wheel_tag
=
"manylinux1_x86_64"
elif
arch
==
"aarch64"
:
wheel_tag
=
"manylinux2014_aarch64"
else
:
raise
ValueError
(
f
"Unsupported architecture:
{
arch
}
"
)
base_commit
=
precompiled_wheel_utils
.
get_base_commit_in_main_branch
()
wheel_url
=
f
"https://wheels.vllm.ai/
{
base_commit
}
/vllm-1.0.0.dev-cp38-abi3-manylinux1_x86_64.whl"
wheel_url
=
f
"https://wheels.vllm.ai/
{
base_commit
}
/vllm-1.0.0.dev-cp38-abi3-
{
wheel_tag
}
.whl"
nightly_wheel_url
=
f
"https://wheels.vllm.ai/nightly/vllm-1.0.0.dev-cp38-abi3-
{
wheel_tag
}
.whl"
from
urllib.request
import
urlopen
try
:
with
urlopen
(
wheel_url
)
as
resp
:
if
resp
.
status
!=
200
:
wheel_url
=
"https://wheels.vllm.ai/nightly/vllm-1.0.0.dev-cp38-abi3-manylinux1_x86_64.whl"
wheel_url
=
nightly_wheel_url
except
Exception
as
e
:
print
(
f
"[warn] Falling back to nightly wheel:
{
e
}
"
)
wheel_url
=
"https://wheels.vllm.ai/nightly/vllm-1.0.0.dev-cp38-abi3-manylinux1_x86_64.whl"
wheel_url
=
nightly_wheel_url
patch
=
precompiled_wheel_utils
.
extract_precompiled_and_patch_package
(
wheel_url
)
...
...
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