Skip to content

Commit 333820d

Browse files
authored
llama : fix progress dots (#11730)
* Update llama.cpp For display progress dots in terminal. Without this it didn't display dots progress during loading model from file. * Update llama.cpp removed trailing spaces
1 parent c026ba3 commit 333820d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/llama.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9428,7 +9428,6 @@ static struct llama_model * llama_model_load_from_file_impl(
94289428
struct llama_model_params params) {
94299429
ggml_time_init();
94309430

9431-
llama_model * model = new llama_model(params);
94329431

94339432
unsigned cur_percentage = 0;
94349433
if (params.progress_callback == NULL) {
@@ -9447,6 +9446,8 @@ static struct llama_model * llama_model_load_from_file_impl(
94479446
};
94489447
}
94499448

9449+
llama_model * model = new llama_model(params);
9450+
94509451
// create list of devices to use with this model
94519452
if (params.devices) {
94529453
for (ggml_backend_dev_t * dev = params.devices; *dev; ++dev) {

0 commit comments

Comments
 (0)