Repository navigation
fix(swe): preserve sampled tokens in empty final responses - #3823
Conversation
Signed-off-by: wdykas <[email protected]>
wdykas
left a comment
There was a problem hiding this comment.
AI code review (Codex) of 1b7def69b5bc29d3d0b370c5e7b2a0f2f52b5cb5: LGTM — no actionable findings.
Reviewed final-message retention, provider-field precedence, both trajectory materialization callers, and downstream Responses conversion. All 24 focused regression cases passed locally. Full model/SWE smoke rollouts were not run.
|
/claude review |
|
/ok to test 1b7def6 |
|
/ok to test 2b9d9b1 |
@cmunley1, there was an error processing your request: See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/ |
|
/ok to test 2b9d9b1 |
|
/ok to test 2b9d9b1 |
@cmunley1, there was an error processing your request: See the following link for more information: https://docs.gha-runners.nvidia.com/cpr/e/2/ |
|
/ok to test 2b9d9b1 |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37817000016 |
The SWE agent drops a final assistant response when its content and tool calls
are empty, even if it contains sampled token IDs and log probabilities. This
omits EOS-only completions from the returned training trajectory. With earlier
turns present, the trajectory can still be accepted for training without its
final sampled action.
Retain the final message when it contains generated token IDs, after merging
provider-specific metadata. Responses without sampled tokens remain excluded;
nonempty content and tool-call behavior are unchanged.