Repository navigation
Reserve Qwen 27B vision weights in tensor placement - #1572
Closed
jonathan308 wants to merge 2 commits into
Closed
jonathan308 wants to merge 2 commits into
jonathan308 wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Oct 23, 2026
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 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 gapAfter
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 checkValidation: 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.
Need help on this PR? Tag
@codesmith-botwith what you need.