Distribute and run LLMs with a single file.
C++ cross-platformggufllama-cpplocal-ailocal-inferencelocal-llmopen-source-aisingle-file-executablespeech-to-text
Fix --chat system prompt for Gemma
Justine Tunneyb780df0ae0cd
diff --git a/llama.cpp/llama.cpp b/llama.cpp/llama.cppindex 61117b57..8872e1b6 100644--- a/llama.cpp/llama.cpp+++ b/llama.cpp/llama.cpp@@ -19017,6 +19017,12 @@ static int32_t llama_chat_apply_template_internal(if (role == "system") {// there is no system message for gemma, but we will merge it with user prompt, so nothing is brokensystem_prompt = trim(message->content);+ // [jart] alow system prompt+ if (chat.size() == 1) {+ ss << "<start_of_turn>user\n";+ ss << system_prompt;+ ss << "<end_of_turn>\n";+ }continue;}// in gemma, "assistant" is "model"