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

[fix][lmi][specdec] fix issue with json output formatter not returnin… #2403

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

siddvenk
Copy link
Contributor

…g output when iterator is behind

Description

The json output formatter is checking whether the next token in the request is the final token to determine when to provide the response. This works for non speculative decoding cases, but with spec dec we can have multiple tokens returned in 1 "step" call.

Due to how things are structured, with spec dec if we ever generate more than 1 token in a step, the token iterator gets out of sync with the actual status of the request generation, and we get "hanging" behavior.

@siddvenk siddvenk merged commit eeb9c30 into deepjavalibrary:master Sep 24, 2024
9 checks passed
@siddvenk siddvenk deleted the output-formatter branch September 24, 2024 00:18
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