verl icon indicating copy to clipboard operation
verl copied to clipboard

how to fix the use of max_samples_per_step_per_worker

Open StoKou opened this issue 1 year ago • 3 comments

System Info

I noticed the use of max_samples_per_step_per_worker in the official documentation(https://verl.readthedocs.io/en/latest/advance/rollout_trace.html), but it doesn't work in mlflow. I'd like to ask how to implement this functionality?

Information

  • [ ] The official example scripts
  • [x] My own modified scripts

Tasks

  • [ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [x] My own task or dataset (give details below)

Reproduction

I noticed this while using Verl's agent loop. My Verl version is 0.6.0, and my Sglang version is 0.5.2.

Expected behavior

I noticed this while using Verl's agent loop. My Verl version is 0.6.0, and my Sglang version is 0.5.2.

StoKou avatar Nov 26 '25 02:11 StoKou

I'd like to know if the removal of this feature was planned?

StoKou avatar Nov 26 '25 08:11 StoKou

"Hey @StoKou, I ran into similar issues with agent loops in SGLang where the max_samples limit gets ignored during rollout, causing the worker to over-generate or loop indefinitely. ​It often happens if the termination signal isn't propagating correctly from the worker to the logger (MLflow). ​While you debug the verl config, you might want to sanity-check your agent's stopping logic in isolation. I built a middleware API (Agentic QA) specifically to stress-test agent loops and verify if they respect generation limits/stop sequences before hitting the training pipeline. ​It might help you isolate if it's a config issue or a logic issue. Docs: https://agentic-qa-engine.onrender.com/docs (Check the 'Loop Injection' test)."

Saurabh0377 avatar Nov 26 '25 13:11 Saurabh0377

This issue is being closed by the scheduled stale-issue cleanup because the latest public reply or reference from an account other than the scheduled runner (Kirrito-k423) was at 2025-11-26T13:07:43Z (mentioned by StoKou), which is more than 6 months before the 2026-07-24 run. Evidence checked: issue page https://github.com/verl-project/verl/issues/4295, comments API https://api.github.com/repos/verl-project/verl/issues/4295/comments, and timeline API https://api.github.com/repos/verl-project/verl/issues/4295/timeline. Source for the latest non-runner interaction: https://api.github.com/repos/verl-project/verl/issues/events/21195303414. If this is still relevant, please comment with a current reproduction, evidence, or requirement context so maintainers can reopen it, or open a new issue with updated details.

本 issue 按定时清理规则关闭:最近一次来自当前定时任务账号(Kirrito-k423)之外账号的公开回复或公开引用时间为 2025-11-26T13:07:43Z(StoKou 的 mentioned 事件),距离 2026-07-24 本轮运行已超过 6 个月。已检查证据:issue 页面 https://github.com/verl-project/verl/issues/4295、comments API https://api.github.com/repos/verl-project/verl/issues/4295/comments、timeline API https://api.github.com/repos/verl-project/verl/issues/4295/timeline。最近一次非任务账号公开互动来源:https://api.github.com/repos/verl-project/verl/issues/events/21195303414。如果该问题仍然有效,请带上当前版本的复现、证据或需求背景重新评论,维护者可以据此重开;也可以创建包含最新信息的新 issue。

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

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