Skip to content

Commit 379f703

Browse files
magicseNeoZhangJianyu
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 718eeea commit 379f703

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
@@ -9432,7 +9432,6 @@ static struct llama_model * llama_model_load_from_file_impl(
94329432
struct llama_model_params params) {
94339433
ggml_time_init();
94349434

9435-
llama_model * model = new llama_model(params);
94369435

94379436
unsigned cur_percentage = 0;
94389437
if (params.progress_callback == NULL) {
@@ -9451,6 +9450,8 @@ static struct llama_model * llama_model_load_from_file_impl(
94519450
};
94529451
}
94539452

9453+
llama_model * model = new llama_model(params);
9454+
94549455
// create list of devices to use with this model
94559456
if (params.devices) {
94569457
for (ggml_backend_dev_t * dev = params.devices; *dev; ++dev) {

0 commit comments

Comments
 (0)