From cc363da1b6e57c8097443763cd5cade37c4d9a9f Mon Sep 17 00:00:00 2001 From: Justine Tunney Date: Tue, 21 May 2024 16:20:05 -0700 Subject: [PATCH] Update llama.cpp Co-authored-by: compilade --- llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llama.cpp b/llama.cpp index 6897f9c68..16cbc65dc 100644 --- a/llama.cpp +++ b/llama.cpp @@ -17360,7 +17360,7 @@ float * llama_get_embeddings_ith(struct llama_context * ctx, int32_t i) { j = ctx->n_outputs + i; if (j < 0) { 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()) { return llama_get_embeddings_ith_fail(