Repository navigation
Description
Context
Nemotron-3-Nano-Omni style reasoning models expose two related budget controls that matter for RL rollouts:
- a hard vLLM limit,
thinking_token_budget, which can force reasoning to close by injecting the configured reasoning end token; and - soft prompt-level controls such as HF chat template
reasoning_budget/reasoning_grace, which guide the model's own reasoning length rather than imposing a hard stop.
For GRPO/GSPO vision rollouts, missing or mismatched reasoning-budget handling can make many samples never reach the answer segment after </think>. Reward functions that evaluate only the post-thinking answer can then see many zero-reward samples, which can make training appear stalled even when the model and reward are otherwise reasonable.
Hard Budget
The hard-limit path is vLLM's thinking_token_budget. NeMo-RL can expose this as a generation config option and forward it to vLLM SamplingParams.
https://docs.vllm.ai/en/latest/features/reasoning_outputs/#thinking-budget-control
Related PR: #2947
When using thinking_token_budget, vLLM also requires reasoning_config, for example:
policy:
generation:
thinking_token_budget: 1024
vllm_kwargs:
reasoning_config:
reasoning_parser: nemotron_v3
reasoning_start_str: <think>
reasoning_end_str: </think>Soft Budget
Some model chat templates also reference reasoning_budget / reasoning_grace as soft controls. This is different from vLLM's hard token budget: the template text conditions the model to choose a target reasoning length, but it does not itself guarantee that </think> is emitted at a fixed token boundary.
One possible NeMo-RL interface would be to support these values through policy.tokenizer.chat_template_kwargs, but that can be awkward when the desired budget varies per training example.
Current Workaround
For per-sample soft budgets during training with Nano 3 Omni, a practical workaround is to add the budget instruction directly to the dataset prompt, for example:
\n\n{thinking token budget: <budget>}
This keeps the budget attached to the data example and avoids needing a global chat_template_kwargs value for all samples in a run.
Open Question
Should NeMo-RL add first-class config support for model-specific soft reasoning budget controls in chat template kwargs, or should that remain dataset/template-specific guidance while NeMo-RL only exposes vLLM's hard thinking_token_budget?
Activity
[-]Clarify hard and soft reasoning budget controls for RL rollouts[/-][+]Support hard and soft reasoning budget controls for RL rollouts[/+]Keesan12 commentedon Jun 27, 2026
My bias would be to keep the hard budget first-class in the runtime and treat the soft budget as guidance that can vary by model/template.
Reason: they solve different failure modes. The hard budget protects rollout liveness and spend posture at the engine boundary. The soft budget shapes model behavior, but it is still part of the prompt/template contract and can drift across checkpoints, templates, or sample formats.
The place they meet is observability. If NeMo-RL exposes both, it would help a lot to record for each sample whether the run had:
That makes it much easier to separate “reward is bad” from “samples are dying in the reasoning phase.” We’ve seen the same pattern in governed runs more generally: budget controls are useful, but the real unlock is being able to tell which boundary actually stopped progress.