verl icon indicating copy to clipboard operation
verl copied to clipboard

During the training GRPO, the log_prob of some samples turned out to be NaN

Open zyf8818 opened this issue 1 year ago • 7 comments

During the training process, when calculating compute_log_prob, the log_prob of some samples turned out to be nan.

However, the samples can be correctly decoded, and the decoded content is also correct. What causes this phenomenon? Have any of you encountered such a problem?

Image

Image

zyf8818 avatar Jul 29 '25 02:07 zyf8818

Image

zyf8818 avatar Jul 29 '25 02:07 zyf8818

Only for some sample.

zyf8818 avatar Jul 30 '25 02:07 zyf8818

Have you found the reason or how to fix this?

yxh-y avatar Aug 06 '25 07:08 yxh-y

Have you found the reason or how to fix this?

Not yet!

zyf8818 avatar Aug 10 '25 08:08 zyf8818

@zyf8818 which LLM did you use? Have you found a solution?

YixiongHao avatar Aug 14 '25 22:08 YixiongHao

@zyf8818 which LLM did you use? Have you found a solution?

Qwen2.5-7B, there is still no solution

zyf8818 avatar Aug 15 '25 13:08 zyf8818

定时清理检查结论:按社区 issue 定时处理规则关闭此 issue。

证据:最近一次非当前运行账号的公开回复或引用是 2025-08-15T13:25:36Z(actor: zyf8818, kind: comment),早于本轮 6 个月阈值 2026-01-13T01:10:17.218155+00:00。 检查来源:https://github.com/verl-project/verl/issues/2790,comments API https://api.github.com/repos/verl-project/verl/issues/2790/comments,timeline API https://api.github.com/repos/verl-project/verl/issues/2790/timeline。

如果作者或社区成员仍能提供新的复现、证据或需求背景,请在这里重新评论请求维护者重开,或创建新的 issue 并链接到本 issue。

Scheduled cleanup conclusion: this issue is being closed under the community issue processing policy.

Evidence: The latest public reply or reference from an account other than the current automation account was 2025-08-15T13:25:36Z (actor: zyf8818, kind: comment), which is older than the six-month threshold for this run (2026-01-13T01:10:17.218155+00:00). Sources checked: https://github.com/verl-project/verl/issues/2790, comments API https://api.github.com/repos/verl-project/verl/issues/2790/comments, timeline API https://api.github.com/repos/verl-project/verl/issues/2790/timeline.

If the author or community can still provide a fresh reproduction, evidence, or requirement context, please comment here to ask maintainers to reopen it, or open a new issue and link back to this one.

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

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