Commit b3c550a
authored
Add Stirrup agent + GDPVal eval/RL environment (#1090)
## Summary
Adds a Stirrup-based agent + a GDPVal benchmark built on the NeMo-Gym
benchmark convention (`ng_prepare_benchmark` +
`ng_e2e_collect_rollouts`),
validated on the full 220-task GDPVal set in both rubric and comparison
scoring modes.
### Architecture
Split into three pieces, matching NeMo-Gym's server-type convention:
**Benchmark** — `benchmarks/gdpval/`
- `prepare.py` downloads `openai/gdpval` from HF →
`data/gdpval_benchmark.jsonl`
- `config.yaml` wires `gdpval_judge_model` + `gdpval_resources_server` +
`gdpval_stirrup_agent`
- Entry point: `ng_e2e_collect_rollouts
+config_paths=[benchmarks/gdpval/config.yaml]`
**Resources server** — `resources_servers/gdpval/`
- Owns `verify()` and `aggregate_metrics()` with two modes via
`reward_mode`:
- `rubric` (default) — LLM-judge per-criterion score, reward in `[0, 1]`
- `comparison` — pairwise vs `reference_deliverables_dir`, reward in
`{0, 0.5, 1}`; `aggregate_metrics` reduces W/L/T → ELO anchored at
`reference_elo` (default 1000)
- All scoring, pairwise comparison, Office→PDF preconvert live here.
Multimodal judge path used whenever content blocks are available.
**Agent** — `responses_api_agents/stirrup_agent/`
- `StirrupAgentWrapper` is task-agnostic; task-specific logic in a
`TaskStrategy` subclass (`GDPValTask`)
- `/run` executes the agent, persists deliverables, POSTs to the
resources
server's `/verify`, returns the response. Agent is scoring-free.
- `aggregate_metrics` proxies to resources server so ELO extras flow
through;
`/verify` errors caught per-rollout so a single failure can't crash a
run
- Optional: Apptainer-backed `code_exec`, Tavily web-search
**Dependency:** `stirrup>=0.1.7` (Apache 2.0) declared as an extra of
the
stirrup_agent server, not of core.
## Validation (Ultra V3 SFT iter16k, full 220-task GDPVal,
num_repeats=2)
**Rubric mode** (n=440):
- mean/reward = **0.755**, pass@1 = 0.755, pass@2 = 0.821
- 56% of rollouts score ≥ 0.8
- Pre-refactor port-v4 baseline: 0.24 → **3.1× lift** (dominant
contributor:
always-visual judge when content blocks are available)
**Comparison mode vs fork baseline** (4 trials per pairing, n=440):
- W/L/T = 147 / 208 / 77
- win_rate = 0.429
- **eval_elo = 950.6** (vs fork=1000; port-v3 historical=917 → +34 ELO)
## Running
```bash
ng_prepare_benchmark '+config_paths=[benchmarks/gdpval/config.yaml]'
ng_e2e_collect_rollouts \
'+config_paths=[benchmarks/gdpval/config.yaml,responses_api_models/vllm_model/configs/vllm_model.yaml]' \
'++split=benchmark' \
'++output_jsonl_fpath=results/gdpval.jsonl' \
"++gdpval_stirrup_agent.responses_api_agents.stirrup_agent.persist_deliverables_dir=$PWD/output/gdpval" \
# ... policy_* overrides as usual
# Add for comparison mode:
'++gdpval_resources_server.resources_servers.gdpval.reward_mode=comparison' \
"++gdpval_resources_server.resources_servers.gdpval.reference_deliverables_dir=/path/to/reference"
```
## Test plan
- [x] `pytest resources_servers/gdpval/tests -x` — rubric + comparison
unit tests
- [x] 10-task rubric smoke (mean/reward 0.719)
- [x] Full 220-task rubric (mean/reward 0.755)
- [x] 10-task comparison smoke (eval_elo ~1017 on small sample)
- [x] Full 220-task comparison (eval_elo 950.6)
---------
Signed-off-by: Serge Panev <spanev@nvidia.com>1 parent aaaf0be commit b3c550a
44 files changed
Lines changed: 5718 additions & 0 deletions
File tree
- benchmarks/gdpval
- data
- resources_servers/gdpval
- configs
- data
- prompts
- tests
- responses_api_agents/stirrup_agent
- configs
- containers
- data
- prompts
- setup_scripts
- tasks
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
0 commit comments