Skip to content

Fix Qwen expert reductions and complete tensor request accounting - #1571

Closed
jonathan308 wants to merge 5 commits into
fix/cluster-retain-ready-batchfrom
fix/cluster-qwen-tensor-reduction
Closed

jonathan308 wants to merge 5 commits into
fix/cluster-retain-ready-batchfrom
fix/cluster-qwen-tensor-reduction

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

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 gap
Loading

After

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 fixed
Loading

Validation:

  • bash libs/darkbloom-cluster/Tests/PlacementChecks/run.sh passed, 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.sh passed with the new reduction count, paths and agreement marker.
  • Complete actual-source Swift 6 compilation passed for all 352 runtime files and the shared placement module. The three SDK expert-projection tests passed on CPU.
  • Independent review caught the initially omitted constant caches; the repair and exact 2,120-header fixture were reviewed again with no remaining actionable findings.
  • make docs-check, make docs-impact-check BASE=fix/cluster-retain-ready-batch, make changelog-check and make changelog-preview passed.

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.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

@vercel

vercel Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Oct 23, 2026 3:37pm UTC
d-inference-console-ui-dev Ready Ready Preview Oct 23, 2026 3:37pm UTC
d-inference-landing Ready Ready Preview Oct 23, 2026 3:37pm UTC
darkbloom-status Ready Ready Preview Oct 23, 2026 3:37pm UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 23, 2026 3:37pm UTC

Request Review

This branch was successfully deployed

5 active deployments
Preview – d-inference-console-ui-dev — 17aaea1a Deployed Oct 23, 2026 by vercel[bot]
Preview – d-inference-landing — 17aaea1a Deployed Oct 23, 2026 by vercel[bot]
Preview – d-inference — 17aaea1a Deployed Oct 23, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — 17aaea1a Deployed Oct 23, 2026 by vercel[bot]
Preview – darkbloom-status — 17aaea1a Deployed Oct 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant