PaddleNLP
PaddleNLP copied to clipboard
python utils/offline_ann.py ๆฅ้
https://github.com/PaddlePaddle/PaddleNLP/tree/develop/applications/experimental/pipelines/examples/semantic-search
่ท่ฟไธช้กน็ฎ ไฝฟ็จ่ชๅทฑ็ๆฐๆฎ้ ๆฅ้
File "/root/anaconda3/envs/paddlenlp/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/root/anaconda3/envs/paddlenlp/lib/python3.7/threading.py", line 870, in run self._target(*self._args, **self._kwargs) File "/root/anaconda3/envs/paddlenlp/lib/python3.7/site-packages/paddle/fluid/dataloader/dataloader_iter.py", line 253, in _thread_loop six.reraise(*sys.exc_info()) File "/root/anaconda3/envs/paddlenlp/lib/python3.7/site-packages/six.py", line 719, in reraise raise value File "/root/anaconda3/envs/paddlenlp/lib/python3.7/site-packages/paddle/fluid/dataloader/dataloader_iter.py", line 239, in _thread_loop tmp.set(slot, core.CPUPlace()) ValueError: (InvalidArgument) Input object type error or incompatible array data type. tensor.set() supports array with bool, float16, float32, float64, int8, int16, int32, int64, uint8 or uint16, please check your input or input array data type. (at /paddle/paddle/fluid/pybind/tensor_py.h:529)
document_batch) # type: ignore
File "/root/anaconda3/envs/paddlenlp/lib/python3.7/site-packages/pipelines-0.1.0a0-py3.7.egg/pipelines/nodes/retriever/dense.py", line 297, in embed_documents embeddings = self._get_predictions(passages)["passages"] File "/root/anaconda3/envs/paddlenlp/lib/python3.7/site-packages/pipelines-0.1.0a0-py3.7.egg/pipelines/nodes/retriever/dense.py", line 242, in get_predictions for batch in data_loader: File "/root/anaconda3/envs/paddlenlp/lib/python3.7/site-packages/paddle/fluid/dataloader/dataloader_iter.py", line 272, in next data = self.reader.read_next_var_list() SystemError: (Fatal) Blocking queue is killed because the data reader raises an exception. [Hint: Expected killed != true, but received killed:1 == true:1.] (at /paddle/paddle/fluid/operators/reader/blocking_queue.h:166)