Skip to content

UserWarning: None of the inputs have requires_grad=True. Gradients will be None #3

@Chinouth2144

Description

@Chinouth2144

请问在进行grpo训练时,--gradient_checkpointing设置为True, 会提示UserWarning: None of the inputs have requires_grad=True. Gradients will be None,不知道是否有影响?
如果设置为False,不会报错,但是会OOM。

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