Closed runningabcd closed 9 months ago
traceback modeling_cpt.py
使用run_gen.py进行微调时,遇到错误 TypeError: forward() got an unexpected keyword argument 'labels' 通过 traceback 发现错误发生在 modeling_cpt.py 中 856行
这个问题是因为版本不一致导致的?怎么解决呢
我尝试修改modeling_cpt.py 中 856行, 直接pop labels 参数,但是不清楚这样对整体逻辑是否有影响
run run_gen.py
error msg
TypeError: forward() got an unexpected keyword argument 'labels'
transformers==4.29.2 torch==1.13.1