Repository navigation
Locate the MTP drafter-drop fallback by its shape, not one spelling - #13922
Conversation
|
@codex review |
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. |
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. |
|
Codex Review: Didn't find any major issues. Delightful! 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". |
…p guards (#13936) Two more checks are red on main (7382805), seen on #13915 and #13922's run, both reproduced locally on main. ## `test_no_raw_pixel_text_utilities` (from #13850) ``` Raw px text utilities ignore the UI font size preference; use the text-ui-* / leading-ui-* tokens in index.css instead: features/studio/sections/token-preview-dialog.tsx: text-[12.5px] features/studio/sections/token-preview-dialog.tsx: text-[9px] ``` The new token preview dialog sized three text runs with raw `text-[12.5px]` / `text-[9px]`, so they stay fixed when the user changes Settings > UI font size while the rest of Studio scales. The contract is right and the dialog is what changes. `index.css` has exact tokens for both sizes, `--text-ui-12p5: calc(0.78125rem * var(--ui-font-scale, 1))` and `--text-ui-9: calc(0.5625rem * var(--ui-font-scale, 1))`, so this swaps to `text-ui-12p5` / `text-ui-9`. At the default scale of 1 those resolve to the same 12.5px and 9px, so the dialog renders the same as today; the only difference is that it now follows the font size setting. No screenshots: there is nothing visible to compare at the default scale. ## `test_no_skip_guard_reads_a_spoofable_accelerator_probe` (from #13830 and #13889) ``` test_fp8_rowwise_gemv_blackwell_gate.py:47: torch.cuda.is_available() test_norm_fast_launch.py:189: torch.cuda.device_count() ``` `tests/_zoo_aggressive_cuda_spoof.py` patches the torch.cuda probes to report a GPU process-wide for the version-compat suites, so a skip guard that reads them un-skips on a CPU-only runner whenever it shares a pytest session with those suites. Both guards now ask `has_real_cuda()` from `tests/_shared/real_accelerator.py` (answered before any spoof), the form the rest of the tree uses: `not has_real_cuda()` for the FP8 GEMV exactness test, and `not has_real_cuda() or torch.cuda.device_count() < 2` for the two-GPU norm test, matching `test_rms_layernorm_multirow.py`. On a real GPU the predicate is the same as before. ## Verification - `tests/studio/test_ui_font_scale_contract.py`: fails on main as above, 12 passed here. Prettier clean. - `tests/python/test_accelerator_skip_guards.py`: fails on main as above, 24 passed here. - On CPU, `test_fp8_rowwise_gemv_blackwell_gate.py` and `test_norm_fast_launch.py`: 6 passed, 4 skipped (the GPU cases, with their reasons), same as main. - Not run here: the GPU cases themselves. This host's CUDA torch environment fails bitsandbytes CUDA setup at collection, unrelated to this change; the test bodies are untouched.
(Python 3.13, rest)is red on main since #13806 (1be7795), including on #13909's own run:#13806 is right. It made an EAGLE-3 drafter droppable on a failed load like the others, so the fallback in
LlamaCppBackend.load_modelbecameThe test located that block with
src.find("and (_spec_requested_mtp or _spec_requested_dspark or _spec_requested_dflash)"), the old one-line spelling. After the changefindreturns -1, so0 <= probe < fallbackfails even though the probe still comes first. The ordering it guards is intact.The test now finds the fallback by its shape:
not healthy and (followed by the_spec_requested_mtp or _spec_requested_dspark ... _spec_requested_dflashalternatives, whitespace and line breaks allowed, so adding another drafter kind or rewrapping does not break it. If no such block exists it fails with its own message (load_model no longer has a drafter-drop fallback for MTP) rather than reporting a misleading order failure.Verification:
studio/backend/tests/test_tensor_parallel.py: fails on main as above, 111 passed with this change._spec_requested_dflashremoved from the fallback inllama_cpp.py: fails withload_model no longer has a drafter-drop fallback for MTP.the probe must precede the drafter-drop fallback.tests/test_formatter_fixed_point.py: passes.