New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Taskflow默认的最大序列长度怎么看?FastDeploy UIE中最长序列长度怎么设置? #8408
Comments
可以参考源代码:
fastdeploy的问题请参考repo: https://github.com/PaddlePaddle/FastDeploy/tree/develop/examples/text/uie |
打扰了,PaddleNLP/paddlenlp/taskflow/information_extraction.py这里面也没有看到pred_threshold这个设置 |
请问怎么复现呢? |
使用my_ie = Taskflow("information_extraction", |
或者使用position_prob=0.9,是不是可以认为probability的值无法通过position_prob和pred_threshold进行过滤 |
我测了一下 position_prob没什么问题:
|
position_prob=0.9是不是'probability '都是大于或者等于0.9的呢 |
可以参考源代码,是大于。 PaddleNLP/paddlenlp/utils/tools.py Line 194 in 9146c1e
|
我设置为position_prob=0.9,确实有出现'probability': 0.8505142460404365,不知道是怎么回事, |
请问这种情况怎么复现呢? |
我用的就是my_ie = Taskflow("information_extraction", |
@w5688414 fastdeploy和taskflow不能共存吗? |
请提出你的问题
Taskflow("information_extraction", schema=schema_uie,task_path=model_path,use_fast=True,batch_size=32,precision='fp16')
我训练的最大序列长度设置为512,上述的默认序列长度是不是也是512,耗时67ms
但是我用FastDeploy UIE部署的时候设置最长序列长度为512,耗时却要112ms,
这是怎么回事呢
The text was updated successfully, but these errors were encountered: