Skip to content

Why is llama-cli doing string comparison to check antiprompt? #10007

Answered by ggerganov
SpaceCowboy850 asked this question in Q&A
Discussion options

You must be logged in to vote

Likely the logic can be simplified and PRs are welcome. Just keep in mind that tokenization is tricky - for example hello and hello in most cases will tokenize in 2 different tokens, so antiprompt checks most likely have to remain in text space rather than token space.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SpaceCowboy850
Comment options

Answer selected by SpaceCowboy850
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