-
(env1) jupyter@task_3050_yangyuwei:~/workspace/ClipCap-Chinese-master$ bash scripts/predict_no_finerune_gpt2.sh
2022-12-28 18:58:14.791 | INFO | models.model:__init__:80 - random initialize gpt2 …
-
```
from ecws.segment import Segmenter
model_path = 'ecws.model'
predict = Segmenter(model_path)
d = predict.seg(sent)
```
报错如下:
```
Traceback (most recent call last):
File "/Users/…
-
### 自我尝试
在https://github.com/ZhuiyiTechnology/roformer/blob/main/train.py
看到预训练的例子。但只有MLM的实现,且是词粒度的。另一方面,在本repo中指明了预训练只支持Roberta和GPT方式。而在models.py中看到RoFormer的实现是基于NEZHA的,NEZHA又继承了BERT。比较迷惑现有的实现究竟是否支…
-
**Describe the bug**
A clear and concise description of what the bug is.
![Xnip2020-05-26_09-56-37](https://user-images.githubusercontent.com/22788088/82853120-5f5a6a00-9f37-11ea-9ea8-16244b2dd8d9.j…
-
生成的gpt模型(ckpt后缀)和sovits模型(pth后缀)(两个,一个G.pth,一个D.pth),如何打包转成onnx格式,以便在其他平台直接推理
-
环境如下:
opencv-python=0.8.2
ujson>=1.35
对着 https://github.com/PaddlePaddle/PaddleHub/blob/release/v1.8/docs/tutorial/bert_service.md 教程启动服务端时出现以下错误:
/bin/sh: 1: ./bin/serving-gpu: not found
顺…
-
用的下载文件里原有的数据集,跑python run.py --model bert 模型,你们都跑了多久呢?怎么才能加快速度呢?求指教
-
I use Bert (model and tokenizer) to change K-BERT to the English version K-BERT. However, I got poor scores on the classification tasks. If you have K-BERT code of fine-tuning on English Corpus, could…
-
In my Windows OS, when I run the example:
```rust
use hf_hub::api::sync::Api;
fn main() {
let api = Api::new().unwrap();
let repo = api.model("bert-base-uncased".to_string());
le…
-
你好 我用您的代码可以运行ernie的model 但是换成别的比如bert就会报错
Variable Shape not match, Variable [ embedding_0.w_0_moment1_0 ] need tensor with shape (21128, 768) but load set tensor with shape (50006, 1024)
像这样 请问是什么问…