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

multi-GPU training breaks for main_pretrain.py #3

Open
alkalait opened this issue Jul 1, 2021 · 0 comments
Open

multi-GPU training breaks for main_pretrain.py #3

alkalait opened this issue Jul 1, 2021 · 0 comments

Comments

@alkalait
Copy link

alkalait commented Jul 1, 2021

Multi-GPU training (say, with devices 0, 1)

python main_pretrain.py \
  --data_dir datasets/seco_1m --data_mode seco \
  --base_encoder resnet18 --gpus 2

suffers from the same issue raised in Lightning-AI/pytorch-lightning#1506

The way to deal with it is to set --replace_sampler_ddp False, like so:

python main_pretrain.py \
  --data_dir datasets/seco_1m --data_mode seco \
  --base_encoder resnet18 --gpus 2 --replace_sampler_ddp False
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