@@ -88,9 +88,11 @@ ENV MXNET_VERSION=1.7.0
88
88
89
89
RUN python3 -m pip uninstall -y torch && \
90
90
python3 -m pip install --no-cache-dir \
91
- https://download.pytorch.org/whl/cu110 /torch-${PYTORCH_VERSION}%2Bcu110 -cp38-cp38-linux_x86_64.whl \
92
- https://download.pytorch.org/whl/cu110 /torchvision-${TORCHVISION_VERSION}%2Bcu110 -cp38-cp38-linux_x86_64.whl \
91
+ https://download.pytorch.org/whl/cu111 /torch-${PYTORCH_VERSION}%2Bcu111 -cp38-cp38-linux_x86_64.whl \
92
+ https://download.pytorch.org/whl/cu111 /torchvision-${TORCHVISION_VERSION}%2Bcu111 -cp38-cp38-linux_x86_64.whl \
93
93
https://download.pytorch.org/whl/torchaudio-${TORCHAUDIO_VERSION}-cp38-cp38-linux_x86_64.whl \
94
+ https://download.pytorch.org/whl/cu111/torchcsprng-0.2.1%2Bcu111-cp38-cp38-linux_x86_64.whl \
95
+ https://download.pytorch.org/whl/torchserve-0.3.0-py2.py3-none-any.whl \
94
96
https://download.pytorch.org/whl/torchtext-${TORCHTEXT_VERSION}-cp38-cp38-linux_x86_64.whl && \
95
97
python3 -m pip install --no-cache-dir tensorboardX==${TENSORBOARDX_VERSION}
96
98
@@ -109,34 +111,6 @@ RUN python3 -m pip install --no-cache-dir \
109
111
nni==2.1 \
110
112
scikit-nni==0.2.1
111
113
112
- # install kaldi
113
- WORKDIR /opt
114
-
115
- RUN ln -sf /usr/include/x86_64-linux-gnu/atlas /usr/local/include/atlas && \
116
- ln -sf /usr/include/x86_64-linux-gnu/cblas.h /usr/local/include/cblas.h && \
117
- ln -sf /usr/include/x86_64-linux-gnu/clapack.h /usr/local/include/clapack.h && \
118
- ln -sf /usr/lib/x86_64-linux-gnu/atlas /usr/local/lib/atlas
119
-
120
- RUN git clone https://github.com/hephaex/kaldi.git /opt/kaldi && \
121
- cd /opt/kaldi/tools && \
122
- make -j $(nproc) && \
123
- cd /opt/kaldi/src && \
124
- ./configure --shared --use-cuda \
125
- --cudatk-dir=/usr/local/cuda/ \
126
- --mathlib=ATLAS \
127
- --cuda-arch="-gencode arch=compute_52,code=sm_52 -gencode arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_75,code=sm_75 -gencode arch=compute_80,code=sm_80" && \
128
- make depend -j $(nproc) && \
129
- make -j $(nproc)
130
- RUN cd /opt/kaldi/src && \
131
- make ext -j $(nproc) && \
132
- ldconfig && \
133
- find /opt/kaldi -type f \( -name "*.o" -o -name "*.la" -o -name "*.a" \) -\
134
- exec rm {} \; && \
135
- rm -rf /opt/kaldi/.git
136
-
137
- RUN mkdir -p /workspace && \
138
- chmod -R 777 /workspace
139
-
140
114
RUN apt autoclean && \
141
115
rm -rf /var/lib/apt/lists/* && \
142
116
rm -rf /root/.cache && \
0 commit comments