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
0a304870
Unverified
Commit
0a304870
authored
Oct 12, 2025
by
Zaili Wang
Committed by
GitHub
Oct 11, 2025
Browse files
fix Xeon CI (#11454)
parent
8fdcd98e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
13 deletions
+5
-13
.github/workflows/pr-test-xeon.yml
.github/workflows/pr-test-xeon.yml
+4
-12
docker/Dockerfile.xeon
docker/Dockerfile.xeon
+1
-1
No files found.
.github/workflows/pr-test-xeon.yml
View file @
0a304870
...
@@ -41,10 +41,12 @@ jobs:
...
@@ -41,10 +41,12 @@ jobs:
run
:
|
run
:
|
version=$(cat python/sglang/version.py | cut -d'"' -f2)
version=$(cat python/sglang/version.py | cut -d'"' -f2)
tag=v${version}-xeon
tag=v${version}-xeon
PR_REPO=${{ github.event.pull_request.head.repo.clone_url }}
PR_HEAD_REF=${{ github.head_ref }}
docker build \
docker build \
--build-arg SGLANG_REPO=$
{{ github.event.pull_request.head.repo.clone_url }
} \
${PR_REPO:+
--build-arg SGLANG_REPO=$
PR_REPO
} \
--build-arg VER_SGLANG=$
{{ github.head_ref }
} \
${PR_HEAD_REF:+
--build-arg VER_SGLANG=$
PR_HEAD_REF
} \
. -f docker/Dockerfile.xeon -t sglang_xeon --no-cache
. -f docker/Dockerfile.xeon -t sglang_xeon --no-cache
-
name
:
Run container
-
name
:
Run container
...
@@ -55,15 +57,6 @@ jobs:
...
@@ -55,15 +57,6 @@ jobs:
--name ci_sglang_xeon \
--name ci_sglang_xeon \
sglang_xeon
sglang_xeon
-
name
:
Install dependencies
timeout-minutes
:
20
run
:
|
docker exec ci_sglang_xeon bash -c "python3 -m pip install --upgrade pip"
docker exec ci_sglang_xeon pip uninstall sgl-kernel -y || true
docker exec -w /sglang-checkout/sgl-kernel ci_sglang_xeon bash -c "cp pyproject_cpu.toml pyproject.toml && pip install -v ."
docker exec -w /sglang-checkout/ ci_sglang_xeon bash -c "rm -rf python/pyproject.toml && mv python/pyproject_other.toml python/pyproject.toml"
docker exec -w /sglang-checkout/ ci_sglang_xeon bash -c "pip install -e "python[dev_cpu]""
-
name
:
Check AMX support
-
name
:
Check AMX support
id
:
check_amx
id
:
check_amx
timeout-minutes
:
5
timeout-minutes
:
5
...
@@ -72,7 +65,6 @@ jobs:
...
@@ -72,7 +65,6 @@ jobs:
bash -c "python3 -c 'import torch; import sgl_kernel; assert torch._C._cpu._is_amx_tile_supported(); assert hasattr(torch.ops.sgl_kernel, \"convert_weight_packed\"); '"
bash -c "python3 -c 'import torch; import sgl_kernel; assert torch._C._cpu._is_amx_tile_supported(); assert hasattr(torch.ops.sgl_kernel, \"convert_weight_packed\"); '"
-
name
:
Run unit tests
-
name
:
Run unit tests
if
:
steps.check_amx.outcome == 'success'
timeout-minutes
:
36
timeout-minutes
:
36
run
:
|
run
:
|
docker exec -w /sglang-checkout/ ci_sglang_xeon \
docker exec -w /sglang-checkout/ ci_sglang_xeon \
...
...
docker/Dockerfile.xeon
View file @
0a304870
...
@@ -35,7 +35,7 @@ ENV CONDA_PREFIX=/sgl-workspace/miniforge3
...
@@ -35,7 +35,7 @@ ENV CONDA_PREFIX=/sgl-workspace/miniforge3
RUN pip config set global.index-url https://download.pytorch.org/whl/cpu && \
RUN pip config set global.index-url https://download.pytorch.org/whl/cpu && \
pip config set global.extra-index-url https://pypi.org/simple
pip config set global.extra-index-url https://pypi.org/simple
RUN git clone ${SGLANG_REPO} && \
RUN git clone ${SGLANG_REPO}
sglang
&& \
cd sglang && \
cd sglang && \
git checkout ${VER_SGLANG} && \
git checkout ${VER_SGLANG} && \
cd python && \
cd python && \
...
...
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