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

server : update doc to clarify n_keep count when there is bos token #8619

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

kaetemi
Copy link
Collaborator

@kaetemi kaetemi commented Jul 21, 2024

The n_keep parameter excludes the BOS token. This is not immediately obvious, so adding that to the doc.

See:

const int n_keep = slot.params.n_keep + add_bos_token;

@ggerganov ggerganov merged commit 6281544 into ggerganov:master Jul 22, 2024
11 checks passed
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants