Show progress

This commit is contained in:
Howard Su 2023-06-10 21:47:07 +08:00
parent 921d87cad8
commit 34ca572e84

View file

@ -747,11 +747,6 @@ struct llama_model_loader {
if (use_mmap) {
mapping.reset(new llama_mmap(&file_loaders.at(0)->file, prefetch_size));
if (!lmlock) {
// Don't call the callback since the actual loading will be lazy
// and we can't measure it.
progress_callback = NULL;
}
if (lmlock) {
lmlock->init(mapping->addr);
}