MOSS icon indicating copy to clipboard operation
MOSS copied to clipboard

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

Open lizhidomg opened this issue 2 years ago • 0 comments

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

lizhidomg avatar May 11 '23 04:05 lizhidomg