Skip to content

Commit 9c756c1

Browse files
committed
check if s0 is zero for -np check
1 parent b1c8843 commit 9c756c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/perplexity/perplexity.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ static void multiple_choice_score(llama_context * ctx, const common_params & par
15481548

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

0 commit comments

Comments
 (0)