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
|
@@ -51,17 +51,16 @@ $ git lfs install
|
|
| 51 |
$ pip install huggingface_hub
|
| 52 |
|
| 53 |
```
|
| 54 |
-
## How to Get Started With the Model
|
| 55 |
-
#### Private Model Download
|
| 56 |
|
| 57 |
-
**Login HuggingFace Terminal**
|
| 58 |
|
| 59 |
```
|
| 60 |
$ huggingface-cli login
|
| 61 |
Token:Your own huggingface token.
|
| 62 |
```
|
| 63 |
|
| 64 |
-
**Login HuggingFace Jupyter Notebook**
|
| 65 |
|
| 66 |
```
|
| 67 |
from huggingface_hub import notebook_login
|
|
|
|
| 51 |
$ pip install huggingface_hub
|
| 52 |
|
| 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
|