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
141a4596
Unverified
Commit
141a4596
authored
May 02, 2025
by
Yineng Zhang
Committed by
GitHub
May 02, 2025
Browse files
fix: only upgrade nccl for cu128 (#5986)
parent
d8ab6011
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
docker/Dockerfile
docker/Dockerfile
+4
-2
No files found.
docker/Dockerfile
View file @
141a4596
...
...
@@ -29,7 +29,7 @@ RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six \
export
CUINDEX
=
121
;
\
elif
[
"
$CUDA_VERSION
"
=
"12.4.1"
]
;
then
\
export
CUINDEX
=
124
;
\
elif
[
"
$CUDA_VERSION
"
=
"12.
5
.1"
]
;
then
\
elif
[
"
$CUDA_VERSION
"
=
"12.
8
.1"
]
;
then
\
export
CUINDEX
=
124
;
\
elif
[
"
$CUDA_VERSION
"
=
"11.8.0"
]
;
then
\
export
CUINDEX
=
118
;
\
...
...
@@ -40,6 +40,8 @@ RUN python3 -m pip install --upgrade pip setuptools wheel html5lib six \
&&
python3
-m
pip
install
--no-cache-dir
torch
--index-url
https://download.pytorch.org/whl/cu
${
CUINDEX
}
\
&&
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
install
nvidia-nccl-cu12
==
2.26.2.post1
--force-reinstall
--no-deps
&&
if
[
"
$CUDA_VERSION
"
=
"12.8.1"
]
;
then
\
python3
-m
pip
install
nvidia-nccl-cu12
==
2.26.2.post1
--force-reinstall
--no-deps
;
\
fi
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