Closed longborn closed 1 year ago
bart-chinese在hugging face上finetune时在model.forward()时会报错多余输入token_type_ids,不管用bert还是Auto tokenizer都有这个问题,请问有解决办法吗
在forward之前,删除batch中这一项,类似batch.pop("token_type_ids")
batch.pop("token_type_ids")
bart-chinese在hugging face上finetune时在model.forward()时会报错多余输入token_type_ids,不管用bert还是Auto tokenizer都有这个问题,请问有解决办法吗