rpc : fix regression when --device is used (#15981)

Fix regression introduced with commit 50f4281a6
This commit is contained in:
Radoslav Gerganov 2025-09-14 12:28:18 +03:00 committed by GitHub
parent 9ecb884346
commit 918b26f197
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -227,7 +227,9 @@ static ggml_backend_t create_backend(const rpc_server_params & params) {
}
}
backend = ggml_backend_init_best();
if (!backend) {
backend = ggml_backend_init_best();
}
if (backend) {
fprintf(stderr, "%s: using %s backend\n", __func__, ggml_backend_name(backend));