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
File size: 424 Bytes
4794ab4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ---
language:
- zh
---
# Tiny BERT 4L zh
This is a backup repo of [the official repo](https://huggingface.co/huawei-noah/TinyBERT_4L_zh).
Now the model can be loaded with
```python
from transformers import AutoModel
model = AutoModel.from_pretrained("JeremiahZ/TinyBERT_4L_zh_backup")
```
More information on this model can be found [here](https://github.com/huawei-noah/Pretrained-Language-Model/tree/master/TinyBERT). |