mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-18 16:55:14 +02:00
Merge commit '01d8eaa28d57bfc6d06e30072085ed0ef12e06c5' into concedo_experimental
# Conflicts: # build-xcframework.sh # scripts/sync_vendor.py # tests/test-backend-ops.cpp # tools/mtmd/CMakeLists.txt # tools/rpc/rpc-server.cpp
This commit is contained in:
+6
-1
@@ -2681,6 +2681,8 @@ ModelLoadResult gpttype_load_model(const load_model_inputs inputs, FileFormat in
|
||||
}
|
||||
llama_attach_threadpool(llama_ctx_v4, threadpool1, threadpool2);
|
||||
|
||||
std::vector<llama_adapter_lora *> loras;
|
||||
std::vector<float> lorascales;
|
||||
if (lora_filename != "")
|
||||
{
|
||||
printf("\nAttempting to apply LORA adapter: %s\n", lora_filename.c_str());
|
||||
@@ -2689,7 +2691,10 @@ ModelLoadResult gpttype_load_model(const load_model_inputs inputs, FileFormat in
|
||||
fprintf(stderr, "%s: error: failed to apply lora adapter\n", __func__);
|
||||
return ModelLoadResult::FAIL;
|
||||
}
|
||||
llama_set_adapter_lora(llama_ctx_v4, adapter, inputs.lora_multiplier);
|
||||
|
||||
loras.push_back(adapter);
|
||||
lorascales.push_back(inputs.lora_multiplier);
|
||||
llama_set_adapters_lora(llama_ctx_v4, loras.data(), loras.size(), lorascales.data());
|
||||
}
|
||||
|
||||
if(mmproj_filename != "" && file_format==FileFormat::GGUF_GENERIC)
|
||||
|
||||
Reference in New Issue
Block a user