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 : bring back info of final chunk in stream mode #10722

Merged

Conversation

ngxson
Copy link
Collaborator

@ngxson ngxson commented Dec 8, 2024

After the refactoring, stream: true only uses _partial result which miss some info about the generation params.

This PR brings back the old behavior by allowing both _partial and _final to be sent during stream completion.

Supersede #10720 @z80maniac

@ngxson ngxson requested a review from ggerganov December 8, 2024 16:26
@github-actions github-actions bot added examples python python script changes server labels Dec 8, 2024
@ngxson ngxson changed the title server : bring back into to final chunk in stream mode server : bring back info of final chunk in stream mode Dec 8, 2024
@ngxson ngxson merged commit e52522b into ggerganov:master Dec 8, 2024
49 checks passed
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Dec 20, 2024
* server : bring back into to final chunk in stream mode

* clarify a bit

* traling space
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples python python script changes server
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants