Instructions to use AdapterHub/bert-base-uncased-pf-snli with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use AdapterHub/bert-base-uncased-pf-snli with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("bert-base-uncased") model.load_adapter("AdapterHub/bert-base-uncased-pf-snli", set_active=True) - Notebooks
- Google Colab
- Kaggle
Download head_config.json from AdapterHub/bert-base-uncased-pf-snli: direct link, hf CLI and curl.
- Browser
- Download file 404 Bytes
-
https://huggingface.co/AdapterHub/bert-base-uncased-pf-snli/resolve/main/head_config.json
- Command line
-
hf download hf://AdapterHub/bert-base-uncased-pf-snli/head_config.json
-
curl -L -o head_config.json https://huggingface.co/AdapterHub/bert-base-uncased-pf-snli/resolve/main/head_config.json
404 Bytes
| { | |
| "config": { | |
| "activation_function": "tanh", | |
| "bias": true, | |
| "head_type": "classification", | |
| "label2id": { | |
| "entailment": 0, | |
| "neutral": 1, | |
| "contradiction": 2 | |
| }, | |
| "layers": 2, | |
| "num_labels": 3, | |
| "use_pooler": false | |
| }, | |
| "hidden_size": 768, | |
| "model_class": "BertModelWithHeads", | |
| "model_name": "bert-base-uncased", | |
| "model_type": "bert", | |
| "name": "snli" | |
| } |