Skip to content

Commit 5224b65

Browse files
jartcompilade
andauthored
Update llama.cpp
Co-authored-by: compilade <git@compilade.net>
1 parent ac6bed1 commit 5224b65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17319,7 +17319,7 @@ float * llama_get_logits_ith(struct llama_context * ctx, int32_t i) {
1731917319
if (i < 0) {
1732017320
j = ctx->n_outputs + i;
1732117321
if (j < 0) {
17322-
return llama_get_logits_ith_fail(i, format("negative index out of range [0, %d)", ctx->n_outputs));
17322+
return llama_get_logits_ith_fail(i, format("negative index out of range [%d, 0)", -ctx->n_outputs));
1732317323
}
1732417324
} else if ((size_t) i >= ctx->output_ids.size()) {
1732517325
return llama_get_logits_ith_fail(i, format("out of range [0, %lu)", ctx->output_ids.size()));

0 commit comments

Comments
 (0)