You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My custom dataset using a numpy sampler to get data. If I cannot use different seed for different GPU/nodes, it will use the same seed forked from main process, which will sample the same data. So, I want to get global rank in LightningDataModule.train_dataloader to create different dataloader for different GPU/nodes. I see there is a local rank property in here, but when I try to use self.local_rank to get it, it fails.
Description & Motivation
My custom dataset using a numpy sampler to get data. If I cannot use different seed for different GPU/nodes, it will use the same seed forked from main process, which will sample the same data. So, I want to get global rank in
LightningDataModule.train_dataloader
to create different dataloader for different GPU/nodes. I see there is a local rank property in here, but when I try to useself.local_rank
to get it, it fails.Pitch
No response
Alternatives
No response
Additional context
No response
cc @Borda
The text was updated successfully, but these errors were encountered: