Update llama.cpp

Co-authored-by: compilade <git@compilade.net>
This commit is contained in:
Justine Tunney 2024-05-21 16:19:59 -07:00 committed by GitHub
parent 5224b6534e
commit bc9a2e8e7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17342,7 +17342,7 @@ float * llama_get_embeddings(struct llama_context * ctx) {
return ctx->embd; return ctx->embd;
} }
static float * llama_get_embeddings_ith_fail(int i, std::string reason) { static float * llama_get_embeddings_ith_fail(int i, const std::string & reason) {
LLAMA_LOG_ERROR("%s: invalid embeddings id %d, reason: %s\n", __func__, i, reason.c_str()); LLAMA_LOG_ERROR("%s: invalid embeddings id %d, reason: %s\n", __func__, i, reason.c_str());
#ifndef NDEBUG #ifndef NDEBUG
GGML_ASSERT(false); GGML_ASSERT(false);