Skip to content

Add chunked prefill to the eagle3 runner for prompts past the ring-cache cap#20347

Open
digantdesai wants to merge 2 commits into
gh/digantdesai/65/headfrom
gh/digantdesai/66/head
Open

Add chunked prefill to the eagle3 runner for prompts past the ring-cache cap#20347
digantdesai wants to merge 2 commits into
gh/digantdesai/65/headfrom
gh/digantdesai/66/head

Conversation

@digantdesai

Copy link
Copy Markdown
Contributor

A single target prefill forward caps at 2sliding_window (the sliding-ring KV
limit), so prompts beyond that must be chunked. Loop the prompt in window-sized
chunks for both the target prefill and the draft seed -- advancing input_pos,
accumulating the flat global KV cache, and concatenating the per-chunk features
-- then begin the speculative loop from the prompt end. Chunks are capped at the
sliding window (not 2
window) for the same exactness reason as the gemma4 runner
fix: a larger chunk truncates sliding attention across chunk boundaries
(get_sliding_window from metadata, else max_prefill/2).

Authored with assistance from Claude Code.

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/20347

Note: Links to docs will display an error until the docs builds have been completed.

❗ 2 Active SEVs

There are 2 currently active SEVs. If your PR is affected, please view them below:

❌ You can merge normally! (1 Unrelated Failure), 2 Unclassified Failures

As of commit 0ab6f31 with merge base da9158b (image):

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:

BROKEN TRUNK - The following job 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.

[ghstack-poisoned]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant