From 1faf7e5be6b339d0ac2f3b6615200627f18aa8dc Mon Sep 17 00:00:00 2001 From: ngxson Date: Wed, 10 Jul 2024 19:51:34 +0200 Subject: [PATCH] do not disable mmap with lora Co-authored-by: slaren --- common/common.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/common/common.cpp b/common/common.cpp index 9d9980cf1..ddb1e79ae 100644 --- a/common/common.cpp +++ b/common/common.cpp @@ -681,7 +681,6 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa if (arg == "--lora") { CHECK_ARG params.lora_adapter.emplace_back(argv[i], 1.0f); - params.use_mmap = false; return true; } if (arg == "--lora-scaled") { @@ -689,7 +688,6 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa const char* lora_adapter = argv[i]; CHECK_ARG params.lora_adapter.emplace_back(lora_adapter, std::stof(argv[i])); - params.use_mmap = false; return true; } if (arg == "--lora-base") {