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 filesupdate model meta
README.md
CHANGED
|
@@ -5,7 +5,7 @@ language:
|
|
| 5 |
pipeline_tag: "fill-mask"
|
| 6 |
|
| 7 |
widget:
|
| 8 |
-
- text: "ba
|
| 9 |
example_title: "Adversarial Attack Test"
|
| 10 |
---
|
| 11 |
|
|
|
|
| 5 |
pipeline_tag: "fill-mask"
|
| 6 |
|
| 7 |
widget:
|
| 8 |
+
- text: "ba黎系[MASK]国的首都"
|
| 9 |
example_title: "Adversarial Attack Test"
|
| 10 |
---
|
| 11 |
|