Repository navigation
Add complete SWE rollout timeline metrics - #1825
Merged
bxyu-nvidia merged 6 commits intoJul 9, 2026
Merged
Conversation
Signed-off-by: Youngeun Kwon <[email protected]>
Signed-off-by: Youngeun Kwon <[email protected]>
youngeunkwon0405
marked this pull request as ready for review
July 1, 2026 20:42
Signed-off-by: Youngeun Kwon <[email protected]>
youngeunkwon0405
force-pushed
the
codex/swe-rollout-timeline
branch
2 times, most recently
from
July 8, 2026 05:27
315001e to
3cdcb86
Compare
Signed-off-by: Youngeun Kwon <[email protected]>
youngeunkwon0405
force-pushed
the
codex/swe-rollout-timeline
branch
from
July 8, 2026 05:33
3cdcb86 to
ba3f933
Compare
youngeunkwon0405
force-pushed
the
codex/swe-rollout-timeline
branch
4 times, most recently
from
July 9, 2026 01:07
99e5015 to
6976f16
Compare
Signed-off-by: Youngeun Kwon <[email protected]>
youngeunkwon0405
force-pushed
the
codex/swe-rollout-timeline
branch
from
July 9, 2026 06:47
6976f16 to
4a0f6f4
Compare
Signed-off-by: Youngeun Kwon <[email protected]>
youngeunkwon0405
force-pushed
the
codex/swe-rollout-timeline
branch
from
July 9, 2026 07:04
be0735c to
d51d0fe
Compare
youngeunkwon0405
enabled auto-merge (squash)
July 9, 2026 16:18
youngeunkwon0405
disabled auto-merge
July 9, 2026 16:18
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]>
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
add absolute UTC generation and evaluation start timestamps to SWE rollout metrics
persist the OpenHands per-turn metrics block in
nemo_gym_metrics.jsonkeep 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.pyfile for profile visualization.Sample perfetto json visualization outcome
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.jsonis the complete per-instance timeline source.Validation
3652581, completed0:0per_turn_metricsexactly matchedoutput_for_eval.jsonl.oh_time_metricsevaluation_start_timestampnullBoth commits are DCO signed.