Skip to content

Commit de4ab1c

Browse files
Bordaakihironittacarmocca
authored
update NGC docker (Lightning-AI#13136)
* update docker * Apply suggestions from code review Co-authored-by: Akihiro Nitta <[email protected]> Co-authored-by: Carlos Mocholí <[email protected]>
1 parent 4819ad1 commit de4ab1c

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

dockers/nvidia/Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
ARG PYTORCH_VERSION=21.11
15+
ARG PYTORCH_VERSION=22.04
1616

1717
# https://docs.nvidia.com/deeplearning/frameworks/pytorch-release-notes
1818
FROM nvcr.io/nvidia/pytorch:${PYTORCH_VERSION}-py3
@@ -37,20 +37,19 @@ RUN \
3737
cd .. ; \
3838
fi && \
3939
# save the examples
40-
mv pytorch-lightning/_notebooks notebooks && \
40+
mv pytorch-lightning/_notebooks/.notebooks/ notebooks && \
4141
mv pytorch-lightning/pl_examples . && \
4242

4343
# Installations \
4444
pip install -q fire && \
45-
python ./pytorch-lightning/.actions/assistant.py requirements_prune_pkgs horovod --req_files ./pytorch-lightning/requirements/extra.txt && \
46-
pip install "Pillow>=8.2, !=8.3.0" "cryptography>=3.4" "py>=1.10" --no-cache-dir --upgrade-strategy only-if-needed && \
47-
pip install -r ./pytorch-lightning/requirements/extra.txt --no-cache-dir --upgrade-strategy only-if-needed && \
48-
pip install -r ./pytorch-lightning/requirements/examples.txt --no-cache-dir --upgrade-strategy only-if-needed && \
49-
pip install ./pytorch-lightning --no-cache-dir && \
45+
pip install "Pillow>=8.2, !=8.3.0" "cryptography>=3.4" "py>=1.10" --no-cache-dir && \
46+
pip install ./pytorch-lightning["extra","loggers","strategies"] --no-cache-dir && \
47+
pip install -r ./pytorch-lightning/requirements/examples.txt --no-cache-dir && \
5048
rm -rf pytorch-lightning && \
51-
pip install jupyterlab[all] -U && \
5249
pip list
5350

51+
RUN pip install jupyterlab[all] -U
52+
5453
RUN pip install lightning-grid -U && \
5554
pip install "py>=1.10" "protobuf>=3.15.6" --upgrade-strategy only-if-needed
5655

dockers/release/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ RUN \
3636
mv pytorch-lightning-*/ pytorch-lightning ; \
3737
rm *.zip ; \
3838
fi && \
39-
pip install ./pytorch-lightning["extra"] --no-cache-dir && \
39+
pip install ./pytorch-lightning["extra","loggers","strategies"] --no-cache-dir && \
4040
rm -rf pytorch-lightning
4141

4242
RUN python --version && \

0 commit comments

Comments
 (0)