Skip to content

[Weight Reload][Gemma4] Refresh MTP gathered LM head in stable storage - #59000

Draft
Ronald1995 wants to merge 1 commit into
vllm-project:mainfrom
Ronald1995:codex/gemma4-mtp-derived-reload
Draft

Ronald1995 wants to merge 1 commit into
vllm-project:mainfrom
Ronald1995:codex/gemma4-mtp-derived-reload

Conversation

@Ronald1995

Copy link
Copy Markdown
Collaborator

Purpose

Declare the TP gathered full LM head as a derived buffer and recompute it after source weights are stable. Return the owned stable tensor to logits consumers, and avoid clearing its allocation on load. Register suppression indices as a static non-persistent buffer rather than a weight-derived cache. Adds repeated refresh coverage that checks object identity, addresses, and values.

Merge order

Merge #53509 first. This branch starts directly from main and contains only this migration, with no prerequisite PR commits. It is not stacked. Rebase onto main after the core merges before running integration CI.

Tracks #57895; ports the relevant portion of aoshen02#56.

Validation

Local Ruff formatting and lint checks completed. Full Linux/backend integration and CUDA Graph replay remain pending; Windows pytest collection is blocked by unavailable uvloop. No remote GPU tests or H20 tests were run.

AI disclosure

Code and PR text prepared with AI assistance. Human review is pending; this PR is a draft.

Signed-off-by: Ronald1995 <ronaldautomobile@163.com>

This branch has not been deployed

No deployments
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