56 Star 347 Fork 162

PaddlePaddle / PaddleNLP

 / 详情

[Question]: uie用fastdeploy部署启动服务报错

待办的
创建于  
2023-09-06 14:15

请提出你的问题

(paddlenlp_uie) lusiqi@lusiqideMacBook-Air python % python infer.py --model_dir ../../checkpoint/model_best --device cpu

/Users/lusiqi/anaconda3/envs/paddlenlp_uie/lib/python3.8/site-packages/setuptools/sandbox.py:13: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
import pkg_resources
/Users/lusiqi/anaconda3/envs/paddlenlp_uie/lib/python3.8/site-packages/pkg_resources/init.py:2871: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('mpl_toolkits').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/Users/lusiqi/anaconda3/envs/paddlenlp_uie/lib/python3.8/site-packages/pkg_resources/init.py:2871: DeprecationWarning: Deprecated call to pkg_resources.declare_namespace('google').
Implementing implicit namespace packages (as specified in PEP 420) is preferred to pkg_resources.declare_namespace. See https://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packages
declare_namespace(pkg)
/Users/lusiqi/anaconda3/envs/paddlenlp_uie/lib/python3.8/site-packages/_distutils_hack/init.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
[2023-09-06 14:13:55,868] [ INFO] - Downloading tokenizer_config.json from https://bj.bcebos.com/paddlenlp/models/community/../../checkpoint/model_best/tokenizer_config.json
[2023-09-06 14:13:55,936] [ ERROR] - Downloading from https://bj.bcebos.com/paddlenlp/models/community/../../checkpoint/model_best/tokenizer_config.json failed with code 404!
Traceback (most recent call last):
File "/Users/lusiqi/anaconda3/envs/paddlenlp_uie/lib/python3.8/site-packages/paddlenlp/transformers/auto/tokenizer.py", line 340, in from_pretrained
resolved_vocab_file = get_path_from_url(community_config_path, cache_dir)
File "/Users/lusiqi/anaconda3/envs/paddlenlp_uie/lib/python3.8/site-packages/paddlenlp/utils/downloader.py", line 132, in get_path_from_url
fullpath = _download(url, root_dir, md5sum)
File "/Users/lusiqi/anaconda3/envs/paddlenlp_uie/lib/python3.8/site-packages/paddlenlp/utils/downloader.py", line 193, in _download
raise RuntimeError("Downloading from {} failed with code " "{}!".format(url, req.status_code))
RuntimeError: Downloading from https://bj.bcebos.com/paddlenlp/models/community/../../checkpoint/model_best/tokenizer_config.json failed with code 404!

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "infer.py", line 530, in
uie = UIEPredictor(args)
File "infer.py", line 80, in init
self._tokenizer = AutoTokenizer.from_pretrained(args.model_dir, use_fast=args.use_fast)
File "/Users/lusiqi/anaconda3/envs/paddlenlp_uie/lib/python3.8/site-packages/paddlenlp/transformers/auto/tokenizer.py", line 343, in from_pretrained
raise RuntimeError(
RuntimeError: Can't load tokenizer for '../../checkpoint/model_best'.
Please make sure that '../../checkpoint/model_best' is:

  • a correct model-identifier of built-in pretrained models,
  • or a correct model-identifier of community-contributed pretrained models,
  • or the correct path to a directory containing relevant tokenizer files.

(paddlenlp_uie) lusiqi@lusiqideMacBook-Air python %

评论 (1)

鲁思奇 创建了任务
鲁思奇 添加了
 
question
标签
展开全部操作日志

The specified key does not exist

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
8913401 lusiqi 1681027242
Python
1
https://gitee.com/paddlepaddle/PaddleNLP.git
git@gitee.com:paddlepaddle/PaddleNLP.git
paddlepaddle
PaddleNLP
PaddleNLP

搜索帮助

53164aa7 5694891 3bd8fe86 5694891