Skip to content

Kaggle T4: fail a batched row that generates nothing while its single does not - #10367

Merged
danielhanchen merged 2 commits into
mainfrom
ci/kaggle-batched-empty-rows
Sep 6, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
ci/kaggle-batched-empty-rows

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

The Kaggle T4 leg's 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 with the single. For a model listed in KNOWN_BATCHED_GENERATION_BREAKAGE that 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.py

  • batched_generation now records, per batch size, the rows whose batched output is empty while the single output is not, under empty_batched_outputs.
  • batched_generation_failures turns 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.

… 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.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 6, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-06T06:57:20.090510Z 91669b4 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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()]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

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