server : fix --docker-repo being treated as router mode (#27416)
This commit is contained in:
@@ -133,7 +133,8 @@ int llama_server(common_params & params, int argc, char ** argv) {
|
|||||||
|
|
||||||
// router server never loads a model and must not touch the GPU
|
// router server never loads a model and must not touch the GPU
|
||||||
const bool is_router_server = params.model.path.empty()
|
const bool is_router_server = params.model.path.empty()
|
||||||
&& params.model.hf_repo.empty();
|
&& params.model.hf_repo.empty()
|
||||||
|
&& params.model.docker_repo.empty();
|
||||||
|
|
||||||
// skip device enumeration so the CUDA primary context stays uncreated
|
// skip device enumeration so the CUDA primary context stays uncreated
|
||||||
common_params_print_info(params, !is_router_server);
|
common_params_print_info(params, !is_router_server);
|
||||||
|
|||||||
Reference in New Issue
Block a user