Repository navigation
Conversation
Signed-off-by: Serge Panev <[email protected]>
Signed-off-by: Serge Panev <[email protected]>
Signed-off-by: Serge Panev <[email protected]>
Signed-off-by: Serge Panev <[email protected]>
Signed-off-by: Serge Panev <[email protected]>
PR NVIDIA-NeMo#1183 introduced ``task_<id>/repeat_<n>/`` persistence but ``_resolve_repeat_dir`` only judged against the lowest-numbered reference repeat — so for N reference rollouts on disk, N-1 were silently ignored and the win rate / ELO were anchored to a single reference sample. Replace ``_resolve_repeat_dir`` with ``_iter_ref_repeat_dirs`` (returns every ``repeat_*`` dir, falls back to the flat ``task_<id>/`` layout for back-compat) and run a full ``num_comparison_trials`` judge sweep against each reference repeat. Sum the raw judge votes into new ``total_wins``/``total_losses``/``total_ties`` fields on the verify response. ``aggregate_metrics`` prefers those raw counts when present so the win rate now averages over reference variance; verify responses without the new fields fall back to the previous one-vote-per-matchup counting. Signed-off-by: Alex Gronskiy <[email protected]>
Signed-off-by: Serge Panev <[email protected]>
Signed-off-by: Serge Panev <[email protected]>
Kh4L
force-pushed
the
gdpval-persist-raw-judge-responses
branch
from
May 4, 2026 19:28
7c3f5bb to
615dfd0
Compare
2 tasks done
Contributor
Author
|
Superseded by #1225 — same change rebased clean off main, drops 8 stale stack commits (down from 826 → 158 lines). |
agronskiy
pushed a commit
that referenced
this pull request
May 4, 2026
## Summary Adds a config flag `persist_raw_judge_responses: bool = False` on `GDPValResourcesServerConfig`. When True, the raw judge completion text from every trial is preserved on `verify_response.judge_response`: - **Comparison mode** — under `judge_response.per_ref_repeat[i].raw_responses: list[str]` (one per trial, ordered by trial index; trial `i` was swapped iff `i % 2 != 0`). - **Rubric modes** (binary / visual / structured) — under top-level `judge_response.raw_responses: list[str]`. Off by default. Raw responses are 10–50 KB × `num_trials` × `num_ref_repeats` × `num_tasks`, so always-on would meaningfully bloat rollout JSONLs and W&B uploads. Turn on for debug runs to post-mortem judge verdicts (e.g. understanding why a comparison-mode run lost 87% of pairwise comparisons). ## Why When a comparison-mode or rubric run produces unexpected scores, the only persisted signal today is parsed counts/numbers — the judge's actual rationale, criterion-by-criterion grades, and verdict text are fetched and discarded. With this flag, those raw strings survive into the rollout JSONL so post-mortem analysis is possible without re-running. ## Dependency The structured-rubric scorer modified here is added by #1222. Until #1222 lands, this PR's diff includes its commit; after #1222 merges, a rebase against main auto-drops the duplicate (patch-id match). ## Test plan - [x] Unit tests added: `test_persist_raw_judge_responses_comparison`, `test_persist_raw_judge_responses_rubric` — verify both modes pass the flag through to the underlying scorers and that returned raw text appears in the response. - [ ] Smoke run on a small AfterQuery sample with the flag on, inspect resulting JSONL for `raw_responses` field shape (in flight on HSG). ## Replaces #1224 Supersedes draft #1224 which carried 9 commits / 826 lines from a stale Kh4L:dev stack (5 already-merged-to-main with different SHAs). Closing that one. --------- Signed-off-by: Serge Panev <[email protected]> Signed-off-by: Alex Gronskiy <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a config flag
persist_raw_judge_responses: bool = FalseonGDPValResourcesServerConfig. When True, the raw judge completion text from every trial is preserved onverify_response.judge_response:judge_response.per_ref_repeat[i].raw_responses: list[str](one per trial, ordered by trial index; trialiwas swapped iffi % 2 != 0).judge_response.raw_responses: list[str].Off by default. Raw responses are 10–50 KB ×
num_trials×num_ref_repeats×num_tasks, so always-on would meaningfully bloat rollout JSONLs and W&B uploads. Turn on for debug runs to post-mortem judge verdicts (e.g. understanding why a comparison-mode run lost 87% of pairwise comparisons).Why
When a comparison-mode or rubric run produces unexpected scores, the only persisted signal today is parsed counts/numbers — the judge's actual rationale, criterion-by-criterion grades, and verdict text are fetched and discarded. With this flag, those raw strings survive into the rollout JSONL so post-mortem analysis is possible without re-running.
Stacking
Builds on PR #1222 (
[GDPVal] Add structured rubric scoring mode); the structured-rubric kwarg additions only make sense once that lands. Once #1222 merges, this PR will rebase to a single commit cleanly.Test plan
test_persist_raw_judge_responses_comparison,test_persist_raw_judge_responses_rubric— verify both modes pass the flag through to the underlying scorers and that returned raw text appears in the response.raw_responsesfield shape.