Skip to content

Commit 1faf7e5

Browse files
ngxsonslaren
andcommitted
do not disable mmap with lora
Co-authored-by: slaren <[email protected]>
1 parent 4fe0861 commit 1faf7e5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

common/common.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -681,15 +681,13 @@ bool gpt_params_find_arg(int argc, char ** argv, const std::string & arg, gpt_pa
681681
if (arg == "--lora") {
682682
CHECK_ARG
683683
params.lora_adapter.emplace_back(argv[i], 1.0f);
684-
params.use_mmap = false;
685684
return true;
686685
}
687686
if (arg == "--lora-scaled") {
688687
CHECK_ARG
689688
const char* lora_adapter = argv[i];
690689
CHECK_ARG
691690
params.lora_adapter.emplace_back(lora_adapter, std::stof(argv[i]));
692-
params.use_mmap = false;
693691
return true;
694692
}
695693
if (arg == "--lora-base") {

0 commit comments

Comments
 (0)