You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Roadmap question: prefill/decode disaggregation roles, now that the prefix cache pool exists? #160
area:cachingPrefix/KV reuse, cache retention, and model or payload cache behavior.area:seleneSelene shared prefix-cache pool, protocol, manager, and transfers.triage:design-reviewNeeds a maintainer scope, architecture, or contract decision before implementation or integration.
Now that the prefix cache pool exists (shared checkpoints with rows, claims/exports, network manager), are there plans for prefill/decode disaggregation? docs/core-design.md currently lists it as outside the design.
We tested a simulated split on two instances: publishing 100K-token prefixes on one and restoring on the other works well (0.12–0.42 s vs ~5 s cold prefill), but a cold request sent to a decode instance still has to prefill there.
Two possible steps, in increasing order of effort:
--role prefill|decode admission filters, so a cache-aware gateway can route cold traffic to prefill workers and warm traffic to decode workers.
Request migration: hand a live request's KV + row through the pool and continue the stream on another instance.
Closing: prefill/decode disaggregation is outside Flare's design. docs/core-design.md (lines 347-348) states "Disaggregated prefill ... outside this design", and request routing across instances (the proposed --role filters and request migration) is cluster orchestration, which AGENTS.md ("Contribution scope and rejection criteria") reserves for an explicit maintainer decision. Thank you for the measurements of prefix publish and restore (0.12-0.42 s against about 5 s cold prefill); they are a useful data point. To reopen, attach the benchmark and request a scope decision from the project owner, Luke Alonso.
Following @yatesdr's guidance above, here are dual-GPU prefix-cache handoff (1P1D with an external HTTP router over selene-manager) measurements and a request for a scope decision from @lukealonso on whether any supporting primitive belongs upstream.
(Note: I closed #718 and split out the charter-aligned #455pool_only() capture-buffer bound by itself into https://github.com/NVIDIA/hyperflare-inference/pull/742.)
All 1P1D runs below placed one prefill worker on GPU 0 and one decode worker on GPU 1 connected through a local selene-manager UNIX-socket DRAM pool (22 GiB total across memory + staging).
Concurrent / mixed advantage: At 4K C16 (32 requests), 1P1D reached 1,516.6 tok/s aggregate (0.81s TTFO p50). At Mixed C8 (short decode requests mixed with long prompts), 1P1D reached 200.8 tok/s decode p50 (4.67 ms / 5.85 ms ITL p50/p95, 369.0 tok/s aggregate) vs 157.6 tok/s decode p50 (6.34 ms / 8.55 ms ITL) on 2x TP1.
Single-stream cold-prefill & host RAM tradeoffs: On uncached C1 ultra-long prompts, 1P1D paid PCIe KV copy-out and copy-in latency (960K TTFO p50: 344.84s vs 173.78s on 2x TP1), used 46.90 GiB combined container memory during the sweep vs 6.74 GiB on 2x TP1 (a later build switching prefill to bounded --prefix-cache-memory 0 and decode to 1G measured 41.77 GiB), and compared against v0.5.3 rather than main.
Given that cluster request routing stays in an external gateway outside Flare, is any narrow single-instance primitive in scope upstream? Concretely, three options seem distinct:
Pool-visibility ordering primitive only: Keep docs/core-design.md's non-goal against disaggregated serving APIs intact, and consider an internal/optional Selene announce-barrier check so an external tool knows when a finished store publication has reached selene-manager without guessing sleeps.
Minimal opt-in prefill-only mode: Explicitly approve updating docs/core-design.md and expose a bounded prefill-only endpoint / response contract with documented field restrictions and explicit cause distinction between "no pool attached", "not published", and "barrier timeout".
Out of scope: Leave both pool-announce barriers and prefill-only handling out of tree (docs/core-design.md unchanged), and keep upstream selene contributions scoped to pool sizing and shared prefix caching.
area:cachingPrefix/KV reuse, cache retention, and model or payload cache behavior.area:seleneSelene shared prefix-cache pool, protocol, manager, and transfers.triage:design-reviewNeeds a maintainer scope, architecture, or contract decision before implementation or integration.
Activity
feat(#24): Feat(flare): add --role [prefill|decode] disaggregation op…
yatesdr commentedon Nov 18, 2026
Closing: prefill/decode disaggregation is outside Flare's design.
docs/core-design.md(lines 347-348) states "Disaggregated prefill ... outside this design", and request routing across instances (the proposed--rolefilters and request migration) is cluster orchestration, whichAGENTS.md("Contribution scope and rejection criteria") reserves for an explicit maintainer decision. Thank you for the measurements of prefix publish and restore (0.12-0.42 s against about 5 s cold prefill); they are a useful data point. To reopen, attach the benchmark and request a scope decision from the project owner, Luke Alonso.fakoli commentedon Dec 5, 2026
Following @yatesdr's guidance above, here are dual-GPU prefix-cache handoff (
1P1Dwith an external HTTP router overselene-manager) measurements and a request for a scope decision from @lukealonso on whether any supporting primitive belongs upstream.(Note: I closed #718 and split out the charter-aligned #455
pool_only()capture-buffer bound by itself intohttps://github.com/NVIDIA/hyperflare-inference/pull/742.)Observed Measurements (
2x 96 GiB SM120 Workstation GPUs,122 GiB Host RAM,1MContext)All
1P1Druns below placed one prefill worker on GPU 0 and one decode worker on GPU 1 connected through a localselene-managerUNIX-socket DRAM pool (22 GiBtotal across memory + staging).1.
JMNI-Labs/Inkling-2-Mini(1Mcontext,1P1D--prefix-cache-memory 8G/4G+22 GiBSelene vs2x TP1stockv0.5.3replicas):4K C16(32requests),1P1Dreached1,516.6 tok/saggregate (0.81sTTFO p50). AtMixed C8(short decode requests mixed with long prompts),1P1Dreached200.8 tok/sdecode p50 (4.67 ms/5.85 msITL p50/p95,369.0 tok/saggregate) vs157.6 tok/sdecode p50 (6.34 ms/8.55 msITL) on2x TP1.C1ultra-long prompts,1P1Dpaid PCIe KV copy-out and copy-in latency (960KTTFO p50:344.84svs173.78son2x TP1), used46.90 GiBcombined container memory during the sweep vs6.74 GiBon2x TP1(a later build switching prefill to bounded--prefix-cache-memory 0and decode to1Gmeasured41.77 GiB), and compared againstv0.5.3rather thanmain.2.
Qwen4-35B-A3B(1Mcontext,v0.6.0f705086+ prefill-only/barrier + boundedpool_only()patch,--prefix-cache-memory 0/1G):selene-manager --memory 16G --staging 6G(--embedding-table-workers 1): completed119/119sweep requests (102/102capacity/mixed sweeps plus17/17C1max-context ladder requests):C16 4K32/32(13.9swall,246.9 tok/sdecode p50 /250.4 tok/smean);Mixed C816/16(303.0 tok/sdecode p50 /309.9 tok/smean,9.42sTTFO p50,100%prefix-cache hit); plus102/102multimodal image KV handoff on a256x256PNG (>=524KC1handoff refused withNoWindows = 8under6Gstaging).selene-managerto--memory 6G --staging 16G(matchingArenapower-of-two buddy sizing for>8 GiBexports) and--embedding-table-workers 4resolvedNoWindows = 0with100%cached tokens onmax_tokens=32probes at524K(528,059tokens:32.4sTTFT, effective16,292 prompt tok/s) and960K(960,056tokens:69.2sTTFT, effective13,866 prompt tok/s).Qwen4-35B-A3Bwas measured in1P1Donly and has not been A/B benchmarked against2x TP1onmain.Scope Question for @lukealonso
Given that cluster request routing stays in an external gateway outside Flare, is any narrow single-instance primitive in scope upstream? Concretely, three options seem distinct:
docs/core-design.md's non-goal against disaggregated serving APIs intact, and consider an internal/optional Selene announce-barrier check so an external tool knows when a finished store publication has reachedselene-managerwithout guessing sleeps.docs/core-design.mdand expose a bounded prefill-only endpoint / response contract with documented field restrictions and explicit cause distinction between "no pool attached", "not published", and "barrier timeout".docs/core-design.mdunchanged), and keep upstreamselenecontributions scoped to pool sizing and shared prefix caching.Discord: fakoli