Skip to content

Commit 46d1b6e

Browse files
committed
disable mmap for now
1 parent 97563d3 commit 46d1b6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llama.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4845,7 +4845,7 @@ static void llama_model_quantize_internal(const std::string & fname_inp, const s
48454845
nthread = std::thread::hardware_concurrency();
48464846
}
48474847

4848-
std::unique_ptr<llama_model_loader> ml(new llama_model_loader(fname_inp, /*use_mmap*/ true));
4848+
std::unique_ptr<llama_model_loader> ml(new llama_model_loader(fname_inp, /*use_mmap*/ false));
48494849
if (ml->use_mmap) {
48504850
ml->mapping.reset(new llama_mmap(&ml->file, /* prefetch */ 0, ggml_is_numa()));
48514851
}

0 commit comments

Comments
 (0)