Skip to content
This repository has been archived by the owner on Mar 15, 2024. It is now read-only.

Question about different seeds per gpu with DDP #239

Open
HIT-LiuChen opened this issue Jan 25, 2024 · 0 comments
Open

Question about different seeds per gpu with DDP #239

HIT-LiuChen opened this issue Jan 25, 2024 · 0 comments

Comments

@HIT-LiuChen
Copy link

deit/main.py

Line 182 in 35cd455

seed = args.seed + utils.get_rank()

In the issue Why should we set different seed per gpu with DDP, the explanation is that the different seed contributes to the not same data-augmentations on different GPUs. However, I have another question. The different seeds on different GPUs also make different model weight initialization. I dont find the synchronous code like torch.distributed.boardcast(). Is the different initilization helpful in distributed training process? Or, would you provide the synchronous code on model initilization?

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

No branches or pull requests

1 participant