Instructions to use susnato/ernie-m-base_pytorch with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- paddlenlp
How to use susnato/ernie-m-base_pytorch with paddlenlp:
from paddlenlp.transformers import AutoTokenizer, ErnieMModel tokenizer = AutoTokenizer.from_pretrained("susnato/ernie-m-base_pytorch", from_hf_hub=True) model = ErnieMModel.from_pretrained("susnato/ernie-m-base_pytorch", from_hf_hub=True) - Notebooks
- Google Colab
- Kaggle
Update convert.py
Browse files- convert.py +1 -1
convert.py
CHANGED
|
@@ -112,4 +112,4 @@ def extract_and_convert(input_dir, output_dir):
|
|
| 112 |
|
| 113 |
|
| 114 |
if __name__ == '__main__':
|
| 115 |
-
extract_and_convert("./
|
|
|
|
| 112 |
|
| 113 |
|
| 114 |
if __name__ == '__main__':
|
| 115 |
+
extract_and_convert("./ernie_m_base_paddle/", "./ernie_m_base_torch/")
|