Repository navigation
Simplify verifiers_agent to use upstream NeMoRLChatCompletionsClient - #1076
Merged
Merged
Conversation
Replace the custom VLLMOpenAIClient and parse_response_messages runtime patch with verifiers' NeMoRLChatCompletionsClient, which handles token ID relocation from the message dict to the response/choice level natively. This removes the verifiers version pin and reduces the agent from ~340 to ~250 lines. Token IDs flow through the standard parse_tokens() path. Signed-off-by: Matthew Ferrato <[email protected]> Signed-off-by: Mauricio Ferrato <[email protected]>
The api_key="EMPTY" placeholder for internal NeMo Gym model server communication was flagged by the secrets detector. Added pragma comment. Signed-off-by: Matthew Ferrato <[email protected]> Signed-off-by: Mauricio Ferrato <[email protected]>
The `# pragma: allowlist secret` was on the AsyncOpenAI( line, but detect-secrets flags the api_key="EMPTY" line directly. Signed-off-by: Mauricio Ferrato <[email protected]>
mferrato
marked this pull request as ready for review
April 23, 2026 19:42
cmunley1
reviewed
Apr 23, 2026
| @@ -1,4 +1,4 @@ | |||
| -e nemo-gym[dev] @ ../../ | |||
| verifiers==0.1.9.post3 | |||
| verifiers | |||
Contributor
There was a problem hiding this comment.
should we pin this to latest still so things dont break on verifiers main?
Contributor
There was a problem hiding this comment.
need to wait for next verifiers dev release and pin that in follow up probably.
cmunley1
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
VLLMOpenAIClientandparse_response_messagesruntime patchwith verifiers'
NeMoRLChatCompletionsClient, which handles token ID relocation nativelyverifiers==0.1.9.post3version pinDependency
What changed
VLLMOpenAIClient(70-line custom HTTP client) — replaced byNeMoRLChatCompletionsClient_patched_parse_response_messagesruntime patch (22 lines) — token IDs now flow through the standardparse_tokens()pathmax_concurrent_generation/max_concurrent_scoringconfig — new verifiers API handles concurrency internallyrun_group()call updated to new API signature (sampling_argsinstead ofgen_sampling_args+ semaphores)_convert_trajectory_to_output()handles single-turn environments and Pydantic message objectsstate_columns=["trajectory"]torun_group()to ensure token IDs are included in outputTest plan