-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Deepseek_lora custom keys in input_data fails #2259
Comments
I could not fully understand the issue. What I get is that for Qwen, we have default Regarding the error you get, you would need to provide some minimal code so that I can try to reproduce the error, otherwise I can't help you. |
Adding to @BenjaminBossan's answer, the typeerror occurs because the DeepseekV2ForCausalLM model's forward method doesn't accept a Remove the |
Thanks for the additional insight @TVR28. |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. |
System Info
For some models, eg, deepseek, we need to manually make the specified target_modules like : #2128 . It reminds us a link:
peft/src/peft/utils/constants.py
Line 87 in e6f927b
[rank0]: File "/zju_0038/yzy/miniconda3/envs/torch2.3_py3.10/lib/python3.10/site-packages/peft/tuners/tuners_utils.py", line 197, in forward [rank0]: return self.model.forward(*args, **kwargs) [rank0]: TypeError: DeepseekV2ForCausalLM.forward() got an unexpected keyword argument 'data_index'
However, for qwen_lora, it seems that it does not trigger this function, or maybe it is due to the DeepseekV2ForCausalLM does not hold custom keys?
Who can help?
No response
Information
Tasks
examples
folderReproduction
Expected behavior
The text was updated successfully, but these errors were encountered: