Instructions to use Azion/bert-based-chinese with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Azion/bert-based-chinese with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Azion/bert-based-chinese")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("Azion/bert-based-chinese") model = AutoModelForMaskedLM.from_pretrained("Azion/bert-based-chinese", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -53,14 +53,14 @@ $ pip install huggingface_hub
|
|
| 53 |
```
|
| 54 |
## How to Get Started With the Model (Private Model Download)
|
| 55 |
|
| 56 |
-
|
| 57 |
|
| 58 |
```
|
| 59 |
$ huggingface-cli login
|
| 60 |
Token:Your own huggingface token.
|
| 61 |
```
|
| 62 |
|
| 63 |
-
|
| 64 |
|
| 65 |
```
|
| 66 |
from huggingface_hub import notebook_login
|
|
@@ -69,7 +69,7 @@ notebook_login()
|
|
| 69 |
Token:Your own huggingface token.
|
| 70 |
```
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
```python
|
| 75 |
from transformers import AutoTokenizer, AutoModelForMaskedLM
|
|
|
|
| 53 |
```
|
| 54 |
## How to Get Started With the Model (Private Model Download)
|
| 55 |
|
| 56 |
+
#### Login HuggingFace on Terminal
|
| 57 |
|
| 58 |
```
|
| 59 |
$ huggingface-cli login
|
| 60 |
Token:Your own huggingface token.
|
| 61 |
```
|
| 62 |
|
| 63 |
+
#### Login HuggingFace on Jupyter Notebook
|
| 64 |
|
| 65 |
```
|
| 66 |
from huggingface_hub import notebook_login
|
|
|
|
| 69 |
Token:Your own huggingface token.
|
| 70 |
```
|
| 71 |
|
| 72 |
+
#### Pyhon Code
|
| 73 |
|
| 74 |
```python
|
| 75 |
from transformers import AutoTokenizer, AutoModelForMaskedLM
|