Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions tools/perplexity/perplexity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ static void hellaswag_score(llama_context * ctx, const common_params & params) {
}

if (i0 == i1) {
LOG_ERR("%s : task %zu does not fit in the context window\n", __func__, i0);
LOG_ERR("%s : task %zu does not fit in the context window (requires %lu tokens)\n", __func__, i0, hs_data[i0].required_tokens);
return;
}

Expand Down Expand Up @@ -1213,7 +1213,7 @@ static void winogrande_score(llama_context * ctx, const common_params & params)
}

if (i0 == i1) {
LOG_ERR("%s : task %zu does not fit in the context window\n", __func__, i0);
LOG_ERR("%s : task %zu does not fit in the context window (requires %lu tokens)\n", __func__, i0, data[i0].required_tokens);
return;
}

Expand Down Expand Up @@ -1548,6 +1548,10 @@ static void multiple_choice_score(llama_context * ctx, const common_params & par

int num_answers = cur_task.seq_tokens.size();
if (s0 + num_answers > max_seq) {
if (s0 == 0) {
LOG_ERR("%s : task %zu requires a higher -np|--parallel value (at least %d)\n", __func__, i0, num_answers);
return;
}
break;
}

Expand Down Expand Up @@ -1588,7 +1592,7 @@ static void multiple_choice_score(llama_context * ctx, const common_params & par
}

if (i0 == i1) {
LOG_ERR("%s : task %zu does not fit in the context window\n", __func__, i0);
LOG_ERR("%s : task %zu does not fit in the context window (requires %lu tokens)\n", __func__, i0, tasks[i0].required_tokens);
return;
}

Expand Down
Loading