feat(prefill): enforce decode-only primary mode - #170
Merged
FluffyAIcode merged 1 commit intoJul 16, 2026
Conversation
Require complete remote prefill or full cache hits before decode, deploy allens as the model-loaded prefill worker, and expose physically separate cache mounts through one content-addressed kv namespace. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
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.
Summary
remote-requiredprefill policy: Primary accepts only complete cache hits or completed remote worker snapshots and never computes prefill/suffix locallyUNAVAILABLEinstead of silent local fallback:53051kv://content-addressed namespace while explicitly reporting that coherent shared memory is falseArchitecture
Primary receives canonical token IDs, allens performs full prefill and stores snapshots, Primary fetches/imports once, and all autoregressive decode remains local. Partial cache hits are never extended on Primary.
Tests
Live caveat
The selected Gemma model is ~15GB on a 16GB allens host. Previous functional tests completed but remote prefill took roughly 128–149 seconds; this deployment prioritizes role correctness, not throughput.
Made with Cursor