Skip to content

Conversation

@ggerganov
Copy link
Member

cont #9896

The infill sampler now handles correctly tokens with very long texts (e.g. line indentations). The token-merging logic should be more clear as well.

API changes

  • Remove the recently added llama_token_is_prefix. It was technically incorrect for very long tokens and I don't want to make it allocate too much stack memory as we have no upper bound for the token string length.

@ggerganov ggerganov merged commit 99bd4ac into master Oct 17, 2024
60 checks passed
@ggerganov ggerganov deleted the gg/infill-4 branch October 17, 2024 19:32
drollings pushed a commit to drollings/llama.cpp that referenced this pull request Oct 18, 2024
* llama : infill sampling handle very long tokens

ggml-ci

* cont : better indices

ggml-ci
dsx1986 pushed a commit to dsx1986/llama.cpp that referenced this pull request Oct 29, 2024
* llama : infill sampling handle very long tokens

ggml-ci

* cont : better indices

ggml-ci
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 15, 2024
* llama : infill sampling handle very long tokens

ggml-ci

* cont : better indices

ggml-ci
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Nov 18, 2024
* llama : infill sampling handle very long tokens

ggml-ci

* cont : better indices

ggml-ci
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.

2 participants