Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Taskflow修改任务保存路径问题。 #3921

Unanswered
qiwsir asked this question in Q&A
Discussion options

按照下面的方法执行 Taskflow
from paddlenlp import Taskflow ner = Taskflow("ner", home_path="./default_model")
执行结果是:

100%|██████████| 10/10 [00:00<00:00, 922.21it/s]
100%|██████████| 77978/77978 [00:49<00:00, 1566.25it/s]
100%|██████████| 5/5 [00:00<00:00, 4001.43it/s]
[2022年11月28日 10:17:43,570] [ INFO] - Downloading https://bj.bcebos.com/paddlenlp/models/transformers/ernie_ctm/vocab.txt and saved to /home/aistudio/.paddlenlp/models/wordtag
[2022年11月28日 10:17:43,573] [ INFO] - Downloading vocab.txt from https://bj.bcebos.com/paddlenlp/models/transformers/ernie_ctm/vocab.txt
100%|██████████| 90/90 [00:00<00:00, 1274.80it/s]
[2022年11月28日 10:17:43,764] [ INFO] - Downloading https://paddlenlp.bj.bcebos.com/models/transformers/ernie_ctm/wordtag_pos.pdparams and saved to /home/aistudio/.paddlenlp/models/wordtag
[2022年11月28日 10:17:43,767] [ INFO] - Downloading wordtag_pos.pdparams from https://paddlenlp.bj.bcebos.com/models/transformers/ernie_ctm/wordtag_pos.pdparams
100%|██████████| 561792/561792 [03:19<00:00, 2810.50it/s]

这里显示,任务并没有按照指定目录要求,保存到指定目录。

请问是什么原因?

You must be logged in to vote

Replies: 3 comments 1 reply

Comment options

@qiwsir 您好,麻烦发一下paddlenlp的版本信息,谢谢!

You must be logged in to vote
1 reply
Comment options

我用的是 paddlenlp 2.4.3,上述操作是在 AI Studio上出现的问题

Comment options

You must be logged in to vote
0 replies
Comment options

@qiwsir Hi,home_path用于指定PPNLP_HOME的位置,默认是~/.paddlenlp

如果设置为./default_model的话模型会保存在./default_model/taskflow/wordtag目录下面

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /