Repository navigation
Fix Qwen expert reductions and complete tensor request accounting - #1571
Closed
jonathan308 wants to merge 5 commits into
Closed
jonathan308 wants to merge 5 commits into
jonathan308 wants to merge 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Qwen routed-expert tensor parallelism previously summed BF16-rounded combined expert blocks. Sum FP32 expert-down and shared-down projections separately before router weighting and shared gating. The agreement marker rejects mixed old/new workers, and the plan accounts for three reductions per layer and top-K expert vectors.
Placement and native Qwen admission now share a conservative complete request ledger: state, fused projections, attention workspace, logits, individually bounded authenticated collective frames, and retained FP32 scales/offsets outside the parameter tree. Existing estimates remain a floor; requests outside the priced envelope refuse. Other families without a complete quote retain their existing behavior.
Depends on provider #1570 and pins SDK #346. Draft only: no release qualification is implied. Qwen 3.8 27B is the current full-capability validation priority; the prior Qwen 3.6 16K hardware failure remains open until rerun with unchanged numerical gates.
Before
flowchart LR A["Expert shards"] --> B["Round, weight and combine"] --> C["Sum combined block"] D["Residual-sized memory estimate"] --> E["Omitted top-K and retained casts"] classDef input fill:#dbeafe,stroke:#1d4ed8,color:#172554 classDef gap fill:#fee2e2,stroke:#b91c1c,color:#450a0a class A,D input class B,C,E gapAfter
flowchart LR A["Packed expert and shared shards"] --> B["Separate FP32 sums"] --> C["Round, weight and combine"] D["Canonical tensor inventory"] --> E["Complete bounded request ledger"] E --> F["Placement and native admission"] classDef input fill:#dbeafe,stroke:#1d4ed8,color:#172554 classDef fixed fill:#dcfce7,stroke:#15803d,color:#052e16 class A,D input class B,C,E,F fixedValidation:
bash libs/darkbloom-cluster/Tests/PlacementChecks/run.shpassed, including exact registered Qwen 9B, 27B and Qwen 3.6 metadata, per-array allocator bounds, top-K payloads, sealed-frame overhead, invalid/undersized quotes, and the independent 1,325 MiB whole-bank constant-cast regression.bash libs/darkbloom-cluster/Tests/TensorParallelPlanChecks/run.shpassed with the new reduction count, paths and agreement marker.make docs-check,make docs-impact-check BASE=fix/cluster-retain-ready-batch,make changelog-checkandmake changelog-previewpassed.Full-model two-Mac numeric acceptance, automatic tensor selection, all supported capabilities, native TP concurrency and recovery remain hardware/product gates. The memory ledger is a conservative reservation, not a measured whole-process peak.
Need help on this PR? Tag
@codesmith-botwith what you need.