Skip to content

Some questions about KL divergence #7

@DearFishi

Description

@DearFishi

Hi,

I'm confused about why the KL divergence is calculated in train.py at line 294 and then stored in the replay buffer.

Is it because, in OpenRLHF's GRPO, in addition to the loss, the KL divergence is also used as a KL penalty for the reward, but with a very small KL weight?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions