Repository navigation
fix(orchestration): fail evaluations with incomplete samples - #3716
Conversation
Signed-off-by: Michal Bien <[email protected]>
Signed-off-by: Michal Bien <[email protected]>
|
/ok to test 673e9a4 |
|
/claude review |
|
SHIP WITH CARE — sound change, no blockers. What this does: adds a Correctness reviewed and looks right:
Coverage: both parametrized branches (require_complete on/off) and the incomplete-resume case are tested end-to-end through the real dispatch/aggregation path; slurm script test asserts One NOTE left inline re: the interaction between |
| { | ||
| (r.get("stage_index"), r[TASK_INDEX_KEY_NAME], r[ROLLOUT_INDEX_KEY_NAME]) | ||
| for r in results | ||
| if r.get(NG_FAILURE_CLASS_KEY) is None and not r.get(NG_NO_PERSIST_KEY) |
There was a problem hiding this comment.
NOTE: check_completion counts only persisted_results and excludes any row with NG_FAILURE_CLASS_KEY, so count_failure_classes_as_zero rows never count toward completed. WHAT THIS MEANS: because eval submit now forces require_complete=True on every submitted job (slurm_script.py:839), a run that deliberately configures count_failure_classes_as_zero=[agent_run_error] to fold those failures into the score as zeros will still hard-fail with EVAL FAILED: N/M. The test at test_rollout_collection.py:1539 confirms this is intended, but the two flags are orthogonal in a way an operator may not expect: "score these failures as zero" no longer implies "tolerate them." BLAST RADIUS: any submitted eval with a tolerated failure class errors out instead of reporting; partial artifacts are retained. If that's the intended contract, a one-line note in the require_complete field description would save an operator a debugging session.
There was a problem hiding this comment.
I think those are complimentary, not orthogonal. You can have evaluation with count_failure_classes_as_zero that you sometime deem complete or incomplete. Example: safety benchmarks that use judge model which sometimes might refuse to judge. We're not able to change proxy settings so we might run with require_complete=True first and then turn it off
|
/ok to test df85759 |
|
/ok to test ef0fe68 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/36556261090 |
What does this PR do?
Fail a submitted benchmark job when fewer samples finish than expected, even if the collector returns normally. Submission enables
require_completeby default; setdriver.benchmarks.<name>.run.require_complete: falseto opt out. Standalone runs retain their current default behavior.Uses the collector's existing expected count and persisted results. Zero-reward results count as finished; duplicates and failure records do not. Checks run after partial artifacts and metrics are saved. GDPVal uses its stage counts, including the original plans for cached stages. Interrupted runs also exit nonzero when
require_completeis enabled.No separate issue: this fixes false-success job status. Regression checks reuse existing tests. There are no new files or dependencies.
Validation
At
673e9a46, 808 affected tests passed, including collector, orchestration, CLI, and GDPVal tests. GDPVal's 42 tests were rerun after the final cached-plan edit. Exact suite command using the shared development venv and this checkout's server namespace:Local generated-shell smoke checks returned 0 for complete standard/GDPVal runs and 1 for incomplete/interrupted runs. Slurm and service startup were substituted locally; the collection entrypoints and completion checks were real. Disabling the check makes the partial-collection regression fail with
DID NOT RAISE.At the current head (
51e3ffe0), all five targeted submission/collection cases passed: the default, explicit enablement, explicit opt-out, and partial collection with the check enabled/disabled. The opt-out case failed before the change. Pre-commit checks on all three changed files andgit diff --checkpassed. The earlier full suite was not rerun for this change.Full CI (core, sandbox, eight server shards) and live Slurm execution were not run locally.
Rollouts
N/A for model rollouts: this changes completion accounting and exit status, not agent or verifier behavior.
Compatibility and benchmark impact
Failure is per submitted benchmark job. Partial metrics remain available, and scoring is unchanged. Submitted drivers need an updated Gym installation. NEL launches bypass Gym submission and must explicitly pass
++require_complete=trueto opt in. Custom collection drivers must honorrequire_completeby callingcheck_completionwith their full expected count; the built-in GDPVal driver does so. Collector cleanup and exit propagation from #3610 remain unchanged.Checklist