Skip to content

Commit 40fda23

Browse files
magicseorca-zhang
authored andcommitted
llama : fix progress dots (ggml-org#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 39308b6 commit 40fda23

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
@@ -9446,7 +9446,6 @@ static struct llama_model * llama_model_load_from_file_impl(
94469446
struct llama_model_params params) {
94479447
ggml_time_init();
94489448

9449-
llama_model * model = new llama_model(params);
94509449

94519450
unsigned cur_percentage = 0;
94529451
if (params.progress_callback == NULL) {
@@ -9465,6 +9464,8 @@ static struct llama_model * llama_model_load_from_file_impl(
94659464
};
94669465
}
94679466

9467+
llama_model * model = new llama_model(params);
9468+
94689469
// create list of devices to use with this model
94699470
if (params.devices) {
94709471
for (ggml_backend_dev_t * dev = params.devices; *dev; ++dev) {

0 commit comments

Comments
 (0)