Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llama : infill sampling handle very long tokens #9924

Merged
merged 2 commits into from
Oct 17, 2024
Merged

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.

1 participant