Skip to content

refactor(agentic-if-realworld): use the standard vLLM model client - #6160

Merged
yaoyu-33 merged 4 commits into
NVIDIA-NeMo:mainfrom
ericyang0:ericyang/agentic-if-standard-clients
Nov 17, 2026
Merged

yaoyu-33 merged 4 commits into
NVIDIA-NeMo:mainfrom
ericyang0:ericyang/agentic-if-standard-clients

Conversation

@ericyang0

Copy link
Copy Markdown
Contributor

Agentic IF Realworld's adaptive profile used a benchmark-specific model adapter, bypassing the stock client's token capture and reasoning conversion. This follow-up to #5013 selects the standard vLLM model client, forwards the frozen attempt seed through its existing metadata interface, and retains the full Responses payload, including token metadata. The verifier scores a separate projection. A separate issue is unnecessary for this integration follow-up.

The five-phase first-complete schedule, independent judge resume, frozen wrapper/data/validator and Sol/medium judge remain unchanged. Preserve main's provider repetition checks in the Responses projection; two regression cases failed before the fix and pass afterward. The 969 released tasks remain evaluation-only. Public changes contain runtime code, documentation and independently synthetic test cases.

Compatibility: raw_receipt.yaml retains the former adapter profile. native.yaml continues supporting other standard clients for ordinary single-turn collection; the seeded adaptive schedule requires vllm_model. Existing EFB pins and saved runs keep their original transport. After this merges, EFB needs a separate Gym pin/configuration update and a new run directory. Responses receipts identify their logical request separately from upstream HTTP bytes; this change does not establish historical score comparability.

Validation on the published tree (base b2a27913e248fe4c7e9a975e7df6b2fbe18aa3fb):

  • 1,768 tests passed across the Realworld server, legacy adapter, stock vLLM client and core Responses schemas. HTTP integration checks cover token IDs/log probabilities, separate reasoning, adaptive delivery, context refusal and immutable resume.
  • All 291 component lock checks and available all-files pre-commit hooks passed. The private guardword catalog is unavailable locally.
  • Gym's example-data validation passed. Tests used the local environment; fresh isolated gym env test installations and the complete core/sandbox/all-server suites were not run.
  • At published commit 3a30d34dfc7cd6a8416f2259b688557af04f3fc4, one independently synthetic task ran through live GLM-5.3 and GPT-6.1 Sol/medium, passed health/P0, and completed resume with zero new policy/judge calls and unchanged receipts/captures. The hosted endpoint did not supply live training token IDs; token retention is covered by mock-engine HTTP integration tests.

No real benchmark inputs, training run, full 969-task rerun, deployment or downstream repin was performed. Hosted CI and maintainer review are pending. The commit includes DCO sign-off.

@copy-pr-bot

copy-pr-bot Bot commented Nov 13, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@nemo-automation-bot nemo-automation-bot Bot added the community-request Issue reported or requested by someone from the community label Nov 13, 2026
@yaoyu-33

Copy link
Copy Markdown
Contributor

I’d like us to move the adaptive profile off legacy_agent and onto the typed Environment Server / agent-session lifecycle in this PR. The current configuration sets execute_tools: false, which SimpleAgent supports only through agent sessions; the legacy /run path rejects it before generation.

Please use the SimpleAgent session example on main as a wiring reference. Its single_agent_turn_legacy adapter accepts existing flat rows and runs the typed session lifecycle. For direct single_agent_turn wiring, see the Agentic IF configuration.

Keep execute_tools: false and grant no Resources tools. The Environment Server supports skip_verification: true, so the adaptive driver can retain first-complete selection and separate judge recovery.

Please add an integration test through the configured environment/session entrypoints, covering incomplete delivery, session cleanup, and resume without new policy calls. The migration should also preserve the frozen token caps and stop for reconciliation after ambiguous dispatch; the stock client’s retry and budget-refitting defaults need explicit handling.

@ericyang0

Copy link
Copy Markdown
Contributor Author

@yaoyu-33 I’ve addressed your feedback in #6160. The adaptive profile now uses agent sessions, with explicit retry/token-cap settings and HTTP tests covering cleanup and resume. Could you take another look? Thank you so much

All 2,260 local tests and the live synthetic smoke passed; new-head hosted CI is still pending.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added bug Something isn't working area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers needs-review PR is ready for code review and waiting on a reviewer labels Nov 16, 2026
@github-actions github-actions Bot added the sla:triage-overdue Review assignment is over the one-business-day SLA label Nov 16, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added the waiting-on-maintainers Waiting on maintainers to respond label Nov 17, 2026
@github-actions github-actions Bot removed the sla:triage-overdue Review assignment is over the one-business-day SLA label Nov 17, 2026
@ericyang0

Copy link
Copy Markdown
Contributor Author

Hi @adil-a and @yaoyu-33, could you take a final look and help merge PR #6160 once CI passes? It’s updated with main, and all 2,390 local tests passed. CI needs authorization for the new head:

/ok to test 0fb55dd

Thank you both!!

@yaoyu-33
yaoyu-33 enabled auto-merge November 17, 2026 21:10
@yaoyu-33 yaoyu-33 added ready-to-merge PR is approved, current, and waiting for final CI or merge and removed needs-review PR is ready for code review and waiting on a reviewer labels Nov 17, 2026
@yfw

yfw commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

/ok to test 0fb55dd

@nemo-automation-bot
nemo-automation-bot Bot requested review from a team November 17, 2026 22:23
@yaoyu-33
yaoyu-33 added this pull request to the merge queue Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/44199777737

Merged via the queue into NVIDIA-NeMo:main with commit ba3cd7e Nov 17, 2026
105 of 108 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers bug Something isn't working community-request Issue reported or requested by someone from the community ready-to-merge PR is approved, current, and waiting for final CI or merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants