Update llama.cpp
Co-authored-by: compilade <git@compilade.net>
This commit is contained in:
parent
bc9a2e8e7f
commit
cc363da1b6
1 changed files with 1 additions and 1 deletions
|
@ -17360,7 +17360,7 @@ float * llama_get_embeddings_ith(struct llama_context * ctx, int32_t i) {
|
||||||
j = ctx->n_outputs + i;
|
j = ctx->n_outputs + i;
|
||||||
if (j < 0) {
|
if (j < 0) {
|
||||||
return llama_get_embeddings_ith_fail(
|
return llama_get_embeddings_ith_fail(
|
||||||
i, format("negative index out of range [0, %d)", ctx->n_outputs));
|
i, format("negative index out of range [%d, 0)", -ctx->n_outputs));
|
||||||
}
|
}
|
||||||
} else if ((size_t) i >= ctx->output_ids.size()) {
|
} else if ((size_t) i >= ctx->output_ids.size()) {
|
||||||
return llama_get_embeddings_ith_fail(
|
return llama_get_embeddings_ith_fail(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue