Instructions to use JeremiahZ/TinyBERT_4L_zh_backup with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JeremiahZ/TinyBERT_4L_zh_backup with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="JeremiahZ/TinyBERT_4L_zh_backup")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("JeremiahZ/TinyBERT_4L_zh_backup") model = AutoModel.from_pretrained("JeremiahZ/TinyBERT_4L_zh_backup", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- zh
|
| 4 |
+
---
|
| 5 |
+
# Tiny BERT 4L zh
|
| 6 |
+
This is a backup repo of [the official repo](https://huggingface.co/huawei-noah/TinyBERT_4L_zh).
|
| 7 |
+
|
| 8 |
+
Now the model can be loaded with
|
| 9 |
+
```python
|
| 10 |
+
from transformers import AutoModel
|
| 11 |
+
model = AutoModel.from_pretrained("JeremiahZ/TinyBERT_4L_zh_backup")
|
| 12 |
+
```
|
| 13 |
+
|
| 14 |
+
More information on this model can be found [here](https://github.com/huawei-noah/Pretrained-Language-Model/tree/master/TinyBERT).
|