Skip to content

Commit f5cf6ad

Browse files
committed
chore(deps): bump llama.cpp to '1deee0f8d494981c32597dca8b5f8696d399b0f2'
Signed-off-by: Ettore Di Giacinto <[email protected]>
1 parent c6f0b44 commit f5cf6ad

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

backend/cpp/llama-cpp/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
LLAMA_VERSION?=9d0882840e6c3fb62965d03af0e22880ea90e012
2+
LLAMA_VERSION?=1deee0f8d494981c32597dca8b5f8696d399b0f2
33
LLAMA_REPO?=https://github.com/ggerganov/llama.cpp
44

55
CMAKE_ARGS?=

backend/cpp/llama-cpp/grpc-server.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -469,12 +469,12 @@ class BackendServiceImpl final : public backend::Backend::Service {
469469
task.id = ctx_server.queue_tasks.get_new_id();
470470
task.index = i;
471471

472-
task.prompt_tokens = std::move(inputs[i]);
472+
task.tokens = std::move(inputs[i]);
473473
task.params = server_task::params_from_json_cmpl(
474474
ctx_server.ctx,
475475
ctx_server.params_base,
476476
data);
477-
task.id_selected_slot = json_value(data, "id_slot", -1);
477+
task.id_slot = json_value(data, "id_slot", -1);
478478

479479
// OAI-compat
480480
task.params.oaicompat = OAICOMPAT_TYPE_NONE;
@@ -624,12 +624,12 @@ class BackendServiceImpl final : public backend::Backend::Service {
624624
task.id = ctx_server.queue_tasks.get_new_id();
625625
task.index = i;
626626

627-
task.prompt_tokens = std::move(inputs[i]);
627+
task.tokens = std::move(inputs[i]);
628628
task.params = server_task::params_from_json_cmpl(
629629
ctx_server.ctx,
630630
ctx_server.params_base,
631631
data);
632-
task.id_selected_slot = json_value(data, "id_slot", -1);
632+
task.id_slot = json_value(data, "id_slot", -1);
633633

634634
// OAI-compat
635635
task.params.oaicompat = OAICOMPAT_TYPE_NONE;
@@ -725,7 +725,7 @@ class BackendServiceImpl final : public backend::Backend::Service {
725725

726726
task.id = ctx_server.queue_tasks.get_new_id();
727727
task.index = i;
728-
task.prompt_tokens = std::move(tokenized_prompts[i]);
728+
task.tokens = std::move(tokenized_prompts[i]);
729729

730730
task.params.oaicompat = OAICOMPAT_TYPE_NONE;
731731
task.params.embd_normalize = embd_normalize;
@@ -819,7 +819,7 @@ class BackendServiceImpl final : public backend::Backend::Service {
819819
server_task task = server_task(SERVER_TASK_TYPE_RERANK);
820820
task.id = ctx_server.queue_tasks.get_new_id();
821821
task.index = i;
822-
task.prompt_tokens = std::move(tmp);
822+
task.tokens = std::move(tmp);
823823
tasks.push_back(std::move(task));
824824
}
825825

0 commit comments

Comments
 (0)