-
# 🐛 Bug
## Information
Model I am using (Bert, XLNet ...):
**GPT2**
Language I am using the model on (English, Chinese ...):
**English**
The problem arises when using:
* [x ] the official e…
-
![截屏2022-06-08 下午3 03 07](https://user-images.githubusercontent.com/91644276/172552958-5d4720e4-828c-41b0-b4bf-2e08d0e5b8f2.png)
-
**Update** : see extension v3 [below](https://github.com/schemaorg/schemaorg/issues/1156#issuecomment-259397260) (09 november 2016)
A **proposed extension to describe Legislation** within schema.or…
-
**Describe the question**
> A clear and concise description of what the question is.
想用ner做爬取文档的导弹类命名实体的识别,自己准备了训练数据,大概一共4000字,run没问题,但是predict时候总是出错,是训练数据太少了吗
**Environment (please complete th…
-
I met an error when I'm try to do text generation with trained GPT2Small.
The command:
>CUDA_VISIBLE_DEVICES=9 onmt-main --model_type GPT2Small --config AASC-sGPT-2.yml --auto_config infer --feature…
-
BERT Models are not part of TorchServe's [default handlers ](http://pytorch.org/serve/default_handlers.html) Given their popularity, it is worth while to add custom handlers showing the usage under ex…
-
### System Info
OS: Windows-10-10.0.19041-SP0
Python: 3.8.3
PyTorch: 1.12.0+cpu
TensorFlow: 2.6.0
HanLP: 2.1.0-beta.36
### Who can help?
_No response_
### Information
- [ ] The official examp…
-
比如这个代码case:
你能提供预测新的文本的inference代码吗?
#! -*- coding:utf-8 -*-
# 情感分类任务, 加载bert权重
# valid_acc: 94.72, test_acc: 94.11
from bert4torch.tokenizers import Tokenizer
from bert4torch.models i…
-
for example, trying to load via transformers
```
from transformers import AutoModel, AutoTokenizer,
model_name = "canwenxu/laprador"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model …
-
想要利用bert模型进行六分类下游任务微调,但是报错
运行命令:
``` shell
CUDA_VISIBLE_DEVICES=0 python3 finetune/run_classifier.py --pretrained_model_path models/bert-base-chinese/pytorch_model.bin \
…