Skip to content

[mini-swe-agent 2] Quickstart fix + gradeable example data & rollouts - #1896

Merged
ananthsub merged 3 commits into
NVIDIA-NeMo:mainfrom
ananthsub:ananthsub/mini-swe-agent2-quickstart
Jul 2, 2026
Merged

ananthsub merged 3 commits into
NVIDIA-NeMo:mainfrom
ananthsub:ananthsub/mini-swe-agent2-quickstart

Conversation

@ananthsub

@ananthsub ananthsub commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

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.

  • Gradeable example data: replaces the single subset: gym row with 5 SWE-bench Verified rows (data/example.jsonl). SWE-Gym repos (e.g. getmoto/moto) are absent from the pinned swebench==4.1.0 MAP_REPO_VERSION_TO_SPECS, so gym-subset rows raise KeyError during grading and never yield a reward. Verified repos are in the map and match the README's stated primary validation target.
  • Pre-generated rollouts: adds 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.
  • Unit test: updates the committed-data test to validate all 5 rows.
  • Quick Start install fix: requirements.txt pins nemo-gym via a ../../ editable path that pip/uv resolve relative to the current working directory, so running uv pip install -r responses_api_agents/mini_swe_agent_2/requirements.txt from 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 from uv sync --extra sandbox), and documents the pitfall.

Test plan

  • uv run pytest responses_api_agents/mini_swe_agent_2/tests/test_app.py -q
  • python -m json.tool over each row of data/example.jsonl (5 valid SWE-bench Verified rows)
  • End-to-end gym env start + gym eval run --no-serve against OpenSandbox + a local vLLM Qwen3-30B-A3B endpoint, producing data/example_rollouts.jsonl
  • Verified sandbox image (docker.io/swebench/sweb.eval.x86_64.<id>) pulls and runs in OpenSandbox

hemildesai and others added 2 commits July 1, 2026 18:11
…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]>
@ananthsub
ananthsub requested a review from hemildesai July 2, 2026 01:13
@ananthsub ananthsub changed the title [mini-swe-agent 2] Quickstart fix + gradeable example data & rollouts (supersedes #1782) [mini-swe-agent 2] Quickstart fix + gradeable example data & rollouts Jul 2, 2026
@ananthsub ananthsub added the r0.4.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge. label Jul 2, 2026
@ffrujeri
ffrujeri self-requested a review July 2, 2026 03:05
ffrujeri
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
ananthsub merged commit 59295cd into NVIDIA-NeMo:main Jul 2, 2026
22 checks passed
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

1 inactive deployment
public — 282dafbc Deployed Jul 2, 2026 by copy-pr-bot[bot] via release / finalize / notify #640
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

r0.4.0 Auto-cherrypick to release branch. Apply before merge; cherrypick happens after merge.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants