|
@@ -9428,7 +9428,6 @@ static struct llama_model * llama_model_load_from_file_impl(
|
|
|
struct llama_model_params params) {
|
|
struct llama_model_params params) {
|
|
|
ggml_time_init();
|
|
ggml_time_init();
|
|
|
|
|
|
|
|
- llama_model * model = new llama_model(params);
|
|
|
|
|
|
|
|
|
|
unsigned cur_percentage = 0;
|
|
unsigned cur_percentage = 0;
|
|
|
if (params.progress_callback == NULL) {
|
|
if (params.progress_callback == NULL) {
|
|
@@ -9447,6 +9446,8 @@ static struct llama_model * llama_model_load_from_file_impl(
|
|
|
};
|
|
};
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ llama_model * model = new llama_model(params);
|
|
|
|
|
+
|
|
|
// create list of devices to use with this model
|
|
// create list of devices to use with this model
|
|
|
if (params.devices) {
|
|
if (params.devices) {
|
|
|
for (ggml_backend_dev_t * dev = params.devices; *dev; ++dev) {
|
|
for (ggml_backend_dev_t * dev = params.devices; *dev; ++dev) {
|