huggingface model finetune 报IndexError: index out of range in self
解决办法:inputs_ids=tokenizer.encode(text,truncation=True,padding='max_length',max_length=1000)tokenizer添加参数truncation、padding、max_length长度max_length=1000自定义参考链接https://discuss.huggingface.co/t/error-when