Skip to content

Add complete SWE rollout timeline metrics - #1825

Merged
bxyu-nvidia merged 6 commits into
NVIDIA-NeMo:mainfrom
youngeunkwon0405:codex/swe-rollout-timeline
Jul 9, 2026
Merged

bxyu-nvidia merged 6 commits into
NVIDIA-NeMo:mainfrom
youngeunkwon0405:codex/swe-rollout-timeline

Conversation

@youngeunkwon0405

@youngeunkwon0405 youngeunkwon0405 commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add absolute UTC generation and evaluation start timestamps to SWE rollout metrics

  • persist the OpenHands per-turn metrics block in nemo_gym_metrics.json

  • keep all new fields optional for compatibility with existing runs and consumers

  • preserve null evaluation timestamps when an agent produces no patch or evaluation never starts

  • pick the nv-OpenHands commit hash to reflect the changes from Record Gym LLM call timestamps and token usage sdevare-nv/nv-OpenHands#19, it will provide more accurate timestamps.

  • upload swe_trace_converter.py file for profile visualization.

Sample perfetto json visualization outcome

image

Why

The existing metrics file contained phase durations but no absolute phase anchors. Per-call OpenHands timing and token metrics were written only to output_for_eval.jsonl, forcing downstream tooling to join files and infer placement.

With this change, nemo_gym_metrics.json is the complete per-instance timeline source.

Validation

  • focused SWE-agent metrics tests: 6 passed, 105 deselected
  • OCI-HSG end-to-end Qwen3-30B-A3B SWE-rebench smoke: Slurm job 3652581, completed 0:0
  • generated metrics contained a parseable generation timestamp, 4 response records, 4 token records, and 4 action records
  • per_turn_metrics exactly matched output_for_eval.jsonl.oh_time_metrics
  • the intentional four-turn no-patch path correctly left evaluation_start_timestamp null

Both commits are DCO signed.

@copy-pr-bot

copy-pr-bot Bot commented Jun 30, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@youngeunkwon0405 youngeunkwon0405 changed the title [codex] Add complete SWE rollout timeline metrics Add complete SWE rollout timeline metrics Jul 1, 2026
@youngeunkwon0405
youngeunkwon0405 marked this pull request as ready for review July 1, 2026 20:42
@youngeunkwon0405
youngeunkwon0405 force-pushed the codex/swe-rollout-timeline branch 2 times, most recently from 315001e to 3cdcb86 Compare July 8, 2026 05:27
@youngeunkwon0405
youngeunkwon0405 force-pushed the codex/swe-rollout-timeline branch from 3cdcb86 to ba3f933 Compare July 8, 2026 05:33
@youngeunkwon0405 youngeunkwon0405 self-assigned this Jul 8, 2026
@youngeunkwon0405
youngeunkwon0405 force-pushed the codex/swe-rollout-timeline branch 4 times, most recently from 99e5015 to 6976f16 Compare July 9, 2026 01:07
@youngeunkwon0405
youngeunkwon0405 force-pushed the codex/swe-rollout-timeline branch from 6976f16 to 4a0f6f4 Compare July 9, 2026 06:47
@youngeunkwon0405
youngeunkwon0405 force-pushed the codex/swe-rollout-timeline branch from be0735c to d51d0fe Compare July 9, 2026 07:04

@sdevare-nv sdevare-nv 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.

Looks good to me!

@youngeunkwon0405
youngeunkwon0405 enabled auto-merge (squash) July 9, 2026 16:18
@youngeunkwon0405
youngeunkwon0405 disabled auto-merge July 9, 2026 16:18
@bxyu-nvidia
bxyu-nvidia merged commit cccbac1 into NVIDIA-NeMo:main Jul 9, 2026
8 checks passed
OlegSudakov pushed a commit to OlegSudakov/Gym that referenced this pull request Jul 15, 2026
## Summary

- add absolute UTC generation and evaluation start timestamps to SWE
rollout metrics
- persist the OpenHands per-turn metrics block in
`nemo_gym_metrics.json`
- keep all new fields optional for compatibility with existing runs and
consumers
- preserve null evaluation timestamps when an agent produces no patch or
evaluation never starts

- pick the nv-OpenHands commit hash to reflect the changes from
sdevare-nv/nv-OpenHands#19, it will provide more
accurate timestamps.

- upload `swe_trace_converter.py` file for profile visualization.

### Sample perfetto json visualization outcome
<img width="2512" height="1183" alt="image"
src="https://github.com/user-attachments/assets/b5c9a7ce-859d-48cf-82f1-cbcb767b13c5"
/>

## Why

The existing metrics file contained phase durations but no absolute
phase anchors. Per-call OpenHands timing and token metrics were written
only to `output_for_eval.jsonl`, forcing downstream tooling to join
files and infer placement.

With this change, `nemo_gym_metrics.json` is the complete per-instance
timeline source.

## Validation

- focused SWE-agent metrics tests: 6 passed, 105 deselected
- OCI-HSG end-to-end Qwen3-30B-A3B SWE-rebench smoke: Slurm job
`3652581`, completed `0:0`
- generated metrics contained a parseable generation timestamp, 4
response records, 4 token records, and 4 action records
- `per_turn_metrics` exactly matched
`output_for_eval.jsonl.oh_time_metrics`
- the intentional four-turn no-patch path correctly left
`evaluation_start_timestamp` null

Both commits are DCO signed.

---------

Signed-off-by: Youngeun Kwon <[email protected]>
Signed-off-by: Oleg Sudakov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants