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

Don't tell users to use a bad number of threads #243

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

sw
Copy link
Contributor

@sw sw commented Mar 17, 2023

The readme tells people to use the command line option "-t 8", causing 8 threads to be started. On systems with fewer than 8 cores, this causes a significant slowdown. Remove the option from the example command lines and use /proc/cpuinfo on Linux to determine a sensible default.

The readme tells people to use the command line option "-t 8", causing 8
threads to be started. On systems with fewer than 8 cores, this causes a
significant slowdown. Remove the option from the example command lines
and use /proc/cpuinfo on Linux to determine a sensible default.
@ggerganov ggerganov merged commit 367946c into ggerganov:master Mar 17, 2023
@sw sw deleted the nthreads branch March 17, 2023 17:48
@mlvzk
Copy link

mlvzk commented Mar 17, 2023

On Apple silicon CPUs with efficiency cores, you only want to run as many threads as there are performance cores, otherwise the performance gets noticeably worse.

ggerganov added a commit that referenced this pull request Mar 17, 2023
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