Updated Templates supported by llama_chat_apply_template (markdown)

Xuan Son Nguyen 2024-04-14 18:16:05 +02:00
parent 42a21c9ab0
commit 643ffe9cbb

@ -116,7 +116,7 @@ ASSISTANT:
``` ```
Usage: ./server -m ... --chat-template deepseek Usage: ./server -m ... --chat-template deepseek
deepseek-ai/deepseek-coder-33b-instruct deepseek-ai/deepseek-coder-33b-instruct
<begin▁of▁sentence>You are a helpful assistant### Instruction: You are a helpful assistant### Instruction:
Hello Hello
### Response: ### Response:
Hi there Hi there
@ -132,6 +132,12 @@ Another question
``` ```
```
Usage: ./server -m ... --chat-template command-r
CohereForAI/c4ai-command-r-plus
<|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>You are a helpful assistant<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|USER_TOKEN|>Hello<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>Hi there<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|USER_TOKEN|>Who are you<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>I am an assistant<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|USER_TOKEN|>Another question<|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>
```
Additionally, we also support zephyr template (I cannot find it on huggingface, but have seen in [this list](https://github.com/ggerganov/llama.cpp/blob/c8d847d57efdc0f9bbbf881d48c645e151b36fd8/examples/server/public/promptFormats.js) ) Additionally, we also support zephyr template (I cannot find it on huggingface, but have seen in [this list](https://github.com/ggerganov/llama.cpp/blob/c8d847d57efdc0f9bbbf881d48c645e151b36fd8/examples/server/public/promptFormats.js) )
``` ```