Skip to content

Commit 5080a2b

Browse files
committed
Try
1 parent a7692f6 commit 5080a2b

File tree

2 files changed

+29
-28
lines changed

2 files changed

+29
-28
lines changed

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,25 @@ env:
99
IMAGE: zappi/vllm-openai
1010

1111
jobs:
12+
build-triton-wheel-arm64:
13+
runs-on: ubuntu-24.04-arm
14+
concurrency: arm64
15+
steps:
16+
- name: Build wheels
17+
uses: pypa/[email protected]
18+
env:
19+
CIBW_BEFORE_ALL: "dnf install clang lld -y"
20+
CIBW_BUILD: "cp312-manylinux_aarch64"
21+
CIBW_ENVIRONMENT: "MAX_JOBS=4 TRITON_BUILD_WITH_CLANG_LLD=1"
22+
with:
23+
package-dir: python
24+
output-dir: wheelhouse
25+
- name: Upload wheels
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: triton-wheels-linux-arm64
29+
path: ./wheelhouse/*.whl
30+
1231
build-amd64:
1332
runs-on: ubuntu-latest
1433
concurrency: amd64
@@ -49,6 +68,7 @@ jobs:
4968

5069
build-arm64:
5170
runs-on: ubuntu-latest
71+
needs: build-triton-wheel-arm64
5272
concurrency: arm64
5373
steps:
5474
- name: Free additional disk space
@@ -66,6 +86,11 @@ jobs:
6686
df -h
6787
- name: Checkout
6888
uses: actions/checkout@v4
89+
- name: Download a single artifact
90+
uses: actions/download-artifact@v5
91+
with:
92+
name: triton-wheels-linux-arm64
93+
path: ./wheelhouse/
6994
- name: Prepare image metadata
7095
id: metadata
7196
uses: docker/metadata-action@v5

Dockerfile.arm64

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,5 @@
1-
FROM python:3.12-slim AS triton-builder
1+
FROM vllm/vllm-openai:v0.10.2
22

3-
RUN apt-get update -qq && \
4-
apt-get install -qq -y \
5-
build-essential \
6-
clang \
7-
cmake \
8-
git \
9-
lld \
10-
llvm && \
11-
rm -rf /var/lib/apt/lists/*
12-
13-
RUN git clone https://github.com/triton-lang/triton.git /tmp/triton \
14-
--depth 1 \
15-
--branch v3.2.0
16-
17-
ARG TRITON_BUILD_WITH_CLANG_LLD=true
18-
RUN --mount=type=cache,target=/root/.cache/pip \
19-
cd /tmp/triton && \
20-
pip install ninja cmake wheel pybind11 && \
21-
pip wheel ./python --wheel-dir /tmp/wheels
22-
23-
FROM vllm/vllm-openai:v0.10.2 AS final
24-
25-
COPY --from=triton-builder /tmp/wheels/*.whl /tmp/wheels/
26-
27-
RUN --mount=type=cache,target=/root/.cache/uv \
28-
uv pip install --system /tmp/wheels/*.whl && \
29-
rm -rf /tmp/wheels
3+
RUN --mount=type=bind,source=./wheelhouse,target=/wheelhouse \
4+
--mount=type=cache,target=/root/.cache/uv \
5+
uv pip install --system /wheelhouse/*.whl

0 commit comments

Comments
 (0)