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

AttributeError: 'NoneType' object has no attribute 'peft_type' #1224

Closed
1 of 2 tasks
liuqi8827 opened this issue May 20, 2024 · 3 comments
Closed
1 of 2 tasks

AttributeError: 'NoneType' object has no attribute 'peft_type' #1224

liuqi8827 opened this issue May 20, 2024 · 3 comments
Assignees

Comments

@liuqi8827
Copy link

liuqi8827 commented May 20, 2024

System Info / 系統信息

ubuntu

Who can help? / 谁可以帮助到您?

@Btlmd

Information / 问题信息

  • The official example scripts / 官方的示例脚本
  • My own modified scripts / 我自己修改的脚本和任务

Reproduction / 复现过程

  1. OMP_NUM_THREADS=1 torchrun --standalone --nnodes=1 --nproc_per_node=8 finetune_hf.py data/AdvertiseGen/ /workspace/xxx/models/chatglm3-6b configs/sft.yaml configs/ds_zero_3.json
image 3. image

Expected behavior / 期待表现

正常训练

@zRzRzRzRzRzRzR zRzRzRzRzRzRzR self-assigned this May 21, 2024
@zRzRzRzRzRzRzR
Copy link
Collaborator

这不是模型没读入成功吗
image

@liuqi8827
Copy link
Author

liuqi8827 commented May 21, 2024

感谢回复

  1. 我要做SFT,所以把代码改成如下图所示,代码可以正常运行
image
  1. 但是一直会报OutOfMemoryError: CUDA out of memory.的错误
image image image image image
  1. 计算资源如下图,运行时已经设置为--nproc_per_node=8:
image
  1. 使用的是官方代码和官方给的数据集

  2. sft.yaml配置如下:

image
  1. ds_zero_2.json配置如下:
image
  1. ds_zero_3.json配置如下:
image
  1. 无论使用ds_zero_2.json还是ds_zero_3.json,dou都会报OutOfMemoryError: CUDA out of memory.的错误

@zRzRzRzRzRzRzR
Copy link
Collaborator

已经解决

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

2 participants