mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4850] Stage-helper (PR#21 / docs/SECOND_GPU.md) cannot activate under --serve: the serving path bypasses Prefill::run()/run_impl() entirely #2227
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#2227
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @chengye75-star on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4850
Summary
STRATA_PREFILL_HELP=1(documented indocs/SECOND_GPU.md) never activates under--serve. We believe this is architectural rather than a wiring oversight: the sole call site ofPrefill::bind_stage_helper()isprefill.cpp:3035insiderun_impl(), gated onsingle_chunk— but unconditional probes placed at the very first statement of bothPrefill::run()andPrefill::run_impl()(plainfprintf(stderr, ...), no env gate, no condition) never fire while serving requests, even though request timing proves prefill is executing. The serve slot/checkpoint architecture appears to drive prefill through lower-level primitives and bypass thePrefillfacade's prompt entry points, so the helper lifecycle (bind → per-layer wire → drain) has no reachable entry in serving mode.Environment
--serve, 2× RTX 5060 Ti 16GB (SM120)--layer-split 24 --pipeline-windows 2,--peer-device 1,--pipeline-windows 1,--kv q4Method (reproducible)
return falsesites + success path insidebind_stage_helper()printing__LINE__: zero output → never called, not rejecting.force_chunk_, short-circuitingplan_chunk()forn <= T, OR-ing the call condition): still zero output.run()andrun_impl(): zero output under serve load; the same binary responds normally with correct token timing — so the request path taken never passes through these functions.-batch -ex "thread apply all bt"during an active 60K-prompt prefill does showPrefill::run_implframes — on threads/paths where chain handoff makessingle_chunkpermanently false (hand_in_ != nullptr→single_chunk_). Long prompts under layer-split dispatch torun_layer_major()before the helper gate anyway.STRATA_PREFILL_HELP=1under layer-split, the engine also gets killed during warmup by the serve wrapper's stall/quit watchdog (helper-cache construction slows the ready handshake);STRATA_ENGINE_STALL_S=900keeps it alive, but help still never binds — a confusing double failure mode for users.What does work on dual GPU (for doc cross-reference)
--peer-device 1without layer-split: +18–20% wall at ≤4K prompts (1.5K/2K/3K/4K measured), negative between 6–8K, −37% at 10K+ real-corpus (cross-card expert reads saturate PCIe x8). Byte-identical outputs (sha parity) and ct parity vs the layer-split baseline.Ask (one of)
STRATA_PREFILL_HELPis set under--serve("only active in one-shot generate mode"), plus one line in SECOND_GPU.md — this cost us two full nights of instrumented forensics; and/orhelper_consulted at the layer-major gate,help_expert_batchpeer branch, drain) all appears alive — only the binding is unreachable from serve. We captured the full gate sequence and have a small env-gated patch stack (v1–v3) we can share and would happily test any branch against.@github-actions[bot] commented on GitHub (Oct 31, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Nov 6, 2026):
Closing this issue because it still did not follow the format after 5 days. That is housekeeping, not a rejection.
To bring it back: fix the title (area prefix) and the missing parts, then comment
/reopen. A check runs and reopens it, or tells you what is still missing. See CONTRIBUTING.md.