Skip to content

How do I insert a <|START_OF_TURN_TOKEN|> in interactive mode? #6549

Closed Answered by Jeximo
araleza asked this question in Q&A
Discussion options

You must be logged in to vote

is becoming a string of normal text tokens

Yes, you're not missing anything - it's fundamental to how main works.
There is a way to add the template for server within lama_chat_apply_template, here's the detail: https://github.com/ggerganov/llama.cpp/wiki/Templates-supported-by-llama_chat_apply_template#how-to-add-a-new-template

For main, llama_chat_apply_template is not implemented yet: #6391 (comment)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by araleza
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants