DAPO训练进度条与实际进度不匹配
DAPO训练时过滤后样本数量不足时会直接continue进下一个batch继续补充,但进度条未同步更新,导致训练的step进度与实际训练进度不一致,进度条到一半就训练结束,step进度条不再有参考意义
这是DAPO训练的一个已知问题。当样本被过滤后,进度条仍然按照原始的step数更新,而不是按照实际处理的样本数更新。
解决方案:
-
使用实际样本计数: 修改进度条逻辑,使用已处理样本数而非step数
-
添加过滤样本统计: 在日志中显示过滤掉的样本数量,方便追踪
临时方案: 通过查看训练日志中的实际step数来判断进度,而非依赖进度条
这个问题应该在DAPO实现中修复,让进度条反映实际的训练进度。
中文:我检查了当前状态,暂时不建议直接关闭这个 issue。#5299 仍然是 open,之前的协作者回复也把它描述为 DAPO 训练中的已知问题。相关代码/文档证据是:docs/algo/dapo.md 说明 filter_groups.enable=True 时会过滤 metric 全相同的 groups,并重复采样直到有足够合格 groups;后续已合并的 PR https://github.com/verl-project/verl/pull/7082 为 V1 trainer 增加了 DAPO-filtered group 的 eviction/refill 处理和 filtered reward 统计;verl/trainer/ppo/v1/replay_buffer.py 也包含这套 DAPO filtering/refill 逻辑。
不过,PR #7082 没有直接引用本 issue,也没有明确说明“训练进度条与实际进度不匹配”已经完全修复;同时 verl/trainer/ppo/v1/trainer_base.py 里的 tqdm 仍然是按 total_training_steps / global_steps 更新。因此还需要确认:这个问题在当前 main 的 V1 trainer / #7082 之后是否仍可复现?如果仍可复现,能否补充使用的启动脚本、关键配置(尤其是 trainer mode、algorithm.filter_groups.*、data.train_batch_size / data.gen_batch_size)以及一小段显示进度条与实际训练 step 不一致的日志?
English: I do not think this issue should be closed yet. The issue is still open, and the previous maintainer reply described it as a known DAPO training problem. The relevant evidence is: docs/algo/dapo.md documents that filter_groups.enable=True filters groups with identical metrics and repeats sampling until enough qualified groups are available; the merged PR https://github.com/verl-project/verl/pull/7082 added DAPO-filtered group eviction/refill handling and filtered-reward diagnostics for the V1 trainer; and verl/trainer/ppo/v1/replay_buffer.py now contains that DAPO filtering/refill logic.
However, PR #7082 does not directly reference this issue or explicitly say that the progress-bar mismatch is fixed. Also, verl/trainer/ppo/v1/trainer_base.py still updates tqdm by total_training_steps / global_steps. Could you confirm whether this is still reproducible on current main with the V1 trainer after #7082? If it is, please share the launch script, key config values (especially trainer mode, algorithm.filter_groups.*, data.train_batch_size, and data.gen_batch_size), and a short log snippet showing the mismatch between the progress bar and actual training steps.
This response was generated by a scheduled Codex GPT5.5 issue processing task.