首页 PaddleNLP 帖子详情
使用UIE训练doccano数据集时,提示无法创建张量
收藏
快速回复
PaddleNLP 问答NLP训练数据 583 0
使用UIE训练doccano数据集时,提示无法创建张量
收藏
快速回复
PaddleNLP 问答NLP训练数据 583 0

paddleNLP版本:PaddleNLP-2.4.5

运行脚本:

python finetune.py --train_path ./data/train.txt --dev_path ./data/train.txt --output_dir ./checkpoint/model_best --model uie-base --learning_rate 1e-5 --batch_size 16 --max_seq_len 5602 --num_train_epochs 10 --seed 1000 --logging_steps 10 --device "gpu" --do_train --do_eval --overwrite_output_dir

报错:

TypeError: forward() got an unexpected keyword argument 'pos_ids'

ValueError: Unable to create tensor, you should probably activate truncation and/or padding with 'padding=True' 'truncation=True' to have batched tensors with the same length

 

0
收藏
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户