Skip to content

Commit 490a305

Browse files
authored
[Currency] SGLang 0.5.7 v1 (#5589)
* [Currency] SGLang 0.5.7 v1 * fix sglang build * increase file limit * increase file limit * test true * revert toml
1 parent bd8828a commit 490a305

File tree

3 files changed

+50
-59
lines changed

3 files changed

+50
-59
lines changed

release_images_general.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ release_images:
119119
private_registry: False
120120
9:
121121
framework: "sglang"
122-
version: "0.5.6"
122+
version: "0.5.7"
123123
arch_type: "x86"
124124
customer_type: "sagemaker"
125125
general:

sglang/buildspec-sm.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ account_id: &ACCOUNT_ID <set-$ACCOUNT_ID-in-environment>
22
prod_account_id: &PROD_ACCOUNT_ID 763104351884
33
region: &REGION <set-$REGION-in-environment>
44
framework: &FRAMEWORK sglang
5-
version: &VERSION "0.5.6"
5+
version: &VERSION "0.5.7"
66
short_version: &SHORT_VERSION "0.5"
77
arch_type: &ARCH_TYPE x86_64
88
autopatch_build: "False"
@@ -36,12 +36,12 @@ images:
3636
<<: *BUILD_REPOSITORY
3737
context:
3838
<<: *BUILD_CONTEXT
39-
image_size_baseline: 26000
39+
image_size_baseline: 32000
4040
device_type: &DEVICE_TYPE gpu
4141
cuda_version: &CUDA_VERSION cu129
4242
python_version: &DOCKER_PYTHON_VERSION py3
4343
tag_python_version: &TAG_PYTHON_VERSION py312
44-
os_version: &OS_VERSION ubuntu22.04
44+
os_version: &OS_VERSION ubuntu24.04
4545
tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION, "-sagemaker" ]
4646
latest_release_tag: !join [ *VERSION, "-", *DEVICE_TYPE, "-", *TAG_PYTHON_VERSION, "-", *CUDA_VERSION, "-", *OS_VERSION, "-sagemaker" ]
4747
skip_build: "False"

sglang/x86_64/gpu/Dockerfile

Lines changed: 46 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM lmsysorg/sglang:v0.5.6-cu129-amd64 AS base
1+
FROM lmsysorg/sglang:v0.5.7-cu129-amd64 AS base
22

33
# ====================================================
44
# ====================== common ======================
@@ -11,16 +11,16 @@ LABEL maintainer="Amazon AI"
1111
LABEL dlc_major_version="1"
1212

1313
ENV DEBIAN_FRONTEND=noninteractive \
14-
LANG=C.UTF-8 \
15-
LC_ALL=C.UTF-8 \
16-
DLC_CONTAINER_TYPE=general \
17-
# Python won’t try to write .pyc or .pyo files on the import of source modules
18-
# Force stdin, stdout and stderr to be totally unbuffered. Good for logging
19-
PYTHONDONTWRITEBYTECODE=1 \
20-
PYTHONUNBUFFERED=1 \
21-
PYTHONIOENCODING=UTF-8 \
22-
LD_LIBRARY_PATH="/usr/local/lib:/opt/amazon/ofi-nccl/lib/x86_64-linux-gnu:/opt/amazon/openmpi/lib:/opt/amazon/efa/lib:/usr/local/cuda/lib64:${LD_LIBRARY_PATH}" \
23-
PATH="/opt/amazon/openmpi/bin:/opt/amazon/efa/bin:/usr/local/cuda/bin:${PATH}"
14+
LANG=C.UTF-8 \
15+
LC_ALL=C.UTF-8 \
16+
DLC_CONTAINER_TYPE=general \
17+
# Python won’t try to write .pyc or .pyo files on the import of source modules
18+
# Force stdin, stdout and stderr to be totally unbuffered. Good for logging
19+
PYTHONDONTWRITEBYTECODE=1 \
20+
PYTHONUNBUFFERED=1 \
21+
PYTHONIOENCODING=UTF-8 \
22+
LD_LIBRARY_PATH="/usr/local/lib:/opt/amazon/ofi-nccl/lib/x86_64-linux-gnu:/opt/amazon/openmpi/lib:/opt/amazon/efa/lib:/usr/local/cuda/lib64:${LD_LIBRARY_PATH}" \
23+
PATH="/opt/amazon/openmpi/bin:/opt/amazon/efa/bin:/usr/local/cuda/bin:${PATH}"
2424

