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
OpenDAS
ColossalAI
Commits
c1cf7520
Unverified
Commit
c1cf7520
authored
Jul 10, 2023
by
Frank Lee
Committed by
GitHub
Jul 10, 2023
Browse files
[docker] fixed ninja build command (#4203)
* [docker] fixed ninja build command * polish code
parent
58913441
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
docker/Dockerfile
docker/Dockerfile
+5
-2
No files found.
docker/Dockerfile
View file @
c1cf7520
...
...
@@ -21,7 +21,10 @@ RUN apt-get update && \
RUN
conda
install
pytorch
==
1.12.1
torchvision
==
0.13.1
torchaudio
==
0.12.1
cudatoolkit
=
11.3
-c
pytorch
# install ninja
RUN
apt-get
install
-y
--no-install-recommends
ninja-build
RUN
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
ninja-build
&&
\
apt-get clean
&&
\
rm
-rf
/var/lib/apt/lists/
*
# install apex
RUN
git clone https://github.com/NVIDIA/apex
&&
\
...
...
@@ -31,7 +34,7 @@ RUN git clone https://github.com/NVIDIA/apex && \
pip
install
-v
--disable-pip-version-check
--no-cache-dir
--global-option
=
"--cpp_ext"
--global-option
=
"--cuda_ext"
--global-option
=
"--fast_layer_norm"
./
# install colossalai
ARG
VERSION=
1
ARG
VERSION=
main
RUN
git clone
-b
${
VERSION
}
https://github.com/hpcaitech/ColossalAI.git
\
&&
cd
./ColossalAI
\
&&
CUDA_EXT
=
1 pip
install
-v
--no-cache-dir
.
...
...
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