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 distributed training affects performance? #102

Open
tanbuzheng opened this issue Sep 10, 2023 · 4 comments
Open

How distributed training affects performance? #102

tanbuzheng opened this issue Sep 10, 2023 · 4 comments

Comments

@tanbuzheng
Copy link

Hi, your work is great!May I ask you a queastion?
I found that using different ddp settings has a greater impact on the final result. How to overcome this? In other words, how to set the batch size and number of GPUs appropriately?

@fenglinglwb
Copy link
Owner

We conducted all experiments using 8 GPUs. In my experience, larger batches may help.

@tanbuzheng
Copy link
Author

Thanks for your reply! I have another question.
In training_loop.py, I found you used a class "InfiniteSampler" as training sampler. Is there any difference between this and torch.utils.data.distributed.DistributedSampler?

@fenglinglwb
Copy link
Owner

Actually, I didn't dive into this point. We mainly build our framework based on the StyleGAN-ada code.

@tanbuzheng
Copy link
Author

OK, I see. Thanks a lot.

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

2 participants