-
加载的预训练模型地址:https://ernie-github.cdn.bcebos.com/model-ernie-gram-zh.1.tar.gz
完整代码:
```
from paddlenlp.transformers import *
import os
config = load_config()
print(config['model_path'])
pri…
-
1)PaddlePaddle版本:2.1.1
2)GPU:CUDA10.2 CUDNN7.6.5
3)系统环境:linux18.04,Python3.8
4) paddlenlp版本: 2.0.7
- 代码:
import paddle
import paddlenlp
model = paddlenlp.transformers.EernieGramMode…
-
请Team看一下,当使用train.py训练时候出现如下异常, 使用的数据集是chnsenticorp
![image](https://user-images.githubusercontent.com/83859417/126256038-3eb93c78-31e3-4199-8286-320ace807bc4.png)
-
D:\ProgramData\Anaconda3\envs\pp21\Lib\site-packages\paddlenlp\transformers\ernie_gram\modeling.py
line 547 - 560
Example:
"""
import paddle
from p…
-
在做skep情感分析时候,使用模型加载API :
model = SkepForSequenceClassification.from_pretrained(pretrained_model_name_or_path="skep_ernie_1.0_large_ch", num_classes=len(train_ds.label_list))
加载完skep_ernie_1.0_lar…
-
刚接触paddle,有几处地方不太清楚
1. 在demo/finetune_classifier.py中的保存inference_mode这里,为什么placeholder的形状是(2,2)而不是其他的,个人理解应该是batch_size x seq_len 才对,但是inference时确实可以用,不太清楚原因
```
src_placeholder = P.zeros([2,…
-
我在aistudio中按照说明运行`examples/machine_reading_comprehension/DuReader-robust/run_du.py`,报以下错误:
```
Traceback (most recent call last):
File "run_du.py", line 34, in
from paddlenlp.transformers i…
-
few shot EFL模型推理部署后, 出现DataType of equal Op's duplicable Variable Y must be consistent的异常:
![image](https://user-images.githubusercontent.com/83859417/127807559-d4667a41-571d-4c83-a29f-0f39fd5754ac…
-
老师,您好!当我在模型评估后,保存`tokenizer`时,出现了如下异常:
```
---------------------------------------------------------------------------TypeError Traceback (most recent call last) in
…
-
Hi,
Let's start a discussion here about the roadmap towards 0.10 and 1.0. We are looking for:
- New features that are useful to your research
- Improvements and patches to existing features
If…