Skip to content

Custom ClusterEnvironment breaks even after defining master_address and master_port abstract methods. #11025

@kaushikb11

Description

@kaushikb11

🐛 Bug

To Reproduce

In #10103, we have renamed master_{port/address} to main_{port/address}. We have followed the deprecation cycle as well, but this breaks the code as main_{port/address} are abstract methods. Not a desired behavior.

TypeError: Can't instantiate abstract class CustomClusterEnvironment with abstract methods main_address, main_port

Expected behavior

If master_{port/address} is defined, show the deprecation warnings but don't raise the error.

Environment

  • PyTorch Lightning Version (e.g., 1.5.0):
  • PyTorch Version (e.g., 1.10):
  • Python version (e.g., 3.9):
  • OS (e.g., Linux):
  • CUDA/cuDNN version:
  • GPU models and configuration:
  • How you installed PyTorch (conda, pip, source):
  • If compiling from source, the output of torch.__config__.show():
  • Any other relevant information:

Additional context

cc @tchaton @rohitgr7 @awaelchli @ananthsub

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions