Skip to content

Commit

Permalink
fix(llama.cpp): adapt to upstream naming changes
Browse files Browse the repository at this point in the history
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
  • Loading branch information
mudler committed Aug 6, 2024
1 parent 9c2c727 commit 20d50d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/cpp/llama/grpc-server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2260,7 +2260,7 @@ static void params_parse(const backend::ModelOptions* request,
}
// get the directory of modelfile
std::string model_dir = params.model.substr(0, params.model.find_last_of("/\\"));
params.lora_adapter.push_back(std::make_tuple(model_dir + "/"+request->loraadapter(), scale_factor));
params.lora_adapters.push_back(std::make_tuple(model_dir + "/"+request->loraadapter(), scale_factor));
}
params.use_mlock = request->mlock();
params.use_mmap = request->mmap();
Expand Down

0 comments on commit 20d50d5

Please sign in to comment.