Repository navigation
Studio: refuse Laya choice questions whose options would be cut short - #14558
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a477bb9359
ℹ️ 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".
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! 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". |
…heck test (#14561) `test_block_dequant_is_checked_for_its_peak_intermediates[nvfp4]` (added in #14510) failed on #14558's Backend CI `(Python 3.13, a-k)` run (job 119452419222), on the same base where main's run passed it. #14558 only touches Laya files: ``` E AssertionError: ([50298880], 56627200) E assert ([50298880] and 50298880 >= (0.9 * 56627200)) ``` The test samples `RssAnon` while `dequant_block` runs and requires the host RAM charge to cover 90% of the growth. `RssAnon` is process-wide, so in a busy xdist worker anything else allocating at the same time is counted as the dequant's peak. Run alone, the charge is close to exact. Charge / growth over 12 local runs each: | format | min | max | |---|---|---| | nvfp4 | 0.963 | 1.038 | | mxfp8 | 0.990 | 1.078 | CI's 0.889 is about 6 MB of unrelated growth. The product's estimate is right; the measurement was noisy. ## Change The measurement runs three times, and the smallest growth is the one checked against the same 0.9 bar. Unrelated activity can only add to a reading, so the minimum is the closest to the dequant's own peak, and the guard keeps its strength. ## Testing - Three back-to-back runs of both parameters: pass. - Sabotage: charging only the bf16 output, without the chunk intermediates, in `diffusion_comfy_block.py` fails both formats (`[33554432] vs ~50 MB`).
The refusal fires once options pass head_max_len minus the 16 tokens build_sequence reserves for the question, so the message now names that limit (176 for Laya English) instead of head_max_len. The test also covers the exact budget boundary and checks the vendored build_sequence shortens options exactly when the API refuses.
|
Pushed
|
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! 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. 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". |
|
Codex review and CI are done on head Codex: "Didn't find any major issues" on CI: upstream jobs were stuck in the queue, so CI ran on a staging copy with the same head and base (Lyxot#189): 35 pass, 4 fail, 2 skipped. None of the 4 failures come from this PR. Staging PR Lyxot#188, which has the same base (
What changed in this round:
|
Laya reads a question's options inside a fixed token budget (192 tokens for Laya English, 256 for Laya Multilingual). Past it, each option keeps only its share of the budget, so longer options are silently cut and the Decision API still answers with HTTP 200. When only the descriptions tell the options apart, the answer goes wrong with no warning: a double-charge refund ticket went to the "new feature" team at 32 options on Laya Multilingual. Plain labels get cut too: with 40 labels on Laya English,
mobile_app_crashandmobile_app_slowboth read asmobile_app, and a crash ticket went tomobile_app_slowat 99.8%. At 118 options Laya English said "Shorten the state" for a two-sentence state.A choice question is now refused with a 422 naming the question and the budget when one of its options would be cut, the same way a state that does not fit is already refused. Options that fit their share, including long lists of short labels, get exactly the same answers as before.