Skip to content

fix(eval): count final failures as 0 in reverification metrics - #4875

Closed
AdamRajfer wants to merge 1 commit into
NVIDIA-NeMo:arajfer/stack/retry-rule-fixesfrom
AdamRajfer:eval/reverify-final-zero-p2
Closed

AdamRajfer wants to merge 1 commit into
NVIDIA-NeMo:arajfer/stack/retry-rule-fixesfrom
AdamRajfer:eval/reverify-final-zero-p2

Conversation

@AdamRajfer

Copy link
Copy Markdown
Contributor

Follow-up to #4844, stacked on it: merge after #4844. From review finding 4338966652.

What and why. gym eval aggregate counts every final failure as 0, but reverification aggregated only its main JSONL, so the same artifacts could give two different scores. Reverification now adds a metrics-only 0 for each final sidecar failure, using the selection gym eval aggregate uses with [] (no retryable class). Retryable failures and data gaps stay out of the score. The sidecar and rollouts files are unchanged.

Eval scores. Reverified runs with final failures move down to match gym eval aggregate.

Unit tests. tests/unit_tests/test_rollout_reverification.py::test_reverification_counts_final_failures_as_zero_like_gym_eval_aggregate, which fails without the fix. The reverification suites pass.

🤖 Generated with Claude Code

Review finding 4338966652 (follow-up to NVIDIA-NeMo#4844). Reverification already treats a final sidecar failure as final for its resume, but its metrics read only the main rollouts file, so a run with one success and one final verifier failure scored 1.0 there and 0.5 in gym eval aggregate. Reverification now adds metrics-only zeros for the final failures, chosen by the same selection gym eval aggregate uses with no retryable class (a key that succeeded is skipped, retry_terminal_timeouts is honoured). Retryable failures and data gaps stay out of the score; the sidecar, the exports and the returned rows are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Adam Rajfer <[email protected]>
@AdamRajfer AdamRajfer self-assigned this Oct 21, 2026
@AdamRajfer
AdamRajfer requested a review from ananthsub October 21, 2026 20:25
@nemo-automation-bot
nemo-automation-bot Bot requested review from a team October 21, 2026 20:26
@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters bug Something isn't working labels Oct 21, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the needs-review PR is ready for code review and waiting on a reviewer label Oct 22, 2026
@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Oct 22, 2026
@AdamRajfer AdamRajfer closed this Nov 6, 2026

This branch was previously deployed

1 inactive deployment
public — 56d57f34 Deployed Oct 21, 2026 by copy-pr-bot[bot] via release / finalize / notify #6429
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters bug Something isn't working needs-review PR is ready for code review and waiting on a reviewer sla:review-overdue Review response is over the one-business-day SLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants