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

num_workers > 0 #13

Open
pavelbatyr opened this issue Jun 14, 2023 · 2 comments
Open

num_workers > 0 #13

pavelbatyr opened this issue Jun 14, 2023 · 2 comments

Comments

@pavelbatyr
Copy link

Hi, and thanks for the code!

I suggest using num_workers > 0 in the dataloaders. It can speed up training significantly. Using 4 workers makes training 30% faster in my case.

@harryjo97
Copy link
Owner

Hi,

Thank you for the suggestion! We would add the num_workers feature to the following line.

train_dl = DataLoader(train_ds, batch_size=config.data.batch_size, shuffle=True)

@pavelbatyr
Copy link
Author

Thanks! There's also a dataloader for molecules in utils/data_loader_mol.py

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

2 participants