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