Accessing chat format functions directly #1520
-
Hi! I'm trying to have access to see the formatted chats based on the messages. I'm trying to use low level access to what seems to be the function that formats the chat, but the output does not seem to be correct:
The output is this: For some reason it is not formatting the bos_token. I might be using incorrectly these low level functions, but I was wondering if there is a better way to have access to format random messages, and why am I doing wrong with my try, that I don't get the bos Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You are not getting the bos/eos tokens, but rather the metadata telling llama.cpp if bos/eos tokens should be added or not. You can get the token IDs with Since you are using |
Beta Was this translation helpful? Give feedback.
The chat template doesn't seem to support system messages, probably because the model doesn't, you'll have to print it out to see.