-
Notifications
You must be signed in to change notification settings - Fork 690
Fix text_llm_runner kv cache pos count and use it for generate() #15286
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/15286
Note: Links to docs will display an error until the docs builds have been completed. ❗ 1 Active SEVsThere are 1 currently active SEVs. If your PR is affected, please view them below: ❌ 1 New Failure, 2 Unrelated FailuresAs of commit 12545a3 with merge base 58bd91c ( NEW FAILURE - The following job has failed:
BROKEN TRUNK - The following jobs failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
} | ||
int64_t num_generated_tokens = generate_result.get(); | ||
|
||
pos_ += num_generated_tokens; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need this anymore right? pos_
is being updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pytorchbot cherry-pick --onto release/1.0 -c critical |
) pos_ should advance by prefill and generated prompt size. (cherry picked from commit 8946d80)
Cherry picking #15286The cherry pick PR is at #15295 and it is recommended to link a critical cherry pick PR with an issue. The following tracker issues are updated: Details for Dev Infra teamRaised by workflow job |
Summary
pos_ should advance by prefill and generated prompt size.
Test plan
CI
cc @larryliu0820 @mergennachin @cccclai @helunwencser @jackzhxng