Skip to content

Commit f790cd6

Browse files
ggerganovmglambda
authored andcommitted
cont : fix mmap flag print (ggml-org#11699)
1 parent 12b210c commit f790cd6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/llama-model.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ bool llama_model::load_tensors(llama_model_loader & ml) {
12751275

12761276
const bool use_mmap_buffer = true;
12771277

1278-
LLAMA_LOG_INFO("%s: loading model tensors, this can take a while... (mmap = %s)\n", __func__, use_mmap_buffer ? "true" : "false");
1278+
LLAMA_LOG_INFO("%s: loading model tensors, this can take a while... (mmap = %s)\n", __func__, ml.use_mmap ? "true" : "false");
12791279

12801280
// build a list of buffer types for the CPU and GPU devices
12811281
pimpl->cpu_buft_list = make_cpu_buft_list(devices);

src/llama.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9430,7 +9430,6 @@ static struct llama_model * llama_model_load_from_file_impl(
94309430
struct llama_model_params params) {
94319431
ggml_time_init();
94329432

9433-
94349433
unsigned cur_percentage = 0;
94359434
if (params.progress_callback == NULL) {
94369435
params.progress_callback_user_data = &cur_percentage;

0 commit comments

Comments
 (0)