Fix simple to use new per-node thread count
This commit is contained in:
parent
619bf62acf
commit
01be58caa9
1 changed files with 2 additions and 2 deletions
|
@ -53,8 +53,8 @@ int main(int argc, char ** argv) {
|
|||
|
||||
ctx_params.seed = 1234;
|
||||
ctx_params.n_ctx = 2048;
|
||||
ctx_params.n_threads = params.n_threads;
|
||||
ctx_params.n_threads_batch = params.n_threads_batch == -1 ? params.n_threads : params.n_threads_batch;
|
||||
ctx_params.n_threads = params.n_threads[0];
|
||||
ctx_params.n_threads_batch = params.n_threads_batch[0] == -1 ? params.n_threads[0] : params.n_threads_batch[0];
|
||||
|
||||
llama_context * ctx = llama_new_context_with_model(model, ctx_params);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue