Upload model
Browse files- README.md +43 -0
- adapter_config.json +41 -0
- head_config.json +22 -0
- pytorch_adapter.bin +3 -0
- pytorch_model_head.bin +3 -0
README.md
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- adapter-transformers
|
4 |
+
- adapterhub:IRC_Adapters
|
5 |
+
- roberta
|
6 |
+
datasets:
|
7 |
+
- IRC
|
8 |
+
---
|
9 |
+
|
10 |
+
# Adapter `buelfhood/irc-bitcoin-bitcoin` for roberta-base
|
11 |
+
|
12 |
+
An [adapter](https://adapterhub.ml) for the `roberta-base` model that was trained on the [IRC_Adapters](https://adapterhub.ml/explore/IRC_Adapters/) dataset and includes a prediction head for classification.
|
13 |
+
|
14 |
+
This adapter was created for usage with the **[Adapters](https://github.com/Adapter-Hub/adapters)** library.
|
15 |
+
|
16 |
+
## Usage
|
17 |
+
|
18 |
+
First, install `adapters`:
|
19 |
+
|
20 |
+
```
|
21 |
+
pip install -U adapters
|
22 |
+
```
|
23 |
+
|
24 |
+
Now, the adapter can be loaded and activated like this:
|
25 |
+
|
26 |
+
```python
|
27 |
+
from adapters import AutoAdapterModel
|
28 |
+
|
29 |
+
model = AutoAdapterModel.from_pretrained("roberta-base")
|
30 |
+
adapter_name = model.load_adapter("buelfhood/irc-bitcoin-bitcoin", source="hf", set_active=True)
|
31 |
+
```
|
32 |
+
|
33 |
+
## Architecture & Training
|
34 |
+
|
35 |
+
<!-- Add some description here -->
|
36 |
+
|
37 |
+
## Evaluation results
|
38 |
+
|
39 |
+
<!-- Add some description here -->
|
40 |
+
|
41 |
+
## Citation
|
42 |
+
|
43 |
+
<!-- Add some description here -->
|
adapter_config.json
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"config": {
|
3 |
+
"adapter_residual_before_ln": false,
|
4 |
+
"cross_adapter": false,
|
5 |
+
"dropout": 0.0,
|
6 |
+
"factorized_phm_W": true,
|
7 |
+
"factorized_phm_rule": false,
|
8 |
+
"hypercomplex_nonlinearity": "glorot-uniform",
|
9 |
+
"init_weights": "bert",
|
10 |
+
"inv_adapter": null,
|
11 |
+
"inv_adapter_reduction_factor": null,
|
12 |
+
"is_parallel": false,
|
13 |
+
"learn_phm": true,
|
14 |
+
"leave_out": [],
|
15 |
+
"ln_after": false,
|
16 |
+
"ln_before": false,
|
17 |
+
"mh_adapter": false,
|
18 |
+
"non_linearity": "relu",
|
19 |
+
"original_ln_after": true,
|
20 |
+
"original_ln_before": true,
|
21 |
+
"output_adapter": true,
|
22 |
+
"phm_bias": true,
|
23 |
+
"phm_c_init": "normal",
|
24 |
+
"phm_dim": 4,
|
25 |
+
"phm_init_range": 0.0001,
|
26 |
+
"phm_layer": false,
|
27 |
+
"phm_rank": 1,
|
28 |
+
"reduction_factor": 16,
|
29 |
+
"residual_before_ln": true,
|
30 |
+
"scaling": 1.0,
|
31 |
+
"shared_W_phm": false,
|
32 |
+
"shared_phm_rule": true,
|
33 |
+
"use_gating": false
|
34 |
+
},
|
35 |
+
"hidden_size": 768,
|
36 |
+
"model_class": "RobertaAdapterModel",
|
37 |
+
"model_name": "roberta-base",
|
38 |
+
"model_type": "roberta",
|
39 |
+
"name": "irc-bitcoin-bitcoin",
|
40 |
+
"version": "0.2.0"
|
41 |
+
}
|
head_config.json
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"config": {
|
3 |
+
"activation_function": "tanh",
|
4 |
+
"bias": true,
|
5 |
+
"dropout_prob": null,
|
6 |
+
"head_type": "classification",
|
7 |
+
"label2id": {
|
8 |
+
"bug": 0,
|
9 |
+
"feature": 1,
|
10 |
+
"question": 2
|
11 |
+
},
|
12 |
+
"layers": 2,
|
13 |
+
"num_labels": 3,
|
14 |
+
"use_pooler": false
|
15 |
+
},
|
16 |
+
"hidden_size": 768,
|
17 |
+
"model_class": "RobertaAdapterModel",
|
18 |
+
"model_name": "roberta-base",
|
19 |
+
"model_type": "roberta",
|
20 |
+
"name": "irc-bitcoin-bitcoin",
|
21 |
+
"version": "0.2.0"
|
22 |
+
}
|
pytorch_adapter.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a375f8c013b1aedf6c71680c451737e8c50ffb3c115967f467305ab301100ec4
|
3 |
+
size 3596262
|
pytorch_model_head.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:af15dd6df10a3c74c0dce2342b79d269869823089515481325caaf245507717b
|
3 |
+
size 2373800
|