Skip to content

Commit d854348

Browse files
committed
perplexity only uses pp_threads
1 parent 5624a29 commit d854348

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/perplexity/perplexity.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void perplexity(llama_context * ctx, const gpt_params & params) {
6666
tokens[batch_start] = llama_token_bos();
6767
}
6868

69-
if (llama_eval(ctx, tokens.data() + batch_start, batch_size, j * n_batch, params.n_threads, params.n_threads)) {
69+
if (llama_eval(ctx, tokens.data() + batch_start, batch_size, j * n_batch, params.n_threads, params.pp_threads)) {
7070
fprintf(stderr, "%s : failed to eval\n", __func__);
7171
return;
7272
}
@@ -337,8 +337,8 @@ int main(int argc, char ** argv) {
337337
// print system information
338338
{
339339
fprintf(stderr, "\n");
340-
fprintf(stderr, "system_info: n_threads = %d / %d | %s\n",
341-
params.n_threads, std::thread::hardware_concurrency(), llama_print_system_info());
340+
fprintf(stderr, "system_info: pp_threads = %d / %d | %s\n",
341+
params.pp_threads, std::thread::hardware_concurrency(), llama_print_system_info());
342342
}
343343

344344
if (params.hellaswag) {

0 commit comments

Comments
 (0)