-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added mixed * added mixed * added mixed * added mixed * added mixed * added mixed * added mixed * finished simclr * added mixed * added mixed * added mixed * added moco * added moco * added moco * added moco * added moco * added moco * added train step return * added mixed * added mixed * added mixed * added mixed * added moco * added moco * added moco * added moco * added moco * added moco * added train step return * times tests Co-authored-by: Jirka <jirka@pytorchlightning.ai>
- Loading branch information
1 parent
3879c3a
commit b7ab0ef
Showing
9 changed files
with
126 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import os | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
williamFalcon
Author
Contributor
|
||
from argparse import ArgumentParser | ||
|
||
|
||
def submit(master_address, master_port, world_size, node_rank, local_rank): | ||
os.environ['MASTER_ADDR'] = str(master_address) | ||
os.environ['MASTER_PORT'] = str(master_port) | ||
os.environ['NODE_RANK'] = str(node_rank) | ||
os.environ['WORLD_SIZE'] = str(world_size) | ||
os.environ['LOCAL_RANK'] = str(local_rank) | ||
|
||
|
||
if __name__ == '__main__': | ||
parser = ArgumentParser() | ||
parser.add_argument('master_address', default=str) | ||
parser.add_argument('master_port', default=str) | ||
parser.add_argument('node_rank', default=str) | ||
parser.add_argument('world_size', default=str) | ||
parser.add_argument('local_rank', default=str) | ||
|
||
|
||
# grid train main.py --local --world_size 16 --local_gpus '0,1,2,3' --node_rank 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
can we use
pl_bolts/submit.py
instead? :]