Repository navigation
Studio: classify shared MTP fit OOM as VRAM fallback - #10143
wasimysaid wants to merge 2 commits into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9b7c3f4dde
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
2da4627 to
ecee446
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1028f94d74
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
1028f94 to
d366f7c
Compare
5db2a5d to
b4b3a17
Compare
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Confirmed this hits studio/backend/core/inference/llama_cpp.py where the shared-head OOM still comes back as a runtime or outdated-binary verdict, and the ordered-marker guard looks appropriately narrow. Could you drop the unrelated assertion reformatting in test_mcp_session_resources.py and test_mcp_upgrade_compat.py so the branch is just the classifier change? |
|
Confirmed the shared-head OOM still lands on the runtime_error branch in studio/backend/core/inference/llama_cpp.py, so the reclassification is the right direction, and note #10149 is reserving VRAM for the same shared heads up front. Could you drop the unrelated assert reformatting in test_mcp_session_resources.py and test_mcp_upgrade_compat.py so the branch stays on the classifier change? |
Summary
drafter_no_vramdowngraderuntime_error, preservebinary_outdatedprecedence, and avoid attributing unrelated GPU OOMs to the drafterRoot cause
A shared Qwen3.8 MTP head has no independent
token_embd.weight, so llama.cpp cannot measure it alone. llama.cpp fits the target without that extra model, then loads the head against the target and can OOM because the target consumed the available VRAM. Studio already retries successfully without MTP, but previously reported that recovery as a runtime incompatibility.The classifier is intentionally narrow: it requires the ordered shared-tensor, omitted-fit, draft-load, in-draft GPU OOM, and draft-failure sequence, and applies only when Auto selected speculation.
Validation
python -m pytest backend/tests/test_gpu_init_crash_message.py -q— 149 passedruff checkon all changed Python filespy_compileon all changed Python filesgit diff --checkchatgpt/gpt-5.6-sol(medium), findings addressed, clean re-checkHosted runners do not provide the CUDA VRAM/model footprint needed to reproduce the original 2.6 GiB allocation live; the regression uses the captured llama.cpp failure sequence and checks positive and negative classification paths deterministically.