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

Slow training with large batch size #72

Open
favyen2 opened this issue Oct 4, 2024 · 0 comments
Open

Slow training with large batch size #72

favyen2 opened this issue Oct 4, 2024 · 0 comments

Comments

@favyen2
Copy link
Collaborator

favyen2 commented Oct 4, 2024

pytorch default dataloader has each worker load one batch, so with a large batch size like batch_size=64, every worker is loading 64 windows sequentially, and we have to wait for the first worker to finish an entire batch before the training can start.

Maybe it'd be better to form a batch by combining items across workers, given that loading from GCS can be slow?

Or maybe we should switch to Weka and find a good way to sync between GCS and Weka, that could solve the problem.

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