Instructions to use AdapterHub/roberta-base-pf-anli_r3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Adapters
How to use AdapterHub/roberta-base-pf-anli_r3 with Adapters:
from adapters import AutoAdapterModel model = AutoAdapterModel.from_pretrained("roberta-base") model.load_adapter("AdapterHub/roberta-base-pf-anli_r3", set_active=True) - Notebooks
- Google Colab
- Kaggle
Fix label2id mapping.
Browse files- head_config.json +3 -3
head_config.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
| 4 |
"bias": true,
|
| 5 |
"head_type": "classification",
|
| 6 |
"label2id": {
|
| 7 |
-
"
|
| 8 |
-
"
|
| 9 |
-
"
|
| 10 |
},
|
| 11 |
"layers": 2,
|
| 12 |
"num_labels": 3,
|
|
|
|
| 4 |
"bias": true,
|
| 5 |
"head_type": "classification",
|
| 6 |
"label2id": {
|
| 7 |
+
"entailment": 0,
|
| 8 |
+
"neutral": 1,
|
| 9 |
+
"contradiction": 2
|
| 10 |
},
|
| 11 |
"layers": 2,
|
| 12 |
"num_labels": 3,
|