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
f4c191a7
Unverified
Commit
f4c191a7
authored
Apr 29, 2025
by
Yineng Zhang
Committed by
GitHub
Apr 29, 2025
Browse files
chore: update Dockerfile (#5894)
parent
771669cb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
.github/workflows/release-docker.yml
.github/workflows/release-docker.yml
+3
-3
docker/Dockerfile
docker/Dockerfile
+5
-8
No files found.
.github/workflows/release-docker.yml
View file @
f4c191a7
...
@@ -14,8 +14,8 @@ jobs:
...
@@ -14,8 +14,8 @@ jobs:
environment
:
'
prod'
environment
:
'
prod'
strategy
:
strategy
:
matrix
:
matrix
:
cuda_version
:
[
'
1
1.8.0'
,
'
12.1.1'
,
'
12.4.1'
,
'
12.5
.1'
]
cuda_version
:
[
'
1
2.4
.1'
]
build_type
:
[
'
all'
,
'
srt'
]
build_type
:
[
'
all'
]
steps
:
steps
:
-
name
:
Delete huge unnecessary tools folder
-
name
:
Delete huge unnecessary tools folder
run
:
rm -rf /opt/hostedtoolcache
run
:
rm -rf /opt/hostedtoolcache
...
@@ -60,7 +60,7 @@ jobs:
...
@@ -60,7 +60,7 @@ jobs:
docker build . -f docker/Dockerfile --build-arg CUDA_VERSION=${{ matrix.cuda_version }} --build-arg BUILD_TYPE=${{ matrix.build_type }} -t lmsysorg/sglang:${tag}${tag_suffix} --no-cache
docker build . -f docker/Dockerfile --build-arg CUDA_VERSION=${{ matrix.cuda_version }} --build-arg BUILD_TYPE=${{ matrix.build_type }} -t lmsysorg/sglang:${tag}${tag_suffix} --no-cache
docker push lmsysorg/sglang:${tag}${tag_suffix}
docker push lmsysorg/sglang:${tag}${tag_suffix}
if [ "${{ matrix.cuda_version }}" = "12.
5
.1" ]; then
if [ "${{ matrix.cuda_version }}" = "12.
4
.1" ]; then
docker tag lmsysorg/sglang:${tag}${tag_suffix} lmsysorg/sglang:latest${tag_suffix}
docker tag lmsysorg/sglang:${tag}${tag_suffix} lmsysorg/sglang:latest${tag_suffix}
docker push lmsysorg/sglang:latest${tag_suffix}
docker push lmsysorg/sglang:latest${tag_suffix}
fi
fi
docker/Dockerfile
View file @
f4c191a7
ARG
CUDA_VERSION=12.
5
.1
ARG
CUDA_VERSION=12.
4
.1
FROM
nvcr.io/nvidia/tritonserver:24.04-py3-min
FROM
nvcr.io/nvidia/tritonserver:24.04-py3-min
...
@@ -9,13 +9,9 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
...
@@ -9,13 +9,9 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
&&
echo
'tzdata tzdata/Zones/America select Los_Angeles'
| debconf-set-selections
\
&&
echo
'tzdata tzdata/Zones/America select Los_Angeles'
| debconf-set-selections
\
&&
apt update
-y
\
&&
apt update
-y
\
&&
apt
install
software-properties-common
-y
\
&&
apt
install
software-properties-common
-y
\
&&
add-apt-repository ppa:deadsnakes/ppa
-y
&&
apt update
\
&&
apt
install
python3 python3-pip
-y
\
&&
apt
install
python3.10 python3.10-dev
-y
\
&&
update-alternatives
--install
/usr/bin/python3 python3 /usr/bin/python3.10 1
\
&&
update-alternatives
--set
python3 /usr/bin/python3.10
&&
apt
install
python3.10-distutils
-y
\
&&
apt
install
curl git
sudo
libibverbs-dev
-y
\
&&
apt
install
curl git
sudo
libibverbs-dev
-y
\
&&
apt
install
-y
rdma-core infiniband-diags openssh-server perftest ibverbs-providers libibumad3 libibverbs1 libnl-3-200 libnl-route-3-200 librdmacm1
\
&&
apt
install
rdma-core infiniband-diags openssh-server perftest
-y
\
&&
curl https://bootstrap.pypa.io/get-pip.py
-o
get-pip.py
&&
python3 get-pip.py
\
&&
python3
--version
\
&&
python3
--version
\
&&
python3
-m
pip
--version
\
&&
python3
-m
pip
--version
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
...
@@ -43,6 +39,7 @@ RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six \
...
@@ -43,6 +39,7 @@ RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six \
fi
\
fi
\
&&
python3
-m
pip
install
--no-cache-dir
torch
--index-url
https://download.pytorch.org/whl/cu
${
CUINDEX
}
\
&&
python3
-m
pip
install
--no-cache-dir
torch
--index-url
https://download.pytorch.org/whl/cu
${
CUINDEX
}
\
&&
cd
sglang
\
&&
cd
sglang
\
&&
python3
-m
pip
--no-cache-dir
install
-e
"python[
${
BUILD_TYPE
}
]"
--find-links
https://flashinfer.ai/whl/cu
${
CUINDEX
}
/torch2.6/flashinfer-python
&&
python3
-m
pip
--no-cache-dir
install
-e
"python[
${
BUILD_TYPE
}
]"
--find-links
https://flashinfer.ai/whl/cu
${
CUINDEX
}
/torch2.6/flashinfer-python
\
&&
python3
-m
pip
install
nvidia-nccl-cu12
==
2.26.2.post1
--force-reinstall
--no-deps
ENV
DEBIAN_FRONTEND=interactive
ENV
DEBIAN_FRONTEND=interactive
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