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
Uni-Core
Commits
07f95057
Commit
07f95057
authored
Sep 27, 2022
by
Guolin Ke
Browse files
use pip to install torch
parent
a95f080b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
docker/rdma/Dockerfile
docker/rdma/Dockerfile
+7
-8
No files found.
docker/rdma/Dockerfile
View file @
07f95057
...
...
@@ -49,8 +49,9 @@ RUN APT_INSTALL="apt-get install -y --no-install-recommends" && \
debhelper
\
nfs-common
RUN
pip uninstall
-y
torch
&&
\
pip uninstall
-y
torch
&&
\
RUN
pip uninstall
-y
torch torchvision torchtext
&&
\
pip uninstall
-y
torch torchvision torchtext
&&
\
rm
-rf
~/.cache/pip
&&
\
conda clean
-ya
RUN
conda
install
-y
pyyaml tensorboardX
&&
\
...
...
@@ -66,17 +67,15 @@ ENV TORCH_CUDA_ARCH_LIST "7.0;7.5;8.0"
RUN
conda
install
-y
ninja typing
&&
\
conda clean
-ya
RUN
conda
install
pytorch
=
1.12.1
cudatoolkit
=
11.6
-c
pytorch
-c
conda-forge
&&
\
conda clean
-ya
RUN
pip3
install
--no-cache-dir
torch
==
1.12.1
--extra-index-url
https://download.pytorch.org/whl/cu116
&&
rm
-rf
~/.cache/pip
RUN
cd
/tmp
&&
\
git clone https://github.com/dptech-corp/Uni-Core
&&
\
cd
Uni-Core
&&
\
python setup.py
install
&&
\
rm
-rf
/tmp/
*
RUN
pip
install
--no-cache-dir
tokenizers lmdb biopython ml-collections timeout-decorator urllib3 tree dm-tree
python setup.py
install
&&
\
rm
-rf
/tmp/
*
&&
rm
-rf
~/.cache/pip
RUN
pip3
install
--no-cache-dir
tokenizers lmdb biopython ml-collections timeout-decorator urllib3 tree dm-tree
&&
rm
-rf
~/.cache/pip
RUN
ldconfig
&&
\
apt-get clean
&&
\
...
...
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