Skip to content

Commit 0166403

Browse files
authored
Support Blackwell DeepEP docker images (#6868)
1 parent bcf66ef commit 0166403

5 files changed

Lines changed: 23 additions & 121 deletions

File tree

.github/workflows/release-docker-deepep.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@ jobs:
99
build-dev:
1010
if: ${{ github.repository == 'sgl-project/sglang' }}
1111
runs-on: ubuntu-22.04
12+
13+
strategy:
14+
matrix:
15+
variant:
16+
- base: lmsysorg/sglang:latest
17+
tag: deepep
18+
- base: lmsysorg/sglang:dev
19+
tag: dev-deepep
20+
- base: lmsysorg/sglang:blackwell
21+
tag: blackwell-deepep
22+
1223
steps:
1324
- name: Checkout repository
1425
uses: actions/checkout@v4
@@ -30,7 +41,7 @@ jobs:
3041
username: ${{ secrets.DOCKERHUB_USERNAME }}
3142
password: ${{ secrets.DOCKERHUB_TOKEN }}
3243

33-
- name: Build and Push DeepEP Image
44+
- name: Build and Push Docker Image
3445
run: |
35-
docker build . -f docker/Dockerfile.deepep -t lmsysorg/sglang:deepep --no-cache
36-
docker push lmsysorg/sglang:deepep
46+
docker build . -f docker/Dockerfile.deepep --build-arg BASE_IMAGE=${{ matrix.variant.base }} -t lmsysorg/sglang:${{ matrix.variant.tag }} --no-cache
47+
docker push lmsysorg/sglang:${{ matrix.variant.tag }}

.github/workflows/release-docker-dev-deepep.yml

Lines changed: 0 additions & 36 deletions
This file was deleted.

docker/Dockerfile.deepep

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM lmsysorg/sglang:latest
1+
ARG BASE_IMAGE
2+
FROM ${BASE_IMAGE}
23

34
# CMake
45
RUN apt-get update \
@@ -55,6 +56,9 @@ RUN tar -xf nvshmem_src_3.2.5-1.txz \
5556
WORKDIR /sgl-workspace/nvshmem
5657
RUN git apply /sgl-workspace/DeepEP/third-party/nvshmem.patch
5758

59+
RUN sed -i '1i#include <unistd.h>' /sgl-workspace/nvshmem/examples/moe_shuffle.cu && \
60+
cat /sgl-workspace/nvshmem/examples/moe_shuffle.cu
61+
5862
WORKDIR /sgl-workspace/nvshmem
5963
ENV CUDA_HOME=/usr/local/cuda
6064
RUN NVSHMEM_SHMEM_SUPPORT=0 \
@@ -71,7 +75,7 @@ RUN NVSHMEM_SHMEM_SUPPORT=0 \
7175

7276
WORKDIR /sgl-workspace/DeepEP
7377
ENV NVSHMEM_DIR=/sgl-workspace/nvshmem/install
74-
RUN NVSHMEM_DIR=/sgl-workspace/nvshmem/install pip install .
78+
RUN NVSHMEM_DIR=/sgl-workspace/nvshmem/install pip install --break-system-packages .
7579

7680
# Set workspace
7781
WORKDIR /sgl-workspace

docker/Dockerfile.dev

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,5 +224,8 @@ setopt HIST_FIND_NO_DUPS
224224
setopt INC_APPEND_HISTORY
225225
EOF
226226

227+
RUN set -euxo ; \
228+
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash -s -- --to /usr/local/bin
229+
227230
# Set workspace directory
228231
WORKDIR /sgl-workspace/sglang

docker/Dockerfile.dev-deepep

Lines changed: 0 additions & 80 deletions
This file was deleted.

0 commit comments

Comments
 (0)