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 config.json from prajjwal1/bert-mini: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/prajjwal1/bert-mini/resolve/2faad5fbcebd9da4e2a56169ad0a92e94de64fe3/config.json
- Command line
-
hf download hf://prajjwal1/bert-mini@2faad5fbcebd9da4e2a56169ad0a92e94de64fe3/config.json
-
curl -L -o config.json https://huggingface.co/prajjwal1/bert-mini/resolve/2faad5fbcebd9da4e2a56169ad0a92e94de64fe3/config.json
286 Bytes
| {"hidden_size": 256, "hidden_act": "gelu", "initializer_range": 0.02, "vocab_size": 30522, "hidden_dropout_prob": 0.1, "num_attention_heads": 4, "type_vocab_size": 2, "max_position_embeddings": 512, "num_hidden_layers": 4, "intermediate_size": 1024, "attention_probs_dropout_prob": 0.1} |