verl icon indicating copy to clipboard operation
verl copied to clipboard

DAPO dynamic sample error about parameter max_num_gen_batches

Open carrot0117 opened this issue 1 year ago • 9 comments

按照dapo的dynamic sample逻辑,如果生成的response的config.algorithm.filter_groups.metric相同(全0或全1,标准差为0),相应的prompt会被过滤掉,然后整理剩下的填进batch,如果重复max_num_gen_batches次batch都没被填满,则程序报错ValueError: num_gen_batches=10 > max_num_gen_batches=10. Generated too many. Please check your data.退出,结束训练,怎么处理这样的报错能让我的模型继续训练?我猜可以增大max_num_gen_batches,但是这是一个暂时的方法,程序仍可能报这样的错退出。或者说,这种错表征数据或超参数配置的什么问题? According to the dynamic sample logic of dapo, if the generated response has the same config. algorithm. filter. groups. metric (all 0 or all 1, with a standard deviation of 0), the corresponding prompt will be filtered out, and the remaining prompts will be sorted and filled into the batch. If the batch is not filled after repeated max_num_gen_matches, the program will report an error ValueError: Num_gen-batches=10>max_num_gen-batches=10. Generated too many. Please check your data to exit and end the training. How can I handle this error so that my model can continue training? I guess we can increase the max_num_gen_matches, but this is a temporary method and the program may still exit with such an error. Or, what is the problem with this misrepresentation of data or hyperparameter configuration?

Image

carrot0117 avatar Apr 07 '25 08:04 carrot0117

能问下你跑的是哪个commit吗... DAPO那个branch最新的commit我都跑不起来 多谢

LUMO666 avatar Apr 07 '25 09:04 LUMO666

能问下你跑的是哪个commit吗... DAPO那个branch最新的commit我都跑不起来 多谢

哪个commit怎么看唉,我当时直接下载的gm-tyx/puffin/main分支跑得起来

carrot0117 avatar Apr 07 '25 09:04 carrot0117

能问下你跑的是哪个commit吗... DAPO那个branch最新的commit我都跑不起来 多谢

哪个commit怎么看唉,我当时直接下载的gm-tyx/puffin/main分支跑得起来

git reflog

kkwhale7 avatar Apr 07 '25 11:04 kkwhale7

Met the same problem 😿

YangYang-DLUT avatar Apr 08 '25 02:04 YangYang-DLUT

我记得可以把config里的max_num_gen_batches设置成-1,这样就会一直生成直到整个batch每个prompt的var都不为0

zhaoyd1 avatar Apr 08 '25 05:04 zhaoyd1

我记得可以把config里的max_num_gen_batches设置成-1,这样就会一直生成直到整个batch每个prompt的var都不为0 这个什么原理

chuangzhidan avatar Apr 15 '25 03:04 chuangzhidan

能问下你跑的是哪个commit吗... DAPO那个branch最新的commit我都跑不起来 多谢

哪个commit怎么看唉,我当时直接下载的gm-tyx/puffin/main分支跑得起来

请问你跑的是32B模型嘛?我试了7B模型,max_num_gen_batches设置成-1了,但是num_gen_batches等于100多了还在keep generating,不知道是7B模型能力太弱无法产生正确答案,还是因为我本地有某些地方的设置出了问题。 @carrot0117

sunxin000 avatar May 14 '25 08:05 sunxin000

这个错误解决了嘛?能不能尝试删除一部分数据 或者增加温度,提高多样性

wlll123456 avatar Jun 20 '25 08:06 wlll123456

定时清理检查结果:这个 issue 最近一次由当前运行账号以外账号产生的公开回复或公开引用是 2025-06-20T08:50:32Z。本轮检查日期为 2026-07-04,该时间已经超过 6 个月。检查来源包括 issue comments API https://api.github.com/repos/verl-project/verl/issues/953/comments?per_page=100 和 timeline API https://api.github.com/repos/verl-project/verl/issues/953/timeline?per_page=100。

按照本仓库的定时 issue 清理标准,我会先留下这条说明并关闭该 issue。若作者或社区成员仍能提供新的复现、证据或需求背景,请继续评论请求重开,或创建新的 issue 并引用这里的上下文。


Scheduled cleanup check: the latest public reply or public reference from an account other than the current automation account was 2025-06-20T08:50:32Z. The check date for this run is 2026-07-04, so that activity is more than 6 months old. The checked public sources were the issue comments API https://api.github.com/repos/verl-project/verl/issues/953/comments?per_page=100 and the timeline API https://api.github.com/repos/verl-project/verl/issues/953/timeline?per_page=100.

Following the scheduled issue cleanup policy, I am leaving this note first and then closing the issue. If the author or community can still provide a fresh reproduction, evidence, or requirement context, please comment to request reopening or open a new issue that links back to this one.

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

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