Skip to content

Commit

Permalink
Lint fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
knc6 committed Apr 28, 2024
1 parent 63ba5e3 commit 6e19d56
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions alignn/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@


def setup(rank, world_size):
"""Set up multi GPU rank."""
os.environ["MASTER_ADDR"] = "localhost"
os.environ["MASTER_PORT"] = "12355"
# Initialize the distributed environment.
Expand Down
2 changes: 1 addition & 1 deletion alignn/train_alignn.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ def train_for_folder(
if __name__ == "__main__":
args = parser.parse_args(sys.argv[1:])
world_size = int(torch.cuda.device_count())
rank = [0, 1]
print("world_size", world_size)
torch.multiprocessing.spawn(
train_for_folder,
args=(
Expand Down

0 comments on commit 6e19d56

Please sign in to comment.