better n_threads

This commit is contained in:
slaren 2023-08-22 21:19:29 +02:00
parent fdd8bf5903
commit 44f5e2ad77

View file

@ -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();