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