Skip to content

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

@huqiaohong

Description

@huqiaohong

在进行Qwen2-VL的lora微调案例-LaTexOCR时,运行最后的train出现这个警告:0% 0/124 [00:00<?, ?it/s]/usr/local/lib/python3.11/dist-packages/torch/utils/checkpoint.py:87: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
warnings.warn(
进度条一直为0,请问该如何解决

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