Skip to content

Commit

Permalink
llama : fix progress dots (#11730)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
magicse authored Feb 7, 2025
1 parent c026ba3 commit 333820d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/llama.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9428,7 +9428,6 @@ static struct llama_model * llama_model_load_from_file_impl(
struct llama_model_params params) {
ggml_time_init();

llama_model * model = new llama_model(params);

unsigned cur_percentage = 0;
if (params.progress_callback == NULL) {
Expand All @@ -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
if (params.devices) {
for (ggml_backend_dev_t * dev = params.devices; *dev; ++dev) {
Expand Down

0 comments on commit 333820d

Please sign in to comment.