feat(qwen35): tp2 phase 2a - #870
Open
Mrtroll486 wants to merge 8 commits into
Open
Conversation
Signed-off-by: Mr_troll863 <restart486666@gmail.com>
Signed-off-by: Mr_troll863 <restart486666@gmail.com>
Signed-off-by: Mr_troll863 <restart486666@gmail.com>
Signed-off-by: Mr_troll863 <restart486666@gmail.com>
Signed-off-by: Mr_troll863 <restart486666@gmail.com>
Signed-off-by: Mr_troll863 <restart486666@gmail.com>
Signed-off-by: Mr_troll863 <restart486666@gmail.com>
Mrtroll486
force-pushed
the
feat/qwen35-tp2-phase2a
branch
from
August 14, 2026 10:28
e13cb04 to
10116dc
Compare
Contributor
Author
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 10116dc125
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Signed-off-by: Mr_troll863 <restart486666@gmail.com>
Mrtroll486
force-pushed
the
feat/qwen35-tp2-phase2a
branch
from
August 14, 2026 10:45
f67e625 to
9166e00
Compare
Mrtroll486
marked this pull request as ready for review
August 14, 2026 11:05
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.
Description
Part of issue #446 and #694. Follows pr #627 and #450.
This PR completes Qwen3.5 Tensor Parallel Phase 2A (P2A): eager TP2 mixed prefill/decode execution with a strict cross-rank lifecycle and failure contract.
P2A builds on the existing Phase 1 dense TP implementation. It keeps linear-attention/GDR weights and request state replicated; sharding that surface remains P2B.
What Changed
RunUnifiedStepcommand for eager TP mixed prefill and decode.DropAck { existed }handling:MustBeAbsentrequires all ranks to reportfalse;MustExistrequires all ranks to reporttrue;drain -> prune -> publish load -> admission -> planRequestIdalignment:Failure Semantics
Controller-provable structural errors are rejected before dispatch and leave the executor healthy.
After execution is released, worker-local state mismatches, CUDA/NCCL failures, malformed response sets, artifact violations, and lifecycle failures poison the complete TP replica. The scheduler then fails every unresolved request and exits.
Collective or teardown timeout remains process-level fail-stop.
Scope and Non-Goals
This PR does not:
lm_head;Those state-sharding changes belong to P2B.
Validation
Validated in release mode on 2x RTX 3090 (SM86) with real Qwen3.5-4B weights.
14 passed,0 failedmax_batch=641 passed,0 failed2 passed,0 failed0.0260, p990.10810.0267, p990.11670.0228, p990.06891 passed,0 failed-D warnings: passedcargo fmt --all -- --check: passedgit diff --check: passedType of Change
Checklist
docs/conventions/coding-style.md).CLAUDE.md).