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

How to train a model in the same terminal when I used DDP training? #23

Closed
szhang963 opened this issue Oct 18, 2020 · 3 comments
Closed

Comments

@szhang963
Copy link

I need to open 8 terminals when I used DDP training.It is so troubling.What method can I use in one terminal?

@sgimmini
Copy link

sgimmini commented Dec 9, 2020

Use tmux to open more sessions in one terminal.

@steermomo
Copy link
Contributor

You can use the command like this

python3 -m torch.distributed.launch --nproc_per_node 4 --master_port=9495 xxx.py

This command will start a DDP without using 8 terminals

@Spijkervet
Copy link
Owner

You can use tmux to do so.

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

4 participants