Repository navigation
Kaggle T4: fail a batched row that generates nothing while its single does not - #10367
Conversation
… does not batched_generation reported empty_outputs from the one-at-a-time pass only. A prompt that produced text alone and nothing inside a batch of 2, 4 or 8 was recorded as a plain disagreement, and for a model listed in KNOWN_BATCHED_GENERATION_BREAKAGE the disagreement is expected, so the empty row was excused with it and the leg stayed green. Record, per batch size, the rows whose batched output is empty while the single output is not, and turn them into their own failure. The strict expectation for listed models excuses a differing output, not a missing one, so the new rule stays live for them. Tests: the rule fires for a listed model, a hand-written payload with a batched-only empty row is a failure even when the singles are fine, and an end-to-end stub that generates text alone and nothing in the batch produces the record.
|
You have reached your Codex usage limits for security reviews. Please try again later. |
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: 91669b4174
ℹ️ 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".
| outs.extend(_gen(prompts[start : start + size])) | ||
| result["batched"][str(size)] = outs | ||
| result["agrees"][str(size)] = outs == singles | ||
| rows = [i for i, text in enumerate(outs) if not text.strip()] |
There was a problem hiding this comment.
Exclude rows whose single output is already empty
When a prompt decodes to empty text both alone and in a batch, this records its index in empty_batched_outputs even though that field and the resulting failure explicitly claim the one-at-a-time output was non-empty. The existing empty_outputs check already reports this scenario, so the new entry duplicates the failure and incorrectly attributes it to the batch-only #9848 condition; filter these indices against the corresponding value in singles.
Useful? React with 👍 / 👎.
Summary
The Kaggle T4 leg's
batched_generationreportedempty_outputsfrom the one-at-a-time pass only. A prompt that produced text alone and nothing inside a batch of 2, 4 or 8 was recorded as a plain disagreement with the single. For a model listed inKNOWN_BATCHED_GENERATION_BREAKAGEthat disagreement is the expected #9708 behaviour, so the empty row was excused along with it and the leg stayed green.An empty batched row is the #9848 shape (a fully masked left-pad row propagating NaN into the decode), which is a different and more severe failure than a differing continuation, and it must not be hidden behind the strict expectation.
Change
tests/kaggle/t4_smoke/run_t4_smoke.pybatched_generationnow records, per batch size, the rows whose batched output is empty while the single output is not, underempty_batched_outputs.batched_generation_failuresturns each such row into its own failure naming the batch size and the prompt indices. The strict expectation for listed models excuses a differing output only, so this rule stays live for them.Tests
test_known_upstream_breakage.py: a listed model with a batched-only empty row still fails.test_t4_payload_assertions.py: a hand-written payload with a batched-only empty row is a failure even when the singles are all non-empty; and an end-to-end stub model that generates text alone and nothing inside the batch produces the record and the failure.With the payload change reverted, all three new tests fail.
python3 -m pytest tests/kaggle -q: 923 passed.