OpenMOSS / MOSS

An open-source tool-augmented conversational language model from Fudan University
https://txsun1997.github.io/blogs/moss.html
Apache License 2.0
11.92k stars 1.14k forks source link

微调时,数据已经成功读取,finetune_moss.py报错TypeError: pad_sequence(): argument 'sequences' (position 1) must be tuple of Tensors, not Tensor #265

Open lizhidomg opened 1 year ago

lizhidomg commented 1 year ago

SFT微调时,数据已经成功读取,但是finetune_moss.py运行到for batch_cnt, (input_ids, attention_mask, labels) in enumerate(train_dataloader):行时报错, QQ截图20230511124940 数据的格式是这样的,总共100个 QQ截图20230511125400