Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/24639
Note: Links to docs will display an error until the docs builds have been completed. ❌ 133 New Failures, 11 Unrelated Failures, 10 Unclassified FailuresAs of commit 923c00e with merge base c7f7931 ( NEW FAILURES - The following jobs have failed:
UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:
FLAKY - The following jobs failed but were likely due to flakiness present on trunk:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This was referenced Nov 5, 2026
This was referenced Nov 5, 2026
metascroy
force-pushed
the
offgraph-kv-interactive
branch
from
November 5, 2026 22:29
ce847ce to
baa5ab8
Compare
metascroy
force-pushed
the
offgraph-kv-runner
branch
from
November 5, 2026 22:29
804d291 to
87e92f7
Compare
metascroy
force-pushed
the
offgraph-kv-runner
branch
from
November 11, 2026 18:05
87e92f7 to
721d0bb
Compare
metascroy
force-pushed
the
offgraph-kv-interactive
branch
from
November 11, 2026 18:05
baa5ab8 to
cb061b2
Compare
This was referenced Nov 12, 2026
kiymetakdemir
approved these changes
Nov 12, 2026
| continue; | ||
| } | ||
| } | ||
| const size_t limit = std::min( |
Contributor
There was a problem hiding this comment.
This loop computes its limit from capacity alone, while the existing one-shot path also caps at --max_seq_length through generation_limit. Should chat apply the same cap?
This was referenced Nov 13, 2026
Prompts longer than the method's token input are now prefilled in chunks instead of rejected, for both in-graph and off-graph packages. --interactive chats on stdin with the Llama 3 chat template, keeping the conversation in the off-graph KV cache so each turn feeds only its new tokens. /reset clears the cache, a full cache starts a new conversation, and Ctrl-D quits.
metascroy
force-pushed
the
offgraph-kv-interactive
branch
from
November 14, 2026 00:18
cb061b2 to
923c00e
Compare
metascroy
force-pushed
the
offgraph-kv-runner
branch
from
November 14, 2026 00:18
721d0bb to
24b19de
Compare
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack
Off-graph KV cache for the native ggml engine, through serving Muse Glimmer on it. Review bottom-up; each PR builds and passes its tests on its own.
Summary
Chunked prefill: prompts longer than the method's token input used to be rejected. They're now prefilled in chunks of at most that many tokens. This applies to in-graph and off-graph packages alike.
generatenow takes the starting position and returns the last token it chose but never fed, and whether generation stopped on an EOS.--interactivechat: needs an off-graph package.<|eot_id|>. If the reply hit--max_new_tokens, its last token is fed first. If it ended on an EOS, the EOS itself is not fed, so<|end_of_text|>can't drift from the template.--warmup_prefillis rejected with--interactive; it would prefill every turn twice. So is--dump_first_logits, since every new conversation prefills from position 0 again./resetclears the cache, a full cache starts a new conversation, and Ctrl-D quits.Test plan
On an Apple M4 Max, Llama 3.2 1B Q4_K_M:
/resetforgets them.--max_new_tokens 24and a 16-row initial cache: turn 1 hits the token limit, turn 2 ends on EOS, and the conversation stays coherent across both.--interactiveon an in-graph package, or combined with--warmup_prefillor--dump_first_logits, fails with a clear error.