Repository navigation
server: cap shared decision prefixes at the first output - #30710
Conversation
Limit the shared prefix to the first required output position of the parent and each child task. This keeps decision output embeddings available in the final batch when questions share option tokens. Fixes ggml-org#30482 Signed-off-by: aiqubits <aiqubits@hotmail.com>
|
/bot review |
Automated code reviewI've traced the change through the shared-prefix machinery in Review of Will slow the review (point 1) The new line is ~150 chars, well past the 120-column limit in n_shared = std::min(n_shared, tasks[j].tokens.size() - 1);
// the outputs are read from one batch per task, so the shared prefix must stop before the first read position
n_shared = std::min({n_shared, (size_t) parent.decision.pos_first(), (size_t) tasks[j].decision.pos_first()});(point 2) No regression test. Nits (point 3) The correctness of Notes confirming correctness, no action needed (point 4) Applying This review was generated automatically by pi coding agent using |
Overview
Fix /v1/systemone returning HTTP 500 when multiple questions share option tokens and the server uses multiple slots.
Limit the shared prompt prefix to each task's first required output position, so option-marker embeddings remain available to send_decision() in the final batch.
Fixes #30482
Additional information
None
Requirements