From 034403de7147702223dff9039c586dead0c87f22 Mon Sep 17 00:00:00 2001 From: Justin Parker Date: Mon, 5 Feb 2024 13:42:23 -0500 Subject: [PATCH] include total "num_slots" in default_generation_settings_for_props --- examples/server/server.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 8000fee5c..9fb00ec68 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -432,6 +432,7 @@ struct llama_server_context } default_generation_settings_for_props = get_formated_generation(slots.front()); + default_generation_settings_for_props["num_slots"] = params.n_parallel; default_generation_settings_for_props["seed"] = -1; batch = llama_batch_init(n_ctx, 0, params.n_parallel);