Skip to content

fix(nemo-user-sim): require an explicit user model - #5106

Merged
ananthsub merged 1 commit into
mainfrom
ffrujeri/nemo-user-sim-explicit-user-model
Oct 27, 2026
Merged

ananthsub merged 1 commit into
mainfrom
ffrujeri/nemo-user-sim-explicit-user-model

Conversation

@ffrujeri

Copy link
Copy Markdown
Contributor

What changed and why

resources_servers/nemo_user_sim/configs/nemo_user_sim.yaml defaulted the simulated user's model to the evaluated policy:

user_model_base_url: ${policy_base_url}
user_model_api_key: ${policy_api_key}
user_model_name: ${policy_model_name}

If env.yaml did not set the user_model_* keys, the User Agent and the Assistant Agent silently ran on the same model, so the policy was evaluated against a user simulated by itself. This PR makes the three keys required (???), so the user model must be configured explicitly as a separate model.

  • user_model_uses_reasoning_parser keeps its false default.
  • support_model_* and embedding_model_* keep their existing defaults (policy and support, respectively).
  • A new test in resources_servers/nemo_user_sim/tests/test_prepare.py checks that the three keys stay unset in the config.

Issue: none. This is a small configuration fix that came up while reviewing how the NeMo User Sim participants resolve their models.

Validation

  • resources_servers/nemo_user_sim/.venv/bin/pytest -q resources_servers/nemo_user_sim/tests: 39 passed. The new test fails against the previous config.
  • environment_servers/nemo_user_sim/.venv/bin/pytest -q environment_servers/nemo_user_sim/tests: 33 passed.
  • Parsed environments/nemo_user_sim/config.yaml with GlobalConfigDictParser:
    • with only policy_* set, parsing fails with ConfigMissingValuesError listing user_model_base_url, user_model_api_key, and user_model_name, with ++key=<value> override examples;
    • with user_model_* also set, user_model resolves to its own endpoint and model while policy_model keeps the policy values.
  • pre-commit run --files <changed files>: passed.

Rollout evidence

N/A. This changes only which config values are required; the resolved user_model and policy_model Model Server configs are unchanged whenever user_model_* is set, which the config-parse check above confirms. No server code changes.

Compatibility

Breaking for setups that relied on the default: a run whose env.yaml (or CLI) does not set user_model_base_url, user_model_api_key, and user_model_name now fails at config load with an error naming the missing keys. To keep the previous behavior, set them to the policy values explicitly. Benchmark results are unaffected for configs that already set the user model.

The NeMo User Sim docs in #3910 currently say user_model_* defaults to policy_*; that line will be updated there to match.

@ffrujeri ffrujeri added the area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers label Oct 27, 2026
@copy-pr-bot

copy-pr-bot Bot commented Oct 27, 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.

@ffrujeri

Copy link
Copy Markdown
Contributor Author

/ok to test 1e2de6d

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP

LGTM — no concerns found. The configuration change requires explicit user-model values while preserving policy, support, embedding, and reasoning-parser behavior. Traced configuration merging, missing-value diagnostics, and participant routing; the new regression test protects the no-default contract.

Static review only; tests were not executed.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added bug Something isn't working needs-review PR is ready for code review and waiting on a reviewer labels Oct 27, 2026
@ananthsub
ananthsub added this pull request to the merge queue Oct 27, 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/40512808819

Merged via the queue into main with commit a86c22b Oct 27, 2026
50 of 53 checks passed
@ananthsub
ananthsub deleted the ffrujeri/nemo-user-sim-explicit-user-model branch October 27, 2026 14:07

This branch was previously deployed

1 inactive deployment
public — 1e2de6d3 Deployed Oct 27, 2026 by copy-pr-bot[bot] via release / finalize / notify #7501
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 needs-review PR is ready for code review and waiting on a reviewer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants