Skip to content

Reserve Qwen 27B vision weights in tensor placement - #1572

Closed
jonathan308 wants to merge 2 commits into
fix/cluster-qwen-tensor-reductionfrom
fix/cluster-qwen27-vision-residency
Closed

jonathan308 wants to merge 2 commits into
fix/cluster-qwen-tensor-reductionfrom
fix/cluster-qwen27-vision-residency

Conversation

@jonathan308

@jonathan308 jonathan308 commented Oct 23, 2026 •

Copy link
Copy Markdown
Collaborator

Qwen 3.8 27B tensor placement prices the text model but omits its 333-tensor vision tower. This can admit a pair without reserving the persistent vision weights. Add an exact-artifact, per-allocation bound for the tower and charge that supplement to every tensor rank, outside request-state floors. LOAD, largest-allocation and working-set checks include it. The complete tower contains 921,460,192 logical bytes; charging both ranks is deliberately conservative.

The optional family field stays omitted for older layouts. Other Qwen models and pipeline pricing retain their existing behavior. This change prepares placement for the separate native media implementation; it does not install a media loader or establish image/video qualification.

Before

flowchart TD
    A[Qwen 27B artifact] --> B[Text layout only]
    B --> C[TP memory admission]
    V[333 vision tensors] -. omitted .-> C
    classDef source fill:#e0e7ff,stroke:#3730a3,color:#111827
    classDef gap fill:#fee2e2,stroke:#b91c1c,color:#111827
    class A source
    class B,C,V gap
Loading

After

flowchart TD
    A[Qwen 27B artifact] --> B[Verify exact tower inventory]
    B --> C[Bound each allocation]
    C --> D[Add resident and LOAD bytes to every TP rank]
    D --> E[Check memory and working set]
    classDef source fill:#e0e7ff,stroke:#3730a3,color:#111827
    classDef check fill:#dcfce7,stroke:#166534,color:#111827
    class A source
    class B,C,D,E check
Loading

Validation: all 1,169 placement metadata checks pass in the isolated implementation and again after integration. New cases cover exact artifact headers, corruption, allocator underestimates, overflow, optional-field compatibility, additive rank/LOAD charges, working-set refusal and unchanged other-model pricing. Documentation lint, impact, changelog checks and preview pass. No model or GPU execution is needed for these metadata tests.

A dedicated independent refactor review found no remaining correctness issue and no justified cleanup. The reviewer independently verified all 333 tensor headers against the local registered artifact. Full-model TP media, batching, automatic mode selection and recovery remain separate open qualification gates. Draft child of #1571; the optional placement contract needs owner review before merge. No release or model activation is included.


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:39pm UTC
d-inference-console-ui-dev Ready Ready Preview Oct 23, 2026 3:39pm UTC
d-inference-landing Ready Ready Preview Oct 23, 2026 3:39pm UTC
darkbloom-status Ready Ready Preview Oct 23, 2026 3:39pm UTC
eigen-homepages-darkbloom Ready Ready Preview Oct 23, 2026 3:39pm UTC

Request Review

This branch was successfully deployed

5 active deployments
Preview – d-inference-console-ui-dev — fe3799f2 Deployed Oct 23, 2026 by vercel[bot]
Preview – d-inference-landing — fe3799f2 Deployed Oct 23, 2026 by vercel[bot]
Preview – d-inference — fe3799f2 Deployed Oct 23, 2026 by vercel[bot]
Preview – eigen-homepages-darkbloom — fe3799f2 Deployed Oct 23, 2026 by vercel[bot]
Preview – darkbloom-status — fe3799f2 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