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