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
269150b6
Unverified
Commit
269150b6
authored
May 23, 2023
by
Yanming W
Committed by
GitHub
May 24, 2023
Browse files
[Docker] Fix a couple of build issues (#3691)
parent
7f8203af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
docker/Dockerfile
docker/Dockerfile
+4
-0
op_builder/utils.py
op_builder/utils.py
+1
-1
No files found.
docker/Dockerfile
View file @
269150b6
...
...
@@ -8,9 +8,13 @@ LABEL org.opencontainers.image.base.name = "docker.io/library/hpcaitech/cuda-con
# install torch
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
# install apex
RUN
git clone https://github.com/NVIDIA/apex
&&
\
cd
apex
&&
\
git checkout 91fcaa
&&
\
pip
install
packaging
&&
\
pip
install
-v
--disable-pip-version-check
--no-cache-dir
--global-option
=
"--cpp_ext"
--global-option
=
"--cuda_ext"
--global-option
=
"--fast_layer_norm"
./
...
...
op_builder/utils.py
View file @
269150b6
...
...
@@ -110,7 +110,7 @@ def get_pytorch_version() -> List[int]:
torch_version
=
torch
.
__version__
.
split
(
'+'
)[
0
]
TORCH_MAJOR
=
int
(
torch_version
.
split
(
'.'
)[
0
])
TORCH_MINOR
=
int
(
torch_version
.
split
(
'.'
)[
1
])
TORCH_PATCH
=
int
(
torch_version
.
split
(
'.'
)[
2
])
TORCH_PATCH
=
int
(
torch_version
.
split
(
'.'
)[
2
]
,
16
)
return
TORCH_MAJOR
,
TORCH_MINOR
,
TORCH_PATCH
...
...
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