-
这里面的predict都是直接基于动态图做推理加载,实际的工业落地场景,这里是否要转换成静态图集合paddle inference才合理?假如只需要得出输入句子的向量表示,如果需要转换,是不是以下代码就可以?
```
# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
#
# Licensed under th…
-
```python
File "dureader/run_du.py", line 358, in
run(args)
File "dureader/run_du.py", line 231, in run
return_list=True)
File "/opt/conda/envs/python35-paddle120-env/lib/python3.7/s…
-
```python
assert args.dp_degree * args.sharding_degree * args.mp_degree * args.pp_degree == worker_num, \
"The product of degree num should be equal to worker_num."
```
-
### 请提出你的问题
即词重要性是如何计算的而不只是调用方法, 在baidu/lac那边提问没有回答 希望得到回复
-
版本
paddlehub 2.0.4
paddlenlp 2.0.1
paddlepaddle-gpu 2.1.0.post101
FGM代码:
import paddle
class FGM():
"""针对embedding层梯度上升干扰的对抗训练方法,Fast G…
-
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See er…
-
在Win11安装PaddlePaddle 2.3.2,并运行`python examples/question-answering/dense_qa_example.py --device cpu`和`python examples/frequently-asked-question/dense_faq_example.py --device cpu`,出现了AssertionError。而该问题…
-
运行`python examples/question-answering/dense_qa_example.py --device gpu`,结果报错
```shell
INFO - pipelines.utils.logger - Logged parameters:
{'processor': 'SquadProcessor', 'tokenizer': 'ErnieGramTok…
-
# New Features
## Pipelines
+ Pipelines融入RocketQA轻量化小模型。https://github.com/PaddlePaddle/PaddleNLP/pull/3078
+ 新增基于ERNIE3.0的RocketQA召回模型。 https://github.com/PaddlePaddle/PaddleNLP/pull/3033
+ 新…
-
欢迎您反馈PaddleNLP使用问题,非常感谢您对PaddleNLP的贡献!
在留下您的问题时,辛苦您同步提供如下信息:
- 版本、环境信息
1)PaddleNLP 2.3.0.dev,PaddlePaddle2.3.0
2)系统环境:Windows,python:3.7
PaddlePaddle/PaddleNLP/tree/develop/applications/neural_…