Repository navigation
Conversation
Signed-off-by: Kotaro Yamamoto <[email protected]>
kota-row
marked this pull request as ready for review
June 26, 2026 06:36
This branch has not been deployed
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.
What does this PR do ?
Adds a
policy.generation.thinking_token_budgetconfig knob and forwards it to vLLMSamplingParamswhen set, so reasoning rollouts can cap the<think>segment.https://docs.vllm.ai/en/latest/features/reasoning_outputs/#thinking-budget-control
This fix prevents the content length from becoming 0 due to cyclic thinking or thinking that exceeds the context length.
Issues
Related to #2946
Usage
uv run examples/run_vlm_grpo.py --config examples/configs/recipes/vlm/vlm_grpo-nemotron-omni-30ba3b-clevr-1n8g-automodel-ep8.v1.yaml \ cluster.gpus_per_node=8 \ cluster.num_nodes=1 \ policy.generation.thinking_token_budget=1024 \ ++policy.generation.vllm_kwargs.reasoning_config.reasoning_parser=nemotron_v3 \ '++policy.generation.vllm_kwargs.reasoning_config.reasoning_start_str=<think>' \ '++policy.generation.vllm_kwargs.reasoning_config.reasoning_end_str=</think>'Before your PR is "Ready for review"
Pre checks:
Additional Information
thinking_token_budgetis only passed to vLLM when explicitly set, preserving existing behavior for configs that leave it unset ornull.reasoning_configwhen usingthinking_token_budget; the Nemotron Omni guide now shows the requirednemotron_v3parser settings.