Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref: adding compute environments (1/n) #3837

Merged
merged 3 commits into from
Oct 4, 2020
Merged

ref: adding compute environments (1/n) #3837

merged 3 commits into from
Oct 4, 2020

Conversation

williamFalcon
Copy link
Contributor

ref: adding compute environments (1/n)

@pep8speaks
Copy link

pep8speaks commented Oct 4, 2020

Hello @williamFalcon! Thanks for updating this PR.

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-10-04 04:38:16 UTC

@mergify mergify bot requested a review from a team October 4, 2020 04:27
@codecov
Copy link

codecov bot commented Oct 4, 2020

Codecov Report

Merging #3837 into master will decrease coverage by 0%.
The diff coverage is 37%.

@@          Coverage Diff           @@
##           master   #3837   +/-   ##
======================================
- Coverage      88%     88%   -0%     
======================================
  Files         111     115    +4     
  Lines        8812    8882   +70     
======================================
+ Hits         7769    7795   +26     
- Misses       1043    1087   +44     

def __init__(self, world_size):
super().__init__(world_size)

def master_address(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shall it be rather a property?

port = os.environ.get('MASTER_PORT')
return port

def world_size(self):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this probably also does not change during training, so a property?

@@ -0,0 +1,13 @@
class ClusterEnvironment:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to the file general - missing Licence

@@ -0,0 +1,3 @@
from pytorch_lightning.cluster_environments.cluster_environment import ClusterEnvironment
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we rename this package just to environments as TE is not a true cluster and there may be another non cluster evns

@mergify mergify bot requested a review from a team October 4, 2020 07:48
@williamFalcon williamFalcon merged commit 093535d into master Oct 4, 2020
@williamFalcon williamFalcon deleted the slu2 branch October 4, 2020 17:37
@Borda Borda added the refactor label Oct 4, 2020
@Borda Borda added this to the 0.10.0 milestone Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants