Skip to content

Remove unnecessary model forward passes in logprob phase in GRPO #1186

Closed

Description

@guyueh1

In GRPO we perform a forward on the policy model to get the logprob, and then we perform training; when rollout GBS == training GBS, the first part is not necessary because it's doing the same thing as training's forward pass, and we can extract logprob from the forward's output.

Metadata

Metadata

Assignees

Labels

deepseek

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions