set min PT version for legacy (#7358)
This commit is contained in:
parent
bac4656eca
commit
df579a842a
|
@ -74,7 +74,7 @@ Lightning is rigorously tested across multiple GPUs, TPUs CPUs and against major
|
|||
|
||||
<center>
|
||||
|
||||
| System / PyTorch ver. | 1.4 (min. req.)* | 1.5 | 1.6 | 1.7 (latest) | 1.8 (nightly) |
|
||||
| System / PyTorch ver. | 1.4 (min. req.) | 1.5 | 1.6 | 1.7 | 1.8 (latest) |
|
||||
| :---: | :---: | :---: | :---: | :---: | :---: |
|
||||
| Conda py3.7 [linux] | [![PyTorch & Conda](https://github.com/PyTorchLightning/pytorch-lightning/workflows/PyTorch%20&%20Conda/badge.svg?branch=master&event=push)](https://github.com/PyTorchLightning/pytorch-lightning/actions?query=workflow%3A%22PyTorch+%26+Conda%22+branch%3Amaster) | [![PyTorch & Conda](https://github.com/PyTorchLightning/pytorch-lightning/workflows/PyTorch%20&%20Conda/badge.svg?branch=master&event=push)](https://github.com/PyTorchLightning/pytorch-lightning/actions?query=workflow%3A%22PyTorch+%26+Conda%22+branch%3Amaster) | [![PyTorch & Conda](https://github.com/PyTorchLightning/pytorch-lightning/workflows/PyTorch%20&%20Conda/badge.svg?branch=master&event=push)](https://github.com/PyTorchLightning/pytorch-lightning/actions?query=workflow%3A%22PyTorch+%26+Conda%22+branch%3Amaster) | [![PyTorch & Conda](https://github.com/PyTorchLightning/pytorch-lightning/workflows/PyTorch%20&%20Conda/badge.svg?branch=master&event=push)](https://github.com/PyTorchLightning/pytorch-lightning/actions?query=workflow%3A%22PyTorch+%26+Conda%22+branch%3Amaster) | [![PyTorch & Conda](https://github.com/PyTorchLightning/pytorch-lightning/workflows/PyTorch%20&%20Conda/badge.svg?branch=master&event=push)](https://github.com/PyTorchLightning/pytorch-lightning/actions?query=workflow%3A%22PyTorch+%26+Conda%22+branch%3Amaster) |
|
||||
| Linux py3.7 [GPUs**] | - | - | [![Build Status](https://dev.azure.com/PytorchLightning/pytorch-lightning/_apis/build/status/PL.pytorch-lightning%20(GPUs)?branchName=master)](https://dev.azure.com/PytorchLightning/pytorch-lightning/_build/latest?definitionId=6&branchName=master) | - | - |
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
# bash generate_checkpoints.sh 1.0.2 1.0.3 1.0.4
|
||||
|
||||
LEGACY_PATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
|
||||
FROZEN_MIN_PT_VERSION="1.4"
|
||||
|
||||
echo $LEGACY_PATH
|
||||
# install some PT version here so it does not need to reinstalled for each env
|
||||
|
@ -22,7 +23,7 @@ do
|
|||
# activate and install PL version
|
||||
source "$ENV_PATH/bin/activate"
|
||||
# there are problem to load ckpt in older versions since they are saved the newer versions
|
||||
pip install "pytorch_lightning==$ver" "torch==1.3" --quiet --no-cache-dir
|
||||
pip install "pytorch_lightning==$ver" "torch==$FROZEN_MIN_PT_VERSION" --quiet --no-cache-dir
|
||||
|
||||
python --version
|
||||
pip --version
|
||||
|
|
Loading…
Reference in New Issue