mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-10 17:14:36 +00:00
added optional force versioning flag
This commit is contained in:
parent
39f3d1cf48
commit
2edbcebe27
3 changed files with 17 additions and 5 deletions
13
expose.cpp
13
expose.cpp
|
@ -35,7 +35,18 @@ extern "C"
|
|||
{
|
||||
std::string model = inputs.model_filename;
|
||||
lora_filename = inputs.lora_filename;
|
||||
file_format = check_file_format(model.c_str());
|
||||
|
||||
int forceversion = inputs.forceversion;
|
||||
|
||||
if(forceversion==0)
|
||||
{
|
||||
file_format = check_file_format(model.c_str());
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("\nWARNING: FILE FORMAT FORCED TO VER %d\nIf incorrect, loading may fail or crash.\n",forceversion);
|
||||
file_format = (FileFormat)forceversion;
|
||||
}
|
||||
|
||||
//first digit is whether configured, second is platform, third is devices
|
||||
int parseinfo = inputs.clblast_info;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue