Skip to content

Commit

Permalink
pin pytorch_lighting to 1.3.8 (horovod#3117)
Browse files Browse the repository at this point in the history
Fix compatibility for torch==1.4.0

Signed-off-by: Chongxiao Cao <chongxiaoc@uber.com>
  • Loading branch information
chongxiaoc authored Aug 18, 2021
1 parent 1a672ed commit 9378ca5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
16 changes: 8 additions & 8 deletions docker-compose.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ services:
TENSORFLOW_PACKAGE: tensorflow-cpu==2.6.0
KERAS_PACKAGE: None
PYTORCH_PACKAGE: torch==1.9.0+cpu
PYTORCH_LIGHTNING_PACKAGE: pytorch-lightning==1.3.7.post0
PYTORCH_LIGHTNING_PACKAGE: pytorch-lightning==1.3.8
TORCHVISION_PACKAGE: torchvision==0.10.0+cpu
MXNET_PACKAGE: mxnet==1.8.0.post0
PYSPARK_PACKAGE: pyspark==3.1.2
Expand Down Expand Up @@ -57,7 +57,7 @@ services:
TENSORFLOW_PACKAGE: tensorflow==1.15.5
KERAS_PACKAGE: keras==2.2.4
PYTORCH_PACKAGE: torch==1.6.0+cpu
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.1.0
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.3.8
TORCHVISION_PACKAGE: torchvision==0.7.0+cpu
MXNET_PACKAGE: mxnet==1.5.1.post0
# there is no mxnet-1.6.0.post0 and mxnet-1.6.0 does not work with horovod
Expand Down Expand Up @@ -146,7 +146,7 @@ services:
TENSORFLOW_PACKAGE: tensorflow-gpu==2.4.3
KERAS_PACKAGE: keras==2.3.1
PYTORCH_PACKAGE: torch==1.7.1+cu101
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.2.9
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.3.8
TORCHVISION_PACKAGE: torchvision==0.8.2+cu101
MXNET_PACKAGE: mxnet-cu101==1.6.0.post0
# we additionally test the previous framework combination (CUDA 10.x) with mxnet 1.7.x
Expand All @@ -161,7 +161,7 @@ services:
TENSORFLOW_PACKAGE: tensorflow-gpu==2.4.3
KERAS_PACKAGE: keras==2.3.1
PYTORCH_PACKAGE: torch==1.7.1+cu101
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.2.9
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.3.8
TORCHVISION_PACKAGE: torchvision==0.8.2+cu101
MXNET_PACKAGE: mxnet-cu101==1.7.0.post1
# we deviate from mxnet1_7_0_p2 here as other frameworks target CUDA 11.x and
Expand All @@ -176,7 +176,7 @@ services:
TENSORFLOW_PACKAGE: tensorflow-gpu==2.5.1
KERAS_PACKAGE: None
PYTORCH_PACKAGE: torch==1.8.1+cu111
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.2.9
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.3.8
TORCHVISION_PACKAGE: torchvision==0.9.1+cu111
MXNET_PACKAGE: mxnet-cu112==1.8.0.post0
test-gpu-openmpi-gloo-py3_8-tf2_6_0-keras_none-torch1_9_0-mxnet1_8_0_p0-pyspark3_1_2:
Expand All @@ -190,7 +190,7 @@ services:
TENSORFLOW_PACKAGE: tensorflow-gpu==2.6.0
KERAS_PACKAGE: None
PYTORCH_PACKAGE: torch==1.9.0+cu111
PYTORCH_LIGHTNING_PACKAGE: pytorch-lightning==1.3.7.post0
PYTORCH_LIGHTNING_PACKAGE: pytorch-lightning==1.3.8
TORCHVISION_PACKAGE: torchvision==0.10.0+cu111
MXNET_PACKAGE: mxnet-cu112==1.8.0.post0
test-gpu-gloo-py3_8-tfhead-keras_none-torchhead-mxnethead-pyspark3_1_2:
Expand All @@ -203,7 +203,7 @@ services:
TENSORFLOW_PACKAGE: tf-nightly-gpu
KERAS_PACKAGE: None
PYTORCH_PACKAGE: torch-nightly-cu111
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.2.9
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.3.8
TORCHVISION_PACKAGE: torchvision
MXNET_PACKAGE: mxnet-nightly-cu112

Expand All @@ -218,7 +218,7 @@ services:
TENSORFLOW_PACKAGE: tensorflow-gpu==2.6.0
KERAS_PACKAGE: None
PYTORCH_PACKAGE: torch==1.9.0+cu111
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.3.7.post0
PYTORCH_LIGHTNING_PACKAGE: pytorch_lightning==1.3.8
TORCHVISION_PACKAGE: torchvision==0.10.0+cu111
MXNET_PACKAGE: mxnet-cu112==1.8.0.post0
HOROVOD_BUILD_FLAGS: ""
Expand Down
2 changes: 1 addition & 1 deletion docs/spark.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Horovod Spark Estimators additionally require at least one of these combinations

* ``tensorflow-gpu >= 1.12.0`` or ``tensorflow >= 1.12.0`` (for ``KerasEstimator``)
* ``torch >= 1.0.0`` and ``tensorboard >= 1.14.0`` (for ``TorchEstimator``)
* ``torch >= 1.4.0`` and ``pytorch_lightning >= 1.4.1`` (for ``LightningEstimator``)
* ``torch >= 1.4.0`` and ``pytorch_lightning >= 1.3.8`` (for ``LightningEstimator``)


Horovod Spark Estimators
Expand Down
2 changes: 1 addition & 1 deletion horovod/spark/lightning/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
import torch
import torch.utils.data

MIN_PL_VERSION = "1.4.1"
MIN_PL_VERSION = "1.3.8"


def _torch_param_serialize(param_name, param_val):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def build_extensions(self):
'keras==2.3.1',
'torch==1.4.0',
'torchvision==0.5.0',
'pytorch_lightning>=1.4.1',
'pytorch_lightning>=1.3.8',
'mxnet==1.5.0',
'pyspark==3.0.1'] + spark_require_list
# torchvision 0.5.0 depends on torch==1.4.0
Expand Down

0 comments on commit 9378ca5

Please sign in to comment.