Open matiomlei opened 1 year ago
具体报错在task.py self.predictor = paddle.inference.create_predictor(self._config)这一行
import paddle
# paddle.set_device("cpu")
from pprint import pprint
from paddlenlp import Taskflow
schema = ["收发货人", "进口口岸", "进口日期", "运输方式", "征免性质", "境内目的地", "运输工具名称", "包装种类", "件数", "合同协议号"]
ie = Taskflow("information_extraction", schema=schema, model="uie-x-base")
也报Segmentation fault
软件环境
重复问题
错误描述
稳定复现步骤 & 代码
root@paddlenlp-846d4c6dfb-wrc4t:/opt/deployments/flask-app/PaddleNLP/model_zoo/uie/deploy/serving/sim ple_serving# paddlenlp server server:app --workers 1 --host 0.0.0.0 --port 8189[2023-08-21 16:32:46,159] [ INFO] - starting to PaddleNLP SimpleServer... [2023-08-21 16:32:46,159] [ INFO] - The PaddleNLP SimpleServer is starting, backend component uvicorn arguments as follows: [2023-08-21 16:32:46,159] [ INFO] - the starting argument [host]=0.0.0.0 [2023-08-21 16:32:46,159] [ INFO] - the starting argument [port]=8189 [2023-08-21 16:32:46,159] [ INFO] - the starting argument [log_level]=None [2023-08-21 16:32:46,159] [ INFO] - the starting argument [workers]=1 [2023-08-21 16:32:46,159] [ INFO] - the starting argument [limit_concurrency]=None [2023-08-21 16:32:46,159] [ INFO] - the starting argument [limit_max_requests]=None [2023-08-21 16:32:46,159] [ INFO] - the starting argument [timeout_keep_alive]=15 [2023-08-21 16:32:46,160] [ INFO] - the starting argument [app_dir]=/opt/deployments/flask-app/PaddleNLP/model_zoo/uie/deploy/serving/simple_serving [2023-08-21 16:32:46,160] [ INFO] - the starting argument [reload]=False Segmentation fault