Instructions to use AdapterHub/bert-base-uncased-pf-sst2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use AdapterHub/bert-base-uncased-pf-sst2 with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("bert-base-uncased") model.load_adapter("AdapterHub/bert-base-uncased-pf-sst2", set_active=True) - Notebooks
- Google Colab
- Kaggle
File size: 382 Bytes
93b5e22 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | {
"config": {
"activation_function": "tanh",
"bias": true,
"head_type": "classification",
"label2id": {
"negative": 0,
"positive": 1
},
"layers": 2,
"num_labels": 2,
"use_pooler": false
},
"hidden_size": 768,
"model_class": "BertModelWithHeads",
"model_name": "bert-base-uncased",
"model_type": "bert",
"name": "glue_sst2"
} |