Repository navigation
Conversation
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
|
/ok to test 1ff7f8d |
|
/claude review |
|
SHIP — no reliability concerns. Focused, correct refinement to Verified the correctness-critical points:
Async paths unchanged — no new HTTP clients, no |
|
claude review nemo_gym/base_responses_api_model.py |
e5b74e0 to
3d31116
Compare
|
🌿 Preview your docs: https://nvidia-preview-ansubramania-model-aux-calls-independent.docs.buildwithfern.com/nemo/gym Here are the markdown pages you've updated: |
3d31116 to
5821f7e
Compare
Avoid masking rollouts for failed discovery probes while keeping successful unknown routes fail-closed. Signed-off-by: Ananth Subramaniam <[email protected]>
Base auxiliary-call handling on observed response outcomes so unimplemented harness probes remain harmless while redirects and failures cannot bypass capture safeguards. Signed-off-by: Ananth Subramaniam <[email protected]>
5821f7e to
1418937
Compare
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/35895820905 |
POR Test Summary — Auxiliary Token-Capture Requests (#2678)Verdict: PASS — 4/4 named cases Added black-box regression coverage for this PR's fail-open/fail-closed boundary and ran it on a clean Gym checkout at 325fb49.
The checks use the durable token-capture state/intent/marker files plus model-server access logs. They verify both halves of the contract: harmless discovery does not poison completeness, while an unclassified successful route that could generate never appears complete.
This is post-merge POR coverage of the behavior introduced by #2787. |
Why
External agent harnesses can probe optional model-server routes while using the rollout-correlated token-capture URL. Gym previously treated every route outside
/v1/responses,/v1/chat/completions, and/v1/messagesas an uncaptured generation, so an unimplemented discovery request such asGET /v1/modelscould mark an otherwise complete rollout as untrainable.What changed
POST /tokenizeandGET /get_inner_vllm_configroutes as non-generatingflowchart TD A[Capture-prefixed model request] --> B{Captured generation route?} B -- Yes --> C[Capture model response and token evidence] B -- No --> D[Forward auxiliary request] D --> E{Exact model-owned non-generating route?} E -- Yes --> F[Keep rollout complete] E -- No --> G{Downstream outcome} G -- HTTP 404 or 405 --> F G -- Redirect --> H[Preserve capture prefix] H --> I[Mark rollout incomplete] G -- Any other HTTP status --> I G -- Exception, cancellation, or no response start --> I I --> J[Return or propagate downstream outcome]No
/v1/modelsendpoint or harness-specific exception is required. If the model server does not implement the route, its 404 is sufficient. A custom model server only needstoken_id_capture_non_generating_requestswhen it implements a successful auxiliary route whose response cannot contain policy-generated content.Runtime validation
GET /v1/modelsprobe returned 404 without creating an incomplete markerValidation
uv run pytest tests/unit_tests/test_token_id_capture.py responses_api_models/vllm_model_with_compaction/tests/test_app.py -qpre-commitchecks for changed filescd fern && npm run checkCompatibility
The token-entry schema is unchanged. Existing harness and model configurations continue to work. The new model-server declaration is optional and only applies to implemented successful auxiliary routes.
Closes #2678.