Repository navigation
[mini-swe-agent 2] Quickstart fix + gradeable example data & rollouts - #1896
Merged
ananthsub merged 3 commits intoJul 2, 2026
Merged
Conversation
Signed-off-by: Hemil Desai <[email protected]>
…uickstart install - Replace the single gym-subset row with 5 SWE-bench Verified rows so the committed smoke input is gradeable by the pinned swebench==4.1.0. SWE-Gym repos (e.g. getmoto/moto) are absent from swebench's MAP_REPO_VERSION_TO_SPECS, so gym-subset rows raise KeyError during eval and never produce a reward. - Add data/example_rollouts.jsonl and example_rollouts_aggregate_metrics.json generated with Qwen3-30B-A3B (pass@1 = 20%, eval_error_rate = 0), satisfying the "5 example rows + example rollouts" contribution requirement. - Update the committed-data unit test to validate all 5 rows. - Fix the Quick Start install failure: requirements.txt pins nemo-gym via a ../../ editable path that pip/uv resolve relative to the cwd, so running it from the repo root points above the repo and fails. Install the agent's extra deps directly (nemo-gym[sandbox] already comes from `uv sync --extra sandbox`). Signed-off-by: Ananth Subramaniam <[email protected]>
ffrujeri
self-requested a review
July 2, 2026 03:05
ffrujeri
previously approved these changes
Jul 2, 2026
- test: assert subset==verified and split==test (not just field presence) so a reintroduced gym-subset row fails; guard responses_create_params.input access. - README Expected Outputs: correct the row shape (eval_report/model_patch/ instance_id are under metadata; instance fields stay in materialized inputs) and note that an empty model_patch still counts as patch_applied in SWE-bench. - README: record the model used for the committed rollouts (Qwen/Qwen3-30B-A3B, per row under response.model). - README: clarify the repeated-rollouts example is pass@8 on a single task (--limit 1). Signed-off-by: Ananth Subramaniam <[email protected]>
ananthsub
added a commit
that referenced
this pull request
Jul 2, 2026
…louts (1896)` into `r0.4.0` (#1898) beep boop [🤖]: Hi @ananthsub 👋, we've cherry picked #1896 into for you! 🚀 Please review and approve this cherry pick by your convenience! Signed-off-by: Hemil Desai <[email protected]> Signed-off-by: Ananth Subramaniam <[email protected]> Signed-off-by: NeMo Bot <[email protected]> Co-authored-by: Ananth Subramaniam <[email protected]> Co-authored-by: Hemil Desai <[email protected]>
This branch was previously deployed
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
Supersedes #1782 (carries @hemildesai's quickstart README/test changes) and addresses the review feedback that the environment needs 5 example rows + example rollouts, plus a QA-reported Quick Start install failure.
subset: gymrow with 5 SWE-bench Verified rows (data/example.jsonl). SWE-Gym repos (e.g.getmoto/moto) are absent from the pinnedswebench==4.1.0MAP_REPO_VERSION_TO_SPECS, so gym-subset rows raiseKeyErrorduring grading and never yield a reward. Verified repos are in the map and match the README's stated primary validation target.data/example_rollouts.jsonl(+example_rollouts_aggregate_metrics.json) generated end-to-end with Qwen3-30B-A3B via OpenSandbox. Results:pass@1 = 20%(1/5 resolved),eval_error_rate = 0,patch_applied_rate = 100%— a real reward signal.requirements.txtpinsnemo-gymvia a../../editable path that pip/uv resolve relative to the current working directory, so runninguv pip install -r responses_api_agents/mini_swe_agent_2/requirements.txtfrom the repo root points one level above the repo and fails with... does not appear to be a Python project. The README now installs the agent's extra deps directly (nemo-gym[sandbox]already comes fromuv sync --extra sandbox), and documents the pitfall.Test plan
uv run pytest responses_api_agents/mini_swe_agent_2/tests/test_app.py -qpython -m json.toolover each row ofdata/example.jsonl(5 valid SWE-bench Verified rows)gym env start+gym eval run --no-serveagainst OpenSandbox + a local vLLM Qwen3-30B-A3B endpoint, producingdata/example_rollouts.jsonldocker.io/swebench/sweb.eval.x86_64.<id>) pulls and runs in OpenSandbox