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
zhaoyu6
sglang
Commits
cef6655b
"test/vscode:/vscode.git/clone" did not exist on "60a85b50ded95598f06e6aeac70bde86b6bd1dc6"
Unverified
Commit
cef6655b
authored
Jun 10, 2025
by
Yineng Zhang
Committed by
GitHub
Jun 10, 2025
Browse files
fix 24.12 docker (#7045)
parent
27196d41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
docker/Dockerfile
docker/Dockerfile
+7
-7
No files found.
docker/Dockerfile
View file @
cef6655b
...
@@ -18,12 +18,12 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
...
@@ -18,12 +18,12 @@ RUN echo 'tzdata tzdata/Areas select America' | debconf-set-selections \
&&
apt clean
&&
apt clean
# For openbmb/MiniCPM models
# For openbmb/MiniCPM models
RUN
pip3
install
datamodel_code_generator
RUN
pip3
install
datamodel_code_generator
--break-system-packages
WORKDIR
/sgl-workspace
WORKDIR
/sgl-workspace
ARG
CUDA_VERSION
ARG
CUDA_VERSION
RUN
python3
-m
pip
install
--upgrade
pip setuptools wheel html5lib six
\
RUN
python3
-m
pip
install
--upgrade
pip setuptools wheel html5lib six
--break-system-packages
--ignore-installed
\
&&
git clone
--depth
=
1 https://github.com/sgl-project/sglang.git
\
&&
git clone
--depth
=
1 https://github.com/sgl-project/sglang.git
\
&&
if
[
"
$CUDA_VERSION
"
=
"12.1.1"
]
;
then
\
&&
if
[
"
$CUDA_VERSION
"
=
"12.1.1"
]
;
then
\
export
CUINDEX
=
121
;
\
export
CUINDEX
=
121
;
\
...
@@ -33,19 +33,19 @@ RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six \
...
@@ -33,19 +33,19 @@ RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six \
export
CUINDEX
=
124
;
\
export
CUINDEX
=
124
;
\
elif
[
"
$CUDA_VERSION
"
=
"11.8.0"
]
;
then
\
elif
[
"
$CUDA_VERSION
"
=
"11.8.0"
]
;
then
\
export
CUINDEX
=
118
;
\
export
CUINDEX
=
118
;
\
python3
-m
pip
install
--no-cache-dir
sgl-kernel
-i
https://docs.sglang.ai/whl/cu118
;
\
python3
-m
pip
install
--no-cache-dir
sgl-kernel
-i
https://docs.sglang.ai/whl/cu118
--break-system-packages
;
\
else
\
else
\
echo
"Unsupported CUDA version:
$CUDA_VERSION
"
&&
exit
1
;
\
echo
"Unsupported CUDA version:
$CUDA_VERSION
"
&&
exit
1
;
\
fi
\
fi
\
&&
if
[
"
$CUDA_VERSION
"
=
"12.4.1"
]
;
then
\
&&
if
[
"
$CUDA_VERSION
"
=
"12.4.1"
]
;
then
\
python3
-m
pip
install
--no-cache-dir
torch
--index-url
https://download.pytorch.org/whl/cu126
;
\
python3
-m
pip
install
--no-cache-dir
torch
--index-url
https://download.pytorch.org/whl/cu126
--break-system-packages
;
\
else
\
else
\
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
}
--break-system-packages
;
\
fi
\
fi
\
&&
cd
sglang
\
&&
cd
sglang
\
&&
python3
-m
pip
--no-cache-dir
install
-e
"python[
${
BUILD_TYPE
}
]"
\
&&
python3
-m
pip
--no-cache-dir
install
-e
"python[
${
BUILD_TYPE
}
]"
--break-system-packages
\
&&
if
[
"
$CUDA_VERSION
"
=
"12.8.1"
]
;
then
\
&&
if
[
"
$CUDA_VERSION
"
=
"12.8.1"
]
;
then
\
python3
-m
pip
install
nvidia-nccl-cu12
==
2.26.2.post1
--force-reinstall
--no-deps
;
\
python3
-m
pip
install
nvidia-nccl-cu12
==
2.26.2.post1
--force-reinstall
--no-deps
--break-system-packages
;
\
fi
fi
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