CCKS2022通用信息抽取--基线代码无法运行
收藏
快速回复
【千言数据集】 问答学习资料 185 1
CCKS2022通用信息抽取--基线代码无法运行
收藏
快速回复
【千言数据集】 问答学习资料 185 1

Traceback (most recent call last):
File "run_seq2struct.py", line 554, in
main(args)
File "run_seq2struct.py", line 539, in main
train(args, model, tokenizer)
File "run_seq2struct.py", line 452, in train
outputs = model(**batch)
File "/home/yyzhang/anaconda3/envs/paddle/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py", line 930, in __call__
return self._dygraph_call_func(*inputs, **kwargs)
File "/home/yyzhang/anaconda3/envs/paddle/lib/python3.8/site-packages/paddle/fluid/dygraph/layers.py", line 915, in _dygraph_call_func
outputs = self.forward(*inputs, **kwargs)
File "/home/yyzhang/anaconda3/envs/paddle/lib/python3.8/site-packages/paddlenlp/transformers/t5/modeling.py", line 1523, in forward
decoder_input_ids = self._shift_right(labels)
File "/home/yyzhang/anaconda3/envs/paddle/lib/python3.8/site-packages/paddlenlp/transformers/t5/modeling.py", line 859, in _shift_right
assert paddle.all(
AssertionError: Verify that `shifted_input_ids` has only positive values

 

总是提示shift_input_ids 的错误

0
收藏
回复
全部评论(1)
时间顺序
l
luyaojie
#2 回复于2022-07

你好,方便的话,请提供一下环境配置。之前有同学遇到这个是因为高版本cuda版本环境不匹配的情况。

0
回复
在@后输入用户全名并按空格结束,可艾特全站任一用户