From b5d7d08da5a1b23952c35b66f352b02ff63cc19c Mon Sep 17 00:00:00 2001 From: Jirka Borovec Date: Tue, 16 Feb 2021 19:46:28 +0100 Subject: [PATCH] fix nightly releases & readme (#5922) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix nightly releases * readme * cuda * doxker * Apply suggestions from code review Co-authored-by: Carlos MocholĂ­ * revert Co-authored-by: Carlos MocholĂ­ --- .github/workflows/ci_dockers.yml | 18 ++++++------- .github/workflows/events-nightly.yml | 2 -- README.md | 40 +++++++++++++++++----------- dockers/base-xla/Dockerfile | 2 +- 4 files changed, 34 insertions(+), 28 deletions(-) diff --git a/.github/workflows/ci_dockers.yml b/.github/workflows/ci_dockers.yml index 72cf5e2687de2..9f77fb76aa593 100644 --- a/.github/workflows/ci_dockers.yml +++ b/.github/workflows/ci_dockers.yml @@ -75,21 +75,21 @@ jobs: matrix: include: # todo: see notes in Dockerfile - #- python_version: 3.7 - # pytorch_version: 1.8 - - python_version: 3.8 - pytorch_version: 1.7 - - python_version: 3.7 - pytorch_version: 1.6 - python_version: 3.6 pytorch_version: 1.4 + - python_version: 3.7 + pytorch_version: 1.6 + - python_version: 3.8 + pytorch_version: 1.7 + #- python_version: 3.9 + # pytorch_version: 1.8 steps: - name: Checkout uses: actions/checkout@v2 - # for PT 1.3 and 1.4 we need to use CUDA 10.1 + # for PT 1.4 we need to use CUDA 10.1 - run: | - cuda=$(python -c "print(10.2 if float(${{matrix.pytorch_version}}) > 1.4 else 10.1)" 2>&1) + cuda=$(python -c "print(10.2 if float(${{matrix.pytorch_version}}) >= 1.5 else 10.1)" 2>&1) echo "::set-output name=CUDA::$cuda" id: extend @@ -114,8 +114,6 @@ jobs: fail-fast: false matrix: include: - - python_version: 3.8 - pytorch_version: 1.6 - python_version: 3.6 pytorch_version: 1.4 - python_version: 3.7 diff --git a/.github/workflows/events-nightly.yml b/.github/workflows/events-nightly.yml index 1d0a9a66c1f5a..809d75408d43e 100644 --- a/.github/workflows/events-nightly.yml +++ b/.github/workflows/events-nightly.yml @@ -14,8 +14,6 @@ jobs: steps: # does nightly releases from feature branch - uses: actions/checkout@v2 - with: - ref: release/1.2-dev - uses: actions/setup-python@v2 with: python-version: 3.7 diff --git a/README.md b/README.md index 1f214f4a2b476..dc66d1f8a2cba 100644 --- a/README.md +++ b/README.md @@ -115,41 +115,51 @@ Simple installation from PyPI pip install pytorch-lightning ``` +
Other installation options - - #### Install with optional dependencies (CPU) - - ```bash - pip install pytorch-lightning['cpu-extra'] - ``` - #### Install with optional dependencies (GPU, TPU) + #### Install with optional dependencies ```bash pip install pytorch-lightning['extra'] ``` #### Conda + ```bash conda install pytorch-lightning -c conda-forge ``` + #### Install stable - future 1.1.x + + the actual status of 1.1 [stable] is following: + + ![CI base testing](https://github.com/PyTorchLightning/pytorch-lightning/workflows/CI%20base%20testing/badge.svg?branch=release%2F1.1.x&event=push) + ![CI complete testing](https://github.com/PyTorchLightning/pytorch-lightning/workflows/CI%20complete%20testing/badge.svg?branch=release%2F1.1.x&event=push) + ![PyTorch & Conda](https://github.com/PyTorchLightning/pytorch-lightning/workflows/PyTorch%20&%20Conda/badge.svg?branch=release%2F1.1.x&event=push) + ![TPU tests](https://github.com/PyTorchLightning/pytorch-lightning/workflows/TPU%20tests/badge.svg?branch=release%2F1.1.x&event=push) + ![Docs check](https://github.com/PyTorchLightning/pytorch-lightning/workflows/Docs%20check/badge.svg?branch=release%2F1.1.x&event=push) + + Install future release from the source + ```bash + pip install git+https://github.com/PytorchLightning/pytorch-lightning.git@release/1.1.x --upgrade + ``` + #### Install bleeding-edge - future 1.2 - Install future release from the source (no guarantees) + Install nightly from the source (no guarantees) ```bash - pip install git+https://github.com/PytorchLightning/pytorch-lightning.git@release/1.2-dev --upgrade + pip install https://github.com/PyTorchLightning/pytorch-lightning/archive/master.zip ``` - or nightly from testing PyPI + + or from testing PyPI ```bash pip install -iU https://test.pypi.org/simple/ pytorch-lightning ``` - -
- + ### Step 1: Add these imports @@ -369,8 +379,8 @@ class LitAutoEncoder(pl.LightningModule): ## Community The lightning community is maintained by -- [16 core contributors](https://pytorch-lightning.readthedocs.io/en/latest/governance.html) who are all a mix of professional engineers, Research Scientists, Ph.D. students from top AI labs. -- 280+ community contributors. +- [16 core contributors](https://pytorch-lightning.readthedocs.io/en/latest/governance.html) who are all a mix of professional engineers, Research Scientists, and Ph.D. students from top AI labs. +- 400+ community contributors. Lightning is also part of the [PyTorch ecosystem](https://pytorch.org/ecosystem/) which requires projects to have solid testing, documentation and support. diff --git a/dockers/base-xla/Dockerfile b/dockers/base-xla/Dockerfile index 3780474a115dd..ce612f158753a 100644 --- a/dockers/base-xla/Dockerfile +++ b/dockers/base-xla/Dockerfile @@ -115,4 +115,4 @@ RUN \ conda info && \ pip list && \ python -c "import sys; assert sys.version[:3] == '$PYTHON_VERSION', sys.version" && \ - python -c "import torch; ver = '$XLA_VERSION' ; ver = dict(nightly='1.8').get(ver, ver) ; assert torch.__version__[:3] == ver, torch.__version__" + python -c "import torch; ver = '$XLA_VERSION' ; ver = dict(nightly='1.9').get(ver, ver) ; assert torch.__version__[:3] == ver, torch.__version__"