Disable mmap
with lora layers (#1985)
This commit is contained in:
parent
288ef8ff95
commit
557110d0ba
1 changed files with 7 additions and 3 deletions
|
@ -47,9 +47,13 @@ void llama_server_init(ext_server_params *sparams, ext_server_resp_t *err) {
|
||||||
params.model = sparams->model;
|
params.model = sparams->model;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ext_server_lora_adapter *la = sparams->lora_adapters; la != NULL;
|
if (sparams->lora_adapters != NULL) {
|
||||||
la = la->next) {
|
for (ext_server_lora_adapter *la = sparams->lora_adapters; la != NULL;
|
||||||
params.lora_adapter.push_back(std::make_tuple(la->adapter, la->scale));
|
la = la->next) {
|
||||||
|
params.lora_adapter.push_back(std::make_tuple(la->adapter, la->scale));
|
||||||
|
}
|
||||||
|
|
||||||
|
params.use_mmap = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sparams->mmproj != NULL) {
|
if (sparams->mmproj != NULL) {
|
||||||
|
|
Loading…
Reference in a new issue