Repository navigation
feat(eval): batch swe-bench and core benchmark runs - #3201
Conversation
Group the 11 core-text benchmarks into a shared suite with concurrency 512. Group SWE-bench Verified and Multilingual with concurrency 1024. Keep SWE-bench Pro as a standalone evaluation. Add tests covering suite membership, defaults, and config resolution. Signed-off-by: Frankie Siino <[email protected]>
Make the Slurm wall time configurable while preserving the four-hour default. Reuse completed rollouts through a stable output path and Gym’s resume cache. Stop cleanly before the deadline and return status 75 for resumable runs. Keep vLLM and OpenSandbox cleanup behavior intact. Signed-off-by: Frankie Siino <[email protected]>
Schedule batched evaluations round-robin using each resolved agent. Preserve task indexes, repeat seeds, and resume identities. Create async tasks deterministically before they enter the concurrency limit. Keep materialized inputs and lower-level caller ordering unchanged. Signed-off-by: Frankie Siino <[email protected]>
Keep the run-wide concurrency limit as the overall ceiling. Allow named agents to use narrower limits for constrained services. Reject invalid limits and agent-name mistakes before dispatch begins. Test limit enforcement without weakening scheduling or resume behavior. Signed-off-by: Frankie Siino <[email protected]>
Preserve successful metrics when another agent fails aggregation. Write a clear error entry for each affected agent. Keep aggregate artifacts deterministic and safe to consume. Allow standalone aggregation to replace errors after recovery. Signed-off-by: Frankie Siino <[email protected]>
Validate EFB manifests against materialized inputs before dispatch. Track rollout progress, classified failures, repeat policy, and metrics per agent. Write secret-safe status updates atomically during collection and aggregation. Allow standalone aggregation to repair and refresh the final batch status. Signed-off-by: Frankie Siino <[email protected]>
Allow repeat seeds to be enabled only for selected agents. Keep the existing global boolean behavior for current configurations. Support routing-aware defaults and flag missing or unused agent names. Prevent seed metadata from leaking between fan-out targets. Signed-off-by: Frankie Siino <[email protected]>
Signed-off-by: Frankie Siino <[email protected]>
Remove RESUME_EVAL_ON_REQUEUE and PREDEADLINE_SECONDS. Restore timestamped output paths and explicitly configured resume. Keep configurable walltime and existing cleanup behavior. Replace obsolete deadline tests with focused launcher regressions. Signed-off-by: Frankie Siino <[email protected]>
Describe the core and SWE batches and their shared GPU allocation. Add short examples for concurrency, repeats, and completion checks. Clarify which additional settings are needed to reproduce a run. Signed-off-by: Frankie Siino <[email protected]>
Make checkpoint, container, and Slurm settings caller-configurable. Include core and SWE recipes with dependency setup before evaluation. Preserve explicit resume behavior and safely forward configuration overrides. Document launch commands and add focused regression tests. Signed-off-by: Frankie Siino <[email protected]>
Signed-off-by: Frankie Siino <[email protected]>
|
Do you have complete standalone-vs-batch test results using the same checkpoint and evaluation settings? We should confirm that batching preserves per-benchmark scores (within expected sampling variation) and evaluation behavior. The provided sheet above seems incomplete. |
yuhezhang-ai
left a comment
There was a problem hiding this comment.
Thanks for addressing the earlier feedback. I rechecked 67353cff: the GDPVal error handling, dictionary seed policy, and cross-benchmark request-default issues are fixed. The scoring alignment and compatibility documentation also address the earlier requests.
There is one remaining follow-up concerning existing cached LMArena datasets, described inline. Could we cover that migration path before approval? Once it is addressed and the merge conflicts are resolved, please run the required checks on the resulting revision; the available full CI results still cover the older head.
…efaults Let a prepare script define is_prepared_data_current so gym eval prepare does not reuse a cached file made by older code when use_cached_prepared_benchmarks is on. LMArena's check requires every row to carry the generation defaults, which now come from one shared dictionary. Test the stale and current paths through prepare_benchmark. Signed-off-by: Frankie Siino <[email protected]>
Signed-off-by: Frankie Siino <[email protected]> # Conflicts: # nemo_gym/rollout_collection.py
|
/ok to test e28d067 |
@yuhezhang-ai Reran on the new head e28d067 |
yuhezhang-ai
left a comment
There was a problem hiding this comment.
Thanks for addressing the review feedback. The cached-data fix resolves my remaining concern, and the focused tests and latest CI pass. Looks good to me.
|
Hi @bxyu-nvidia can you take a final look to approve? |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37358459019 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37366052493 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37380491945 |
…o#3990) Hydra overrides containing inline dictionaries were expanded by Bash inside the generated Slurm evaluation command. A dataset override could become several arguments and fail configuration validation before evaluation began. Serialize each caller argument with Bash `%q` so both `gym eval prepare` and `gym eval run` receive it literally, including spaces, quotes, and newlines. Update `submit_batch.sh` to pass its original argument array to the launcher, avoiding double escaping when used with the batch entrypoint from NVIDIA-NeMo#3201. Keep the serialized `GYM_BATCH_ARGS` for its dependency check. The generated commands preserve argument boundaries in preparation, evaluation, and the batch dependency check. Cluster smoke validation is pending. No separate issue is needed for this self-contained launcher repair. Signed-off-by: Frederic Lafrance <[email protected]>
Summary
Separate benchmark jobs each reserve GPUs and load the same model, even though individual benchmarks alternate between model requests and other work, such as running tests or waiting for a grading service. Sharing a deployment gives other benchmarks an opportunity to use that capacity and reduces the number of GPUs needed at the same time.
This PR lets several benchmarks share one model-serving deployment and GPU allocation in NeMo Gym, while keeping their tasks and scores separate. Instead of starting a separate copy of the model for every benchmark, Gym schedules their evaluation attempts together and saves progress so an interrupted batch can resume without repeating completed work when explicitly configured to reuse that output.
Scope
SWE-bench Pro remains standalone and is explicitly excluded. One node has 4 GPUs.
Implementation
batch_manifest_fpathandbatch_status.json.ROLLOUTS_FPATHat the saved output and pass++resume_from_cache=true. Job termination follows normal Slurm behavior.Validation and resource usage
gym eval preparenow lets a prepare script defineis_prepared_data_current, so withuse_cached_prepared_benchmarks=truean LMArena file prepared before this change is prepared again.batched.shexports the Mamba KV-transfer settings (VLLM_SSM_CONV_STATE_LAYOUT=DSandVLLM_USE_V2_MODEL_RUNNER=0) that main's launcher rewrite had moved into per-model configs. Remaining recipe differences and the historically tested vLLM/container setup are documented in benchmarks/nemotron_3.5_super/README.md. The scores below come from the final recipe.Available benchmark scores
The final-recipe step-120 core batch and all 13 standalone benchmarks are complete. The seven resumed standalone benchmarks have all expected task attempts, matching final metrics, and no missing, duplicate, or unexpected result IDs. Standalone HLE was rerun with the batch's grader (GPT-4o, structured verdict, same 8,192-character rule).
Both columns use the same checkpoint and matched settings, and the batch column is a single run of all 11 core benchmarks. A gap is within sampling variation when it is at most twice the combined standard error, computed from the spread across repeats (task-level for HLE, which has one repeat); the allowed band is shown in parentheses. Tau3-Average and OmniIndex are derived metrics with no per-repeat version, so they are not assessed; their components are within variation. AA-LCR is the only benchmark outside the band, and its cause has not been identified. Remaining differences are the serving flags, judge concurrency, and standalone HLE running on current main while the other standalone runs used the pre-batching baseline.
SWE-bench comes from a separate batch. The 09-16 SWE batch ran before main's later SWE harness changes, and it keeps eight infrastructure-flagged attempts.
Run commands (Gym only)
Run
uv sync --frozen --extra devfirst and make the required benchmark data available in the checkout. Supply OpenSandbox credentials through untrackedenv.yamlor exportedOPENSANDBOX_DOMAINandOPENSANDBOX_API_KEY; core also needsnv_inference_api_keyinenv.yamlor exportedNV_INFERENCE_API_KEY. No root-level pilot files or historical-job IDs are required. Container, checkpoint, data, and remote OpenCode asset requirements are documented in benchmarks/nemotron_3.5_super/README.md.Core batch
SWE-bench Verified + Multilingual batch
Append
--checkto either command to validate local paths and configuration without submitting a job or installing dependencies.Remaining TODOs
++resume_from_cache=true, retaining the experiment name and output path. Release certification is separate from this Gym PR.Checklist
git commit -s) (so the DCO check passes).