Skip to content

Fix Needle-in-a-Haystack evaluation after sampling 🤖🤖🤖 - #345

Open
Vcode2407 wants to merge 1 commit into
NVIDIA:mainfrom
Vcode2407:fix/needle-sampled-row
Open

Vcode2407 wants to merge 1 commit into
NVIDIA:mainfrom
Vcode2407:fix/needle-sampled-row

Conversation

@Vcode2407

@Vcode2407 Vcode2407 commented Nov 15, 2026 •

Copy link
Copy Markdown

PR description

The Needle-in-a-Haystack setup reads the source row by index label 0. Sampling preserves the original pandas labels, so the benchmark can raise KeyError or pick a different row from the first one in the sample. A small sampling fraction can also discard the benchmark's single source document when the requested count rounds to zero.

The setup now takes the first row by position. Evaluation sampling keeps at least one row when the source dataset is nonempty and still uses the configured seed.

The row-selection regressions cover a missing label 0 and a label 0 that belongs to a later row. Both failed before the fix. The sampling tests cover retaining the single source row and matching the existing seeded selection for a larger dataset. All 11 focused tests passed.

Checklist

  • Full make test suite
  • Full make style check
  • Copyright header is included
  • Commit is signed off with git commit -s

🤖🤖🤖

Signed-off-by: Vcode2407 <174947873+Vcode2407@users.noreply.github.com>
@copy-pr-bot

copy-pr-bot Bot commented Nov 15, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@Vcode2407

Copy link
Copy Markdown
Author

Hi, could a maintainer vet this PR and approve the Style workflow? DCO passed, and the sampling regression tests passed locally. Thanks! Style workflow

🤖🤖🤖

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.

2 participants