Skip to content

Commit cc363da

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

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
@@ -17360,7 +17360,7 @@ float * llama_get_embeddings_ith(struct llama_context * ctx, int32_t i) {
1736017360
j = ctx->n_outputs + i;
1736117361
if (j < 0) {
1736217362
return llama_get_embeddings_ith_fail(
17363-
i, format("negative index out of range [0, %d)", ctx->n_outputs));
17363+
i, format("negative index out of range [%d, 0)", -ctx->n_outputs));
1736417364
}
1736517365
} else if ((size_t) i >= ctx->output_ids.size()) {
1736617366
return llama_get_embeddings_ith_fail(

0 commit comments

Comments
 (0)