You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/anaconda3/envs/Safe/lib/python3.12/site-packages/torch/utils/checkpoint.py:90: UserWarning: None of the inputs have requires_grad=True. Gradients will be None
...
Expected behavior
I used the official example to train dpo with lora, and encountered UserWarning: None of the inputs have requires_grad=True. Gradients will be None. I found similar problems in issus and I added this step model.enable_input_require_grads() in the code, but this warning still appears. I wonder if this will affect the training results?
Checklist
I have checked that my issue isn't already filed (see open issues)
I have included my system information
Any code provided is minimal, complete, and reproducible (more on MREs)
Any code provided is properly formatted in code blocks, (no screenshot, more on code blocks)
Any traceback provided is complete
The text was updated successfully, but these errors were encountered:
System Info
Information
Tasks
examples
folderReproduction
outputs:
Expected behavior
I used the official example to train dpo with lora, and encountered
UserWarning: None of the inputs have requires_grad=True. Gradients will be None.
I found similar problems in issus and I added this stepmodel.enable_input_require_grads()
in the code, but this warning still appears. I wonder if this will affect the training results?Checklist
The text was updated successfully, but these errors were encountered: