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

train error 需要您的解答 #25

Open
zhangnn520 opened this issue Mar 30, 2023 · 3 comments
Open

train error 需要您的解答 #25

zhangnn520 opened this issue Mar 30, 2023 · 3 comments

Comments

@zhangnn520
Copy link

你好作者,我在研究您的LLM微调模型的时候发现,以下错误,代码无法跑通
ValueError: Please specify target_modules in peft_config
模型运行train的时候发现以下这些方法都没有找到
'ChatGLMForConditionalGeneration' object has no attribute 'enable_input_require_grads'
'ChatGLMForConditionalGeneration' object has no attribute 'gradient_checkpointing_enable'

@HarderThenHarder
Copy link
Owner

ValueError: Please specify target_modules in peft_config

Hi,这个问题可能是因为没有安装指定版本的 peft 导致的,您是否是按照readme里的步骤进入到 peft 文件夹使用 python setup.py install 安装的呢?

@AnliComputer
Copy link

你好作者,我在研究您的LLM微调模型的时候发现,以下错误,代码无法跑通 ValueError: Please specify target_modules in peft_config 模型运行train的时候发现以下这些方法都没有找到 'ChatGLMForConditionalGeneration' object has no attribute 'enable_input_require_grads' 'ChatGLMForConditionalGeneration' object has no attribute 'gradient_checkpointing_enable'

请问你有transformers_tasks\LLM\finetune训练模型的存放路径checkpoints/model_1000文件方便上传吗?

@zhangnn520
Copy link
Author

zhangnn520 commented Apr 4, 2023 via email

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

3 participants