Skip to content

fix: Compatibility with vllm 0.20 tool-calling - #1432

Merged
ananthsub merged 1 commit into
NVIDIA-NeMo:mainfrom
tdene:tde/tools_none
Jun 5, 2026
Merged

ananthsub merged 1 commit into
NVIDIA-NeMo:mainfrom
tdene:tde/tools_none

Conversation

@tdene

@tdene tdene commented May 27, 2026

Copy link
Copy Markdown
Contributor

vllm 0.20 has stricter Pydantic checking that does not allow for the tools field to be an empty list.

The official published Nemotron-3-Nano-RL training blend contains entries with tools: []. This causes errors.

This change prevents tools: [] entries from being propagated to vllm, preventing any such errors.

@copy-pr-bot

copy-pr-bot Bot commented Jun 5, 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.

@ananthsub
ananthsub merged commit 9b52dc8 into NVIDIA-NeMo:main Jun 5, 2026
5 checks passed
cwing-nvidia added a commit that referenced this pull request Jun 6, 2026
Bring the branch up to date with main (18 commits). One conflict in
responses_api_models/vllm_model/app.py: main edits the VLLMConverter
class there, but this branch extracted it to
nemo_gym/responses_converter.py. Resolved by keeping our extraction and
porting the one converter change from main that we did not already have:

- #1432 (vllm 0.20 tool-calling): guard `if tools:` instead of
  `if tools is not None:` so empty `tools: []` is not sent to vLLM,
  ported into nemo_gym/responses_converter.py.

(#1511's converter reasoning-parser change was already ported in an
earlier commit on this branch and auto-reconciled.)

Signed-off-by: Chris Wing <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants