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

How to prefetch data? #660

Closed
speedcell4 opened this issue Dec 4, 2019 · 4 comments
Closed

How to prefetch data? #660

speedcell4 opened this issue Dec 4, 2019 · 4 comments

Comments

@speedcell4
Copy link
Contributor

Currently, the bottleneck of my model training is on the data loading part, is there any example about how to prefetch data? Like the pin_memory and num_workers arguments of torch.utils.data.DataLoader

@zhangguanheng66
Copy link
Contributor

zhangguanheng66 commented Dec 4, 2019

which dataset are you using now? We have re-written language modeling and text classification datasets to make them more compatible with torch.utils.data.DataLoader.

@Nayef211
Copy link
Contributor

@speedcell4 lmk if you're still seeing these bottlenecks. There's also dataloader v2 coming out soon which should have some improvements on data loading perf.

@speedcell4
Copy link
Contributor Author

speedcell4 commented Jun 24, 2022

a "coming out soon" without reference + closing issue without confirming
really good manner! @Nayef211

@Nayef211
Copy link
Contributor

a "coming out soon" without reference + closing issue without confirming really good manner! @Nayef211

@speedcell4 we are currently going through the backlog of issues and responding to/closing out issues that we think are legacy and may no longer be relevant as we've made a lot of updates to our library over the last couple of years. Feel free to keep the issue open if you're still running into the performance bottlenecks.

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

3 participants