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
Hi, I've been training a model on 4x8GPU nodes with fabric on a local slurm machine. It has worked well but a bit slow when loading data, so I'm trying to use litdata.optimize and streaming dataset to speed up the loading. I find that when I change the number of nodes provided to the process, fabric does recognize the number of nodes and prints out the correct rank but len(StreamingDataLoader) does not change regardless of the number of nodes. What could be happening here?
To be more specific, the dataset itself is length N, and len(dataloader) also just happens to be N // batch_size instead of N // (total device count x batch_size). It also doesn't look like this is the global batch size, since the memory usage per device is consistent when I change the number of nodes.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I've been training a model on 4x8GPU nodes with fabric on a local slurm machine. It has worked well but a bit slow when loading data, so I'm trying to use
litdata.optimize
and streaming dataset to speed up the loading. I find that when I change the number of nodes provided to the process, fabric does recognize the number of nodes and prints out the correct rank butlen(StreamingDataLoader)
does not change regardless of the number of nodes. What could be happening here?To be more specific, the dataset itself is length
N
, andlen(dataloader)
also just happens to beN // batch_size
instead ofN // (total device count x batch_size)
. It also doesn't look like this is the global batch size, since the memory usage per device is consistent when I change the number of nodes.Here's how I'm setting up the dataset and fabric:
Beta Was this translation helpful? Give feedback.
All reactions