verl icon indicating copy to clipboard operation
verl copied to clipboard

Specifying separate rollout engine params for validation.

Open engint-cerebras opened this issue 1 year ago • 2 comments

This is a feature request. Let's say i am using maximum context length of 8192 for my training but i want to use 32768 for my validation runs. This is usually required when training on a specific dataset e.g, MATH but still wanting to benchmark on AIME25. This requires a different generation engine. Would it be possible to add this feature?

engint-cerebras avatar Aug 10 '25 19:08 engint-cerebras

Same issue, did you solve it?

AragornHorse avatar Apr 21 '26 06:04 AragornHorse

Thanks for the feature request. Based on the current public main branch, this does not appear to be supported as a separate validation rollout/generation engine configuration yet.

Evidence:

  • actor_rollout_ref.rollout.val_kwargs is documented and configured as validation sampling parameters only (top_k, top_p, temperature, n, do_sample): https://github.com/verl-project/verl/blob/main/verl/trainer/config/rollout/rollout.yaml and https://github.com/verl-project/verl/blob/main/docs/examples/config.rst
  • Engine/context parameters such as max_model_len, max_num_batched_tokens, gpu_memory_utilization, and engine_kwargs live under the shared rollout config, not under val_kwargs: https://github.com/verl-project/verl/blob/main/verl/workers/config/rollout.py
  • The validation path reuses async_rollout_manager.generate_sequences(...) with validate=True; I do not see a separate validation engine being constructed there: https://github.com/verl-project/verl/blob/main/verl/trainer/ppo/ray_trainer.py
  • The vLLM rollout server initializes max_model_len and engine kwargs from the shared rollout config and uses that same max_model_len as the generation context limit: https://github.com/verl-project/verl/blob/main/verl/workers/rollout/vllm_rollout/vllm_async_server.py

中文说明:从当前公开代码看,verl 已支持单独设置验证阶段的采样参数,但还没有看到可以为 validation 单独配置另一套 rollout/generation engine 参数(例如训练 rollout 用 8192 context,而 validation engine 用 32768 context)的实现。因此这个 issue 看起来仍是一个有效的功能请求,不建议仅凭现有证据关闭。

This response was generated by a scheduled Codex GPT5.5 issue processing task.

Kirrito-k423 avatar Jul 15 '26 01:07 Kirrito-k423