mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1676] [CLOSED] verify: initialize remote expert helper state in both batch paths #3601
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#3601
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1676
Author: @saikiran-rs
Created: 10/9/2026
Status: ❌ Closed
Base:
main← Head:community/batch-remote-helper-lifecycle-20261009📝 Commits (1)
69779cbverify: initialize remote expert helper state in both batch paths📊 Changes
1 file changed (+6 additions, -0 deletions)
View changed files
📝
src/core/verify.cpp(+6 -0)📄 Description
Summary
When concurrent requests use
--remote-expert-opt, batch verification can returnrepeated characters or unrelated output. The batch graphs consume the helper's
mask and weighted sum, but
run_slot_rowsandbatch_polldo not initialize thehelper with the current layer's routing weights or finish its work around the
CPU/helper pool call.
What changed
Add guarded
remote_opt_->begin(h_w_, 0, S)andremote_opt_->end()calls aroundboth batch pool calls, matching the existing solo verifier lifecycle. This is six
added lines in
src/core/verify.cpp. The helper-disabled path executes no newcalls. Model weights, sampler, KV layout and GPU kernels are unchanged.
Validation
Historical Linux HIP validation on v0.1.41 (
fb58e0d) with RX 7900 XTX + RX 6800 XT,Xeon E5-2696 v4, 128 GB DDR4 and Qwen3.8 Flash-Next UD-Q4_K_XL:
Disabling QFUSE also passed 1/3; disabling the helper passed 12/12.
correct identity, arithmetic, meaningful-language and cross-session checks,
with three native slots busy in every round. Another 12 configured-sampling
replies passed.
WinoGrande, each out of 200, with zero invalid outputs. These scores compare
modes of the patched runtime, not a before/after quality gain.
cross-session leakage, including the generated output and API reservation.
These are correctness results from the recorded 2026-10-08 stack, which also has
separate Python API compatibility changes. They are not a new isolated speed
benchmark or a claim of bitwise/universal model-quality equivalence.
This PR is a draft: fresh PR-branch CUDA/HIP build checks and CUDA hardware testing
remain pending. No new model/GPU runs were performed for publication because the
machine is running a separate experiment. The original serving setup is unchanged.
Extra notes
Related #1209/#1524 change batch layout/scheduling and #1636/#1637 change batch
MTP/adaptation. This change only supplies the missing helper lifecycle at the
two existing pool calls. It does not include the helper allowance setting from
#1458 or the performance report from #1459.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.