2525
WORKDIR /
2626

@@ -35,53 +35,44 @@ RUN chmod +x /usr/local/bin/deep_learning_container.py \
3535
&& chmod +x /usr/local/bin/bash_telemetry.sh \
3636
&& chmod +x /usr/local/bin/start_cuda_compat.sh
3737

38-
# Install cuda compat
39-
# ====================
40-
# RUN apt-get update \
41-
# && apt-get -y upgrade --only-upgrade systemd \
42-
# && apt-get install -y --allow-change-held-packages --no-install-recommends \
43-
# cuda-compat-12-9 \
44-
# && rm -rf /var/lib/apt/lists/* \
45-
# && apt-get clean
46-
4738
# Install EFA and remove vulnerable nvjpeg
4839
# =========================================
4940
RUN bash install_efa.sh ${EFA_VERSION} \
50-
&& rm install_efa.sh \
51-
&& mkdir -p /tmp/nvjpeg \
52-
&& cd /tmp/nvjpeg \
53-
# latest cu12 libnvjpeg available is cu124
54-
&& wget https://developer.download.nvidia.com/compute/cuda/redist/libnvjpeg/linux-x86_64/libnvjpeg-linux-x86_64-12.4.0.76-archive.tar.xz \
55-
&& tar -xvf libnvjpeg-linux-x86_64-12.4.0.76-archive.tar.xz \
56-
&& rm -rf /usr/local/cuda/targets/x86_64-linux/lib/libnvjpeg* \
57-
&& rm -rf /usr/local/cuda/targets/x86_64-linux/include/nvjpeg.h \
58-
&& cp libnvjpeg-linux-x86_64-12.4.0.76-archive/lib/libnvjpeg* /usr/local/cuda/targets/x86_64-linux/lib/ \
59-
&& cp libnvjpeg-linux-x86_64-12.4.0.76-archive/include/* /usr/local/cuda/targets/x86_64-linux/include/ \
60-
&& rm -rf /tmp/nvjpeg \
61-
# create symlink for python
62-
&& rm -rf /usr/bin/python \
63-
&& ln -s /usr/bin/python3 /usr/bin/python \
64-
# remove cuobjdump and nvdisasm
65-
&& rm -rf /usr/local/cuda/bin/cuobjdump* \
66-
&& rm -rf /usr/local/cuda/bin/nvdisasm*
41+
&& rm install_efa.sh \
42+
&& mkdir -p /tmp/nvjpeg \
43+
&& cd /tmp/nvjpeg \
44+
# latest cu12 libnvjpeg available is cu124
45+
&& wget https://developer.download.nvidia.com/compute/cuda/redist/libnvjpeg/linux-x86_64/libnvjpeg-linux-x86_64-12.4.0.76-archive.tar.xz \
46+
&& tar -xvf libnvjpeg-linux-x86_64-12.4.0.76-archive.tar.xz \
47+
&& rm -rf /usr/local/cuda/targets/x86_64-linux/lib/libnvjpeg* \
48+
&& rm -rf /usr/local/cuda/targets/x86_64-linux/include/nvjpeg.h \
49+
&& cp libnvjpeg-linux-x86_64-12.4.0.76-archive/lib/libnvjpeg* /usr/local/cuda/targets/x86_64-linux/lib/ \
50+
&& cp libnvjpeg-linux-x86_64-12.4.0.76-archive/include/* /usr/local/cuda/targets/x86_64-linux/include/ \
51+
&& rm -rf /tmp/nvjpeg \
52+
# create symlink for python
53+
&& rm -rf /usr/bin/python \
54+
&& ln -s /usr/bin/python3 /usr/bin/python \
55+
# remove cuobjdump and nvdisasm
56+
&& rm -rf /usr/local/cuda/bin/cuobjdump* \
57+
&& rm -rf /usr/local/cuda/bin/nvdisasm*
6758

6859
# Run OSS compliance script
6960
# ==========================
70-
RUN echo 'source /usr/local/bin/bash_telemetry.sh' >> /etc/bash.bashrc \
71-
# OSS compliance - use Python zipfile instead of unzip
72-
&& HOME_DIR=/root \
73-
&& curl -o ${HOME_DIR}/oss_compliance.zip https://aws-dlinfra-utilities.s3.amazonaws.com/oss_compliance.zip \
74-
&& python3 -c "import zipfile, os; zipfile.ZipFile('/root/oss_compliance.zip').extractall('/root/'); os.remove('/root/oss_compliance.zip')" \
75-
&& cp ${HOME_DIR}/oss_compliance/test/testOSSCompliance /usr/local/bin/testOSSCompliance \
76-
&& chmod +x /usr/local/bin/testOSSCompliance \
77-
&& chmod +x ${HOME_DIR}/oss_compliance/generate_oss_compliance.sh \
78-
&& ${HOME_DIR}/oss_compliance/generate_oss_compliance.sh ${HOME_DIR} ${PYTHON} \
79-
# clean up
80-
&& rm -rf ${HOME_DIR}/oss_compliance* \
81-
&& rm -rf /tmp/tmp* \
82-
&& rm -rf /tmp/uv* \
83-
&& rm -rf /var/lib/apt/lists/* \
84-
&& rm -rf /root/.cache | true
61+
RUN echo 'source /usr/local/bin/bash_telemetry.sh' >> /etc/bash.bashrc \
62+
# OSS compliance - use Python zipfile instead of unzip
63+
&& HOME_DIR=/root \
64+
&& curl -o ${HOME_DIR}/oss_compliance.zip https://aws-dlinfra-utilities.s3.amazonaws.com/oss_compliance.zip \
65+
&& python3 -c "import zipfile, os; zipfile.ZipFile('/root/oss_compliance.zip').extractall('/root/'); os.remove('/root/oss_compliance.zip')" \
66+
&& cp ${HOME_DIR}/oss_compliance/test/testOSSCompliance /usr/local/bin/testOSSCompliance \
67+
&& chmod +x /usr/local/bin/testOSSCompliance \
68+
&& chmod +x ${HOME_DIR}/oss_compliance/generate_oss_compliance.sh \
69+
&& ${HOME_DIR}/oss_compliance/generate_oss_compliance.sh ${HOME_DIR} ${PYTHON} \
70+
# clean
71+
&& rm -rf ${HOME_DIR}/oss_compliance* \
72+
&& rm -rf /tmp/tmp* \
73+
&& rm -rf /tmp/uv* \
74+
&& rm -rf /var/lib/apt/lists/* \
75+
&& rm -rf /root/.cache | true
8576

8677
# =======================================================
8778
# ====================== sagemaker ======================
@@ -90,9 +81,9 @@ RUN echo 'source /usr/local/bin/bash_telemetry.sh' >> /etc/bash.bashrc \
9081
FROM base AS sglang-sagemaker
9182

9283
RUN dpkg -l | grep -E "cuda|nvidia|libnv" | awk '{print $2}' | xargs apt-mark hold \
93-
&& apt-get update \
94-
&& apt-get upgrade -y \
95-
&& apt-get clean
84+
&& apt-get update \
85+
&& apt-get upgrade -y \
86+
&& apt-get clean
9687

9788
RUN rm -rf /tmp/*
9889

0 commit comments

Comments
 (0)