Skip to content

feat(eval): add RunArtifacts to derive a run's files from its rollouts path - #4909

Merged
prokotg merged 1 commit into
prokotg/eval-run-resolved-configfrom
prokotg/eval-run-artifacts
Oct 28, 2026
Merged

prokotg merged 1 commit into
prokotg/eval-run-resolved-configfrom
prokotg/eval-run-artifacts

Conversation

@prokotg

@prokotg prokotg commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • RunArtifacts(rollouts_jsonl_fpath) (nemo_gym/run_artifacts.py) derives every file of a run from the rollouts path: failures, materialized inputs, aggregate metrics, saved config and a per-exporter run id marker (exporter_run_id_path_for: rollouts.jsonl, mlflow -> rollouts_mlflow_run_id).
  • Paths are derived, never checked; each exporter decides which files it requires.

No behavior change; nothing uses it yet. Part of #2977 (export-aware evaluation runs).

PR plan

Separate PRs; steps 1-8 are stacked (stack #4910). Goal: make gym eval export pluggable so a finished run can go to tracking systems without live exporters, and gym eval submit can export after each benchmark.

  1. save the masked, unresolved config from gym eval run (feat(eval): save the masked config beside rollouts from gym eval run #4908)
  2. This PR: RunArtifacts and path derivation helpers
  3. Exporter base class and registry, starting with atif, plus the positional exporter CLI argument (--format deprecated) (feat(eval): add the Exporter base class and registry, with atif as the first exporter #4911)
  4. post-run mlflow and wandb export: shared metrics flattening, BaseExporter.export() and the already-exported guard (feat(eval): export a finished run to MLflow or W&B with gym eval export #4914)
  5. isolated-venv subprocess runner for directory exporters (feat(eval): add IsolatedExporter to run an exporter's backend work in its own venv #4915)
  6. EvalRDL exporter (feat(eval): export a finished run to EvalRDL with gym eval export evalrdl #4965)
  7. gym eval submit integration: an export map with job-level defaults and per-benchmark overrides, validation, install extras, and a job-script tail (Slurm only at first) (feat(orchestration): run exports after each benchmark of gym eval submit #4974)
  8. contributor guide: add an exporter (user-facing docs land in each step's PR) (docs(contribute): add a guide to writing an exporter for gym eval export #5077)

Validation

  • test_run_artifacts.py: 3 passed (marker path, derived siblings, no files needed). pre-commit: passed.

Rollout evidence

N/A: no agent, verifier or model behavior is touched.

@prokotg
prokotg added this pull request to stack #4910 October 22, 2026 10:40
@copy-pr-bot

copy-pr-bot Bot commented Oct 22, 2026

Copy link
Copy Markdown

Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:evaluation Evaluation, rollout collection, reward profiling, comparison, and exporters feature New capabilities, enhancements, or enablement work labels Oct 22, 2026
@prokotg

prokotg commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test f1014a2

@prokotg

prokotg commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 5156a4f

@prokotg

prokotg commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

/review

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP — LGTM — no reliability concerns.

Reviewed all three changed files and checked the existing artifact writers and exporter marker conventions. RunArtifacts preserves those naming contracts without requiring files to exist. The new tests cover derived siblings, string-to-Path normalization, and absent sidecars.

Static review only; tests were not executed.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@prokotg
prokotg marked this pull request as ready for review October 23, 2026 10:34
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the needs-review PR is ready for code review and waiting on a reviewer label Oct 23, 2026

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP — LGTM — no reliability concerns within this follow-up scope.

Inspected all three changed files, including RunArtifacts and its tests. The latest bot review reported no findings and reviewed this identical head, so there are no unresolved findings or subsequent changes to assess. No fresh whole-PR discovery was performed.

Static inspection only; tests were not executed.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a findings-only review. Request a full review with /review reset=true.

@prokotg

prokotg commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

/review

…s path

One place that names every sidecar of a run (failures, materialized inputs, aggregate
metrics, saved config, per-exporter run id marker) so exporters do not each rebuild paths.

Signed-off-by: Tomasz Grzegorzek <[email protected]>
@prokotg

prokotg commented Oct 28, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 53c8b5a

@iguehring-nvidia iguehring-nvidia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving on Marta's stead.

@prokotg
prokotg added this pull request to the merge queue Oct 28, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40681009416

Merged via the queue into main with commit 49b23c4 Oct 28, 2026
54 of 57 checks passed
@prokotg
prokotg deleted the prokotg/eval-run-artifacts branch October 28, 2026 13:08

This branch was previously deployed

1 inactive deployment
public — 53c8b5a3 Deployed Oct 28, 2026 by copy-pr-bot[bot] via release / finalize / notify #7776
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 feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants