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
4e1e3cff
Unverified
Commit
4e1e3cff
authored
Dec 22, 2024
by
Yineng Zhang
Committed by
GitHub
Dec 22, 2024
Browse files
fix #2528 (#2541)
parent
8f4d04e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
docker/Dockerfile
docker/Dockerfile
+9
-0
No files found.
docker/Dockerfile
View file @
4e1e3cff
...
...
@@ -26,6 +26,15 @@ WORKDIR /sgl-workspace
ARG
CUDA_VERSION
RUN
python3
-m
pip
install
--upgrade
pip setuptools wheel html5lib six
\
&&
git clone
--depth
=
1 https://github.com/sgl-project/sglang.git
\
&&
if
[
"
$CUDA_VERSION
"
=
"12.1.1"
]
;
then
\
python3
-m
pip
install
torch
--index-url
https://download.pytorch.org/whl/cu121
;
\
elif
[
"
$CUDA_VERSION
"
=
"12.4.1"
]
;
then
\
python3
-m
pip
install
torch
--index-url
https://download.pytorch.org/whl/cu124
;
\
elif
[
"
$CUDA_VERSION
"
=
"11.8.0"
]
;
then
\
python3
-m
pip
install
torch
--index-url
https://download.pytorch.org/whl/cu118
;
\
else
\
echo
"Unsupported CUDA version:
$CUDA_VERSION
"
&&
exit
1
;
\
fi
\
&&
cd
sglang
\
&&
if
[
"
$BUILD_TYPE
"
=
"srt"
]
;
then
\
if
[
"
$CUDA_VERSION
"
=
"12.1.1"
]
;
then
\
...
...
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