Merge pull request #1 from ibehnam/ibehnam-patch-server-cb

allow continuous batching to be disabled
This commit is contained in:
Behnam Moh 2024-03-27 22:57:43 -04:00 committed by GitHub
commit 275ccea394
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2599,8 +2599,8 @@ static void server_params_parse(int argc, char ** argv, server_params & sparams,
} }
} else if (arg == "--embedding" || arg == "--embeddings") { } else if (arg == "--embedding" || arg == "--embeddings") {
params.embedding = true; params.embedding = true;
} else if (arg == "-cb" || arg == "--cont-batching") { } else if (arg == "-nocb" || arg == "--no-cont-batching") {
params.cont_batching = true; params.cont_batching = false;
} else if (arg == "-np" || arg == "--parallel") { } else if (arg == "-np" || arg == "--parallel") {
if (++i >= argc) { if (++i >= argc) {
invalid_param = true; invalid_param = true;