Instructions to use junnyu/roformer_chinese_base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- paddlenlp
How to use junnyu/roformer_chinese_base with paddlenlp:
from paddlenlp.transformers import AutoTokenizer, RoFormerForMaskedLM tokenizer = AutoTokenizer.from_pretrained("junnyu/roformer_chinese_base", from_hf_hub=True) model = RoFormerForMaskedLM.from_pretrained("junnyu/roformer_chinese_base", from_hf_hub=True) - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files- config.json +1 -0
config.json
CHANGED
|
@@ -4,6 +4,7 @@
|
|
| 4 |
],
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"hidden_act": "gelu",
|
|
|
|
| 7 |
"hidden_dropout_prob": 0.1,
|
| 8 |
"hidden_size": 768,
|
| 9 |
"initializer_range": 0.02,
|
|
|
|
| 4 |
],
|
| 5 |
"attention_probs_dropout_prob": 0.1,
|
| 6 |
"hidden_act": "gelu",
|
| 7 |
+
"embedding_size": 768,
|
| 8 |
"hidden_dropout_prob": 0.1,
|
| 9 |
"hidden_size": 768,
|
| 10 |
"initializer_range": 0.02,
|