better n_threads
This commit is contained in:
parent
fdd8bf5903
commit
44f5e2ad77
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ struct chat {
|
|||
llama_context * ctx;
|
||||
|
||||
std::string system;
|
||||
int n_threads = 8;
|
||||
int n_threads = get_num_physical_cores();
|
||||
|
||||
chat(const std::string & model_file, const std::string & system) : system(system) {
|
||||
lparams = llama_context_default_params();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue