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
f6b29f69
"vscode:/vscode.git/clone" did not exist on "4340f8eba4b3a0e5672a0c4837ac45a23c074fdf"
Unverified
Commit
f6b29f69
authored
Jul 16, 2024
by
Ying Sheng
Committed by
GitHub
Jul 16, 2024
Browse files
Update docker file (#629)
parent
c9ee3d35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
5 deletions
+36
-5
docker/Dockerfile
docker/Dockerfile
+36
-5
No files found.
docker/Dockerfile
View file @
f6b29f69
FROM
vllm/vllm-openai
ARG
CUDA_VERSION=12.4.1
RUN
pip
install
--upgrade
pip
RUN
pip
install
"sglang[all]"
RUN
pip uninstall
-y
triton triton-nightly
&&
pip
install
--no-deps
--index-url
https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/Triton-Nightly/pypi/simple/ triton-nightly
RUN
pip
install
flashinfer
-i
https://flashinfer.ai/whl/cu121/torch2.3/
FROM
nvidia/cuda:${CUDA_VERSION}-devel-ubuntu22.04
ARG
CUDA_VERSION=12.4.1
ARG
PYTHON_VERSION=3
ENV
DEBIAN_FRONTEND=noninteractive
RUN
echo
'tzdata tzdata/Areas select America'
| debconf-set-selections
\
&&
echo
'tzdata tzdata/Zones/America select Los_Angeles'
| debconf-set-selections
\
&&
apt-get update
-y
\
&&
apt-get
install
-y
ccache software-properties-common
\
&&
add-apt-repository ppa:deadsnakes/ppa
\
&&
apt-get update
-y
\
&&
apt-get
install
-y
python
${
PYTHON_VERSION
}
python
${
PYTHON_VERSION
}
-dev
python
${
PYTHON_VERSION
}
-venv
python3-pip
\
&&
if
[
"
${
PYTHON_VERSION
}
"
!=
"3"
]
;
then
update-alternatives
--install
/usr/bin/python3 python3 /usr/bin/python
${
PYTHON_VERSION
}
1
;
fi
\
&&
python3
--version
\
&&
python3
-m
pip
--version
RUN
apt-get update
-y
\
&&
apt-get
install
-y
python3-pip git curl
sudo
# Workaround for https://github.com/openai/triton/issues/2507 and
# https://github.com/pytorch/pytorch/issues/107960 -- hopefully
# this won't be needed for future versions of this docker image
# or future versions of triton.
RUN
ldconfig /usr/local/cuda-
$(
echo
$CUDA_VERSION
|
cut
-d
.
-f1
,2
)
/compat/
WORKDIR
/sgl-workspace
RUN
pip3
install
--upgrade
pip
RUN
pip3
install
"sglang[all]"
RUN
pip3 uninstall
-y
triton triton-nightly
&&
pip3
install
--no-deps
--index-url
https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/Triton-Nightly/pypi/simple/ triton-nightly
RUN
pip3
install
flashinfer
-i
https://flashinfer.ai/whl/cu121/torch2.3/
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