fix default model alias

This commit is contained in:
anon 2023-05-31 10:37:52 -03:00
parent aa2bbb2d35
commit 27911d6d68

View file

@ -781,6 +781,10 @@ int main(int argc, char **argv)
llama.verbose = sparams.verbose; llama.verbose = sparams.verbose;
llama.json_indent = sparams.verbose ? 4 : -1; llama.json_indent = sparams.verbose ? 4 : -1;
if (params.model_alias == "unknown") {
params.model_alias = params.model;
}
// load the model // load the model
if (!llama.loadModel(params)) if (!llama.loadModel(params))
{ {