Skip to content

docs: warn about structured generation without a prompt for Llama tokenizers#1929

Draft
pctablet505 wants to merge 1 commit into
dottxt-ai:mainfrom
pctablet505:docs-1321-llama-tokenizer-prompt-warning
Draft

docs: warn about structured generation without a prompt for Llama tokenizers#1929
pctablet505 wants to merge 1 commit into
dottxt-ai:mainfrom
pctablet505:docs-1321-llama-tokenizer-prompt-warning

Conversation

@pctablet505

Copy link
Copy Markdown

Fixes #1321

Adds a documentation note warning that Llama/SentencePiece tokenizers treat leading spaces specially, so structured generation without a prompt can reject otherwise valid tokens.

…enizers

Adds a warning to the Generator API documentation that Llama/SentencePiece
tokenizers treat leading spaces specially, so structured generation without
a prompt can reject otherwise valid tokens.

Fixes dottxt-ai#1321
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warn about structured generation without a prompt for Llama tokenizers

1 participant