-
Notifications
You must be signed in to change notification settings - Fork 1k
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
set default num_cpu_threads_per_process to improve oob performance #562
Conversation
The documentation is not available anymore as the PR was closed or merged. |
@sgugger @yao-matrix @liangan1 please help review it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this!
Signed-off-by: Wang, Yi A <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for iterating! Left a couple more nits.
src/accelerate/commands/launch.py
Outdated
if args.num_cpu_threads_per_process == 0: | ||
args.num_cpu_threads_per_process = 1 | ||
logger.warn( | ||
f"num_cpu_threads_per_process unset, we pick as {args.num_cpu_threads_per_process} to improve oob performance" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
f"num_cpu_threads_per_process unset, we pick as {args.num_cpu_threads_per_process} to improve oob performance" | |
f"num_cpu_threads_per_process unset, we set it at {args.num_cpu_threads_per_process} to improve oob performance." |
Signed-off-by: Wang, Yi A <[email protected]>
Signed-off-by: Wang, Yi A [email protected]