Instructions to use prajjwal1/bert-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use prajjwal1/bert-mini with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("prajjwal1/bert-mini", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from prajjwal1/bert-mini: direct link, hf CLI and curl.
- Browser
- Download file 635 Bytes
-
https://huggingface.co/prajjwal1/bert-mini/resolve/2faad5fbcebd9da4e2a56169ad0a92e94de64fe3/README.md
- Command line
-
hf download hf://prajjwal1/bert-mini@2faad5fbcebd9da4e2a56169ad0a92e94de64fe3/README.md
-
curl -L -o README.md https://huggingface.co/prajjwal1/bert-mini/resolve/2faad5fbcebd9da4e2a56169ad0a92e94de64fe3/README.md
635 Bytes
The following model is a Pytorch pre-trained model obtained from converting Tensorflow checkpoint found in the official Google BERT repository. These BERT variants were introduced in the paper Well-Read Students Learn Better: On the Importance of Pre-training Compact Models. These models are supposed to be trained on a downstream task.
You can check out:
prajjwal1/bert-tiny(L=2, H=128)prajjwal1/bert-mini(L=4, H=256)prajjwal1/bert-small(L=4, H=512)prajjwal1/bert-medium(L=8, H=512)