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

Address already in use: how to enable multiple training process on one machine? #100

Open
JackyWang2001 opened this issue Oct 2, 2023 · 0 comments

Comments

@JackyWang2001
Copy link

Hi, authors. Thanks for your great work! I would like to know what changes should I make to enable training two process on one machine, which has 8 GPUs in total. I used the first four for training a model and when I tried to use the left four for another model, I got the error message

Traceback (most recent call last):
File "/mnt/sda/TEL_syn/main.py", line 185, in
handle_distributed(args_parser, os.path.expanduser(os.path.abspath(file)))
File "/mnt/sda/TEL_syn/lib/utils/distributed.py", line 31, in handle_distributed
_setup_process_group(args)
File "/mnt/sda/TEL_syn/lib/utils/distributed.py", line 74, in _setup_process_group
torch.distributed.init_process_group(
File "/home/jiw010/anaconda3/envs/tel/lib/python3.8/site-packages/torch/distributed/dist
ributed_c10d.py", line 500, in init_process_group
store, rank, world_size = next(rendezvous_iterator)
File "/home/jiw010/anaconda3/envs/tel/lib/python3.8/site-packages/torch/distributed/rend
ezvous.py", line 190, in _env_rendezvous_handler
store = TCPStore(master_addr, master_port, world_size, start_daemon, timeout)
RuntimeError: Address already in use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant