llama.cpp : escape new lines in gguf kv info prints
This commit is contained in:
parent
eaefebb2c9
commit
9829b5b38b
1 changed files with 1 additions and 0 deletions
|
@ -1871,6 +1871,7 @@ struct llama_model_loader {
|
|||
if (value.size() > MAX_VALUE_LEN) {
|
||||
value = format("%s...", value.substr(0, MAX_VALUE_LEN - 3).c_str());
|
||||
}
|
||||
replace_all(value, "\n", "\\n");
|
||||
|
||||
LLAMA_LOG_INFO("%s: - kv %3d: %42s %-16s = %s\n", __func__, i, name, type_name.c_str(), value.c_str());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue