move final progress_callback call to load_all_data
This commit is contained in:
parent
ecb23d4ac5
commit
8ed2a8eb62
1 changed files with 4 additions and 4 deletions
|
@ -2435,6 +2435,10 @@ struct llama_model_loader {
|
|||
mapping->unmap(0, mmap_first);
|
||||
mapping->unmap(mmap_last, mapping->size - mmap_last);
|
||||
}
|
||||
|
||||
if (progress_callback) {
|
||||
progress_callback(1.0f, progress_callback_user_data);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -3691,10 +3695,6 @@ static void llm_load_tensors(
|
|||
|
||||
ml.load_all_data(ctx, progress_callback, progress_callback_user_data, buf_mmap, use_mlock ? &model.mlock_mmap : NULL);
|
||||
|
||||
if (progress_callback) {
|
||||
progress_callback(1.0f, progress_callback_user_data);
|
||||
}
|
||||
|
||||
model.mapping = std::move(ml.mapping);
|
||||
|
||||
// loading time will be recalculate after the first eval, so
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue