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

fix cpu omp num threads set #2755

Merged
merged 4 commits into from
May 10, 2024
Merged

Conversation

jiqing-feng
Copy link
Contributor

@jiqing-feng jiqing-feng commented May 9, 2024

Hi @muellerzr

This PR fixed the cpu num threads set. We should set a default value if the env parameter OMP_NUM_THREADS is not set.
Besides, we should keep OMP_NUM_THREADS instead of replacing it in launch.py. Could you pls review it? Thx!

Copy link
Collaborator

@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

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

This makes sense to me from what I can tell. Thanks for the fine-tuning :)

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@muellerzr
Copy link
Collaborator

@jiqing-feng can you run make style; make quality?

@jiqing-feng
Copy link
Contributor Author

@jiqing-feng can you run make style; make quality?

Done.

@muellerzr muellerzr merged commit 8798cf0 into huggingface:main May 10, 2024
23 checks passed
muellerzr pushed a commit that referenced this pull request May 10, 2024
* fix cpu omp num threads set

* fix OMP_NUM_THREADS

* consider no-cpu usage

* fix style
muellerzr pushed a commit that referenced this pull request May 10, 2024
* fix cpu omp num threads set

* fix OMP_NUM_THREADS

* consider no-cpu usage

* fix style
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