Skip to content

server : fix n_keep always showing as 0 in response #6211

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

Merged
merged 1 commit into from
Mar 22, 2024

Conversation

kaetemi
Copy link
Collaborator

@kaetemi kaetemi commented Mar 21, 2024

The /completion API of the server always returns n_keep as 0 instead of the passed n_keep parameter. It currently seems to be reporting an n_keep value from a different structure than the one that's actually used in the server code. This fix changes it to report the n_keep value from the slot parameters, in line with the other reported slot parameters.

@ggerganov ggerganov merged commit 6b8bb3a into ggml-org:master Mar 22, 2024
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 1, 2024
hodlen pushed a commit to hodlen/llama.cpp that referenced this pull request Apr 3, 2024
tybalex pushed a commit to rubra-ai/tools.cpp that referenced this pull request Apr 17, 2024
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