|
1 | | -ARG FROM_IMAGE_NAME=nvcr.io/nvidia/pytorch:19.07-py3 |
| 1 | +# Copyright (c) 2019 NVIDIA CORPORATION. All rights reserved. |
| 2 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | +# you may not use this file except in compliance with the License. |
| 4 | +# You may obtain a copy of the License at |
| 5 | +# |
| 6 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | +# |
| 8 | +# Unless required by applicable law or agreed to in writing, software |
| 9 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | +# See the License for the specific language governing permissions and |
| 12 | +# limitations under the License. |
| 13 | + |
| 14 | +ARG FROM_IMAGE_NAME=nvcr.io/nvidia/pytorch:19.08-py3 |
2 | 15 | FROM ${FROM_IMAGE_NAME} |
3 | 16 | RUN apt-get update && apt-get install -y pbzip2 pv bzip2 cabextract |
4 | 17 |
|
5 | 18 | ENV BERT_PREP_WORKING_DIR /workspace/bert/data |
6 | 19 |
|
7 | | -WORKDIR /opt |
8 | | -RUN rm -rf /opt/pytorch/apex ; \ |
9 | | - git clone https://github.com/NVIDIA/apex.git pytorch/apex ; \ |
10 | | - cd pytorch/apex ; \ |
11 | | - pip uninstall --yes apex; \ |
12 | | - git checkout 880ab925bce9f817a93988b021e12db5f67f7787; \ |
13 | | - git pull; \ |
14 | | - pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" . |
15 | | - |
16 | | -#WORKDIR /opt |
17 | | -#RUN cd pytorch/apex \ |
18 | | -# && git fetch origin pull/334/head:multi_tensor_lamb_optimizer \ |
19 | | -# && git checkout multi_tensor_lamb_optimizer \ |
20 | | -# && python setup.py develop --cuda_ext --cpp_ext |
21 | | - |
22 | 20 | WORKDIR /workspace |
23 | 21 | RUN git clone https://github.com/attardi/wikiextractor.git |
24 | 22 | RUN git clone https://github.com/soskek/bookcorpus.git |
|
0 commit comments