Instructions to use weiweishi/roc-bert-base-zh with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use weiweishi/roc-bert-base-zh with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="weiweishi/roc-bert-base-zh")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForPreTraining tokenizer = AutoTokenizer.from_pretrained("weiweishi/roc-bert-base-zh") model = AutoModelForPreTraining.from_pretrained("weiweishi/roc-bert-base-zh", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -13,8 +13,8 @@ More detail: https://aclanthology.org/2022.acl-long.65.pdf
|
|
| 13 |
## How to use
|
| 14 |
```Python
|
| 15 |
from transformers import AutoTokenizer, AutoModel
|
| 16 |
-
tokenizer = AutoTokenizer.from_pretrained("weiweishi/roc-bert")
|
| 17 |
-
model = AutoModel.from_pretrained("weiweishi/roc-bert")
|
| 18 |
```
|
| 19 |
|
| 20 |
## Citation
|
|
|
|
| 13 |
## How to use
|
| 14 |
```Python
|
| 15 |
from transformers import AutoTokenizer, AutoModel
|
| 16 |
+
tokenizer = AutoTokenizer.from_pretrained("weiweishi/roc-bert-base-zh")
|
| 17 |
+
model = AutoModel.from_pretrained("weiweishi/roc-bert-base-zh")
|
| 18 |
```
|
| 19 |
|
| 20 |
## Citation
|