summaryrefslogtreecommitdiff
path: root/llama.cpp
diff options
context:
space:
mode:
authorslaren <slarengh@gmail.com>2023-11-19 11:10:52 +0100
committerGitHub <noreply@github.com>2023-11-19 11:10:52 +0100
commite937066420b79a757bf80e9836eb12b88420a218 (patch)
tree93a3c3a9889c4367e6e6310674d0661cbf0f5d5f /llama.cpp
parent28a2e6e7d476717881be6eb9e2d3331342cec57b (diff)
gguf-py : export chat templates (#4125)
* gguf-py : export chat templates * llama.cpp : escape new lines in gguf kv info prints * gguf-py : bump version * gguf-py : check chat_template type * gguf-py : initialize chat_template
Diffstat (limited to 'llama.cpp')
-rw-r--r--llama.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llama.cpp b/llama.cpp
index 56d8e765..062c9757 100644
--- a/llama.cpp
+++ b/llama.cpp
@@ -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());
}