Skip to content

Commit 3a55c53

Browse files
authored
Merge branch 'ikawrakow:main' into main
2 parents bc00169 + 9a651e8 commit 3a55c53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/llama.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3975,7 +3975,7 @@ struct llama_model * llama_load_model_from_file(
39753975
// if device is specified, only those in the devices are included in the model->devices
39763976

39773977
std::vector<std::string> params_devices = {};
3978-
if (!striequals(params.devices, "")) {
3978+
if (params.devices && !striequals(params.devices, "")) {
39793979
params_devices = llama_string_split(params.devices, ",");
39803980
params_devices = extract_ip_from_rpc_device(params_devices);
39813981
}
@@ -4000,7 +4000,6 @@ struct llama_model * llama_load_model_from_file(
40004000
} else {
40014001
LLAMA_LOG_ERROR("%s backend not available.\n", device.c_str());
40024002
}
4003-
40044003
}
40054004
} else {
40064005
// add all backend buffer to device

0 commit comments

Comments
 (0)