alibaba / alibaba/EasyNLP

AppZoo实践时checkpoint_dir找不到

Open
#313 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.2k
Forks
257
PR merge metrics
No merged PRs in 30d

Description

根据https://www.yuque.com/easyx/easynlp/ts4czl 文档上的代码尝试使用文本向量化功能,但是报错找不到checkpoint_dir
请问是什么地方可能有问题呢
File "/home/iu/anaconda3/envs/easyNLP/lib/python3.8/site-packages/pai_easynlp-0.1.2-py3.8.egg/easynlp/modelzoo/configuration_utils.py", line 490, in get_config_dict
raise Exception(f'{pretrained_model_name_or_path} is not a filer or folder.')
Exception: bert-small-uncased is not a filer or folder.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the AppZoo text-vectorization example in the linked documentation and reproduce the failure. Then inspect configuration_utils.py at get_config_dict and trace how the example supplies checkpoint_dir; done means the example resolves bert-small-uncased without raising the reported file-or-folder exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
machine-learning
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.