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

Ensure CPU cores are utilized during training #312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AMoldskred
Copy link

I noticed while training that only 2 of my 8 cores were being utilized, even though I had configured for 8 workers.
After some digging I found this pytorch thread describing the same issue: pytorch/pytorch#101850 (comment)

Adding this to the worker_init_fn fixed the issue and sped up training significantly🚀

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

Successfully merging this pull request may close these issues.

None yet

1 participant