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

Add env var for configuring the maximum number of processes to use for dataset processing #1606

Merged
merged 4 commits into from
Oct 22, 2024

Conversation

irenedea
Copy link
Contributor

By default we have been doing os.num_cpus() - 8 to get the number of processes to use for dataset processing. On notebooks, the number of processes is too high and causes the notebook to crash.

This PR enables configuring the maximum number of processes via env var.

@irenedea irenedea requested a review from a team as a code owner October 22, 2024 16:58
Copy link
Contributor

@milocress milocress left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a manual test?

@irenedea
Copy link
Contributor Author

@milocress Added a unit test. Is there a particular manual test you'd like me to run? I don't expect the manual runs to have any visible change.

Copy link
Contributor

@bigning bigning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thanks for the change!

@irenedea irenedea merged commit 97d7f6b into mosaicml:main Oct 22, 2024
9 checks passed
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.

3 participants