Repository navigation
feat(harness_agent): route calls through model server by default - #4795
Conversation
…erver by default Without sandbox_model_base_url, harness_agent pointed in-box harnesses at the model server config's base_url, i.e. the backend vLLM or API. That skipped the Gym model server's request handling and capture, and with a list of backends (the training shape) it sent every sandbox to the first engine only. Default to the model server's own host:port instead. sandbox_model_base_url stays as the override for sandboxes that cannot reach that address, and the README now says it should forward to the same model server. Signed-off-by: Christian Munley <[email protected]>
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP — LGTM — no reliability concerns.
Reviewed all three changed files and traced endpoint construction through the sandbox runner and model-server routing. The default endpoint selection now uses the Gym server’s host/port while retaining explicit overrides and rollout/training-capture prefixes. No BLOCKER, RISK, or NOTE findings.
Validation was static only; tests and cluster results reported in the PR were not independently 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.
|
/ok to test 7ccd66c |
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/39634691430 |
What and why
With
sandbox_model_base_urlunset,harness_agentpointed in-box harnesses at the model server config'sbase_url(the backend). That skipped the Gym model server, so its request handling and capture never ran, and with a list of backends (the training shape) every sandbox went to the first one.This defaults the sandbox to the Gym model server's own
host:port.sandbox_model_base_urlstays as the override for sandboxes that cannot reach that address. The README now says it should forward to the same model server.Validation
harness_agenttests: 31 passed. The two URL tests fail on the old code and pass on the new.pre-commiton changed files: passed.sandbox_model_base_urlunset, same 10 code rows (Claude Code/v1/messages+ Pi chat completions), 20 rollouts per arm:Rewards were 0 in all arms on these rows. The control (old code, URL set explicitly to the model server) behaves the same as this PR, so that is model/harness behaviour on these rows, not this change.
Compatibility
Configs that set
sandbox_model_base_urlare unchanged. Configs that leave it unset ornullnow route in-box calls through the Gym model server (one extra local hop per call).