Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
huqiaohong opened this issue Mar 11, 2025 · 0 comments

Comments

@huqiaohong
Copy link

在进行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,请问该如何解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant