Closed ybch14 closed 1 month ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your consideration.
Closing the issue, since no updates observed. Feel free to re-open if you need any further assistance.
提交前必须检查以下项目
问题类型
模型训练与精调
基础模型
Chinese-LLaMA-2 (7B/13B)
操作系统
Linux
详细描述问题
在
scripts/training/run_clm_pt_with_peft.py
Line 502 中,result["labels"] = result["input_ids"].copy()
把label和input_ids设置成完全相同。但预训练过程应该是预测下一个词,所以是否应该将labels右移一位呢?或者是否右移一位的操作已经在transformers或PEFT里已经实现了,所以这里才这样写的呢?谢谢!依赖情况(代码类问题务必提供)
运行日志或截图