Repository navigation
fix(nemo-user-sim): require an explicit user model - #5106
Conversation
Signed-off-by: Felipe Vieira Frujeri <[email protected]>
|
/ok to test 1e2de6d |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
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.
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/40512808819 |
What changed and why
resources_servers/nemo_user_sim/configs/nemo_user_sim.yamldefaulted the simulated user's model to the evaluated policy:If
env.yamldid not set theuser_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_parserkeeps itsfalsedefault.support_model_*andembedding_model_*keep their existing defaults (policy and support, respectively).resources_servers/nemo_user_sim/tests/test_prepare.pychecks 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.environments/nemo_user_sim/config.yamlwithGlobalConfigDictParser:policy_*set, parsing fails withConfigMissingValuesErrorlistinguser_model_base_url,user_model_api_key, anduser_model_name, with++key=<value>override examples;user_model_*also set,user_modelresolves to its own endpoint and model whilepolicy_modelkeeps 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_modelandpolicy_modelModel Server configs are unchanged wheneveruser_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 setuser_model_base_url,user_model_api_key, anduser_model_namenow 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 topolicy_*; that line will be updated there to match.