Skip to content

How to preserve dataset order when using DDP? #15164

Discussion options

You must be logged in to vote

for that you'd need to write a custom DistributedSampler and pass it to the dataloader and set Trainer(replace_sampler_ddp=False)

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@malfonsoarquimea
Comment options

@rohitgr7
Comment options

@malfonsoarquimea
Comment options

@Hannibal046
Comment options

Answer selected by malfonsoarquimea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed Generic distributed-related topic data handling Generic data-related topic strategy: ddp DistributedDataParallel
3 participants