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 README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
| 1 |
## 介绍
|
| 2 |
-
tf版本
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
## 使用
|
| 6 |
```python
|
|
|
|
| 1 |
## 介绍
|
| 2 |
+
### tf版本
|
| 3 |
+
https://github.com/ZhuiyiTechnology/roformer
|
| 4 |
+
|
| 5 |
+
### pytorch版本
|
| 6 |
+
https://github.com/JunnYu/RoFormer_pytorch
|
| 7 |
|
| 8 |
## 使用
|
| 9 |
```python
|