feat(moe): add a generic heterogeneous stage planner - #577
Draft
davide221 wants to merge 8 commits into
Draft
Conversation
davide221
force-pushed
the
codex/ds4-overlapped-moe-balance
branch
from
August 4, 2026 10:17
8bc7cdf to
39dd741
Compare
davide221
force-pushed
the
codex/generic-heterogeneous-stage-planner
branch
from
August 4, 2026 10:17
6121b5c to
ebaab17
Compare
This was referenced Aug 4, 2026
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
Reproduce
Build for both GPU architectures, then run with only the two model paths:
The wrapper defaults to 2 warmups + 7 measured 2K/128-token requests and fails on a short or non-exact response. See
server/docs/DS4_R9700_STRIX_PROFILE.md.Validation
682e419cc21c9de4585e705b2bb21f7dc3274efatest_deepseek4_unit: passed, including GPU oracles and the new capture-policy casestest_server_unit heterogeneous_stage: 5 passed, 0 failed0f785a7ffa406498aafb14553966eaed0f52220fed0f7cc016b66921d104d194Review finding about the prior 89 tok/s result
The earlier 89.876 value was not model-side throughput. Its server median was 73.2 tok/s. The client timer began at the first non-empty streamed text event but counted all 128 completion tokens; a slow first rejected speculative step fell outside the timed interval and inflated the result.
The repaired current path has full first-block acceptance and is slightly faster model-side (73.7 versus 73.2), although the legacy client number is lower. The qualifier now writes
server-decode-summary.jsonso future comparisons use the correct metric.Measured-slower attention and shared-width splits remain disabled.
Stacked on #575.