uladzislauk commited on
Commit
f94c5ea
·
verified ·
1 Parent(s): f32a0d1

Upload model

Browse files
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - adapter-transformers
4
+ - roberta
5
+ ---
6
+
7
+ # Adapter `uladzislauk/roberta-large-glasdoor-cls-40k` for roberta-large
8
+
9
+ An [adapter](https://adapterhub.ml) for the `roberta-large` model that was trained on the None dataset and includes a prediction head for classification.
10
+
11
+ This adapter was created for usage with the **[Adapters](https://github.com/Adapter-Hub/adapters)** library.
12
+
13
+ ## Usage
14
+
15
+ First, install `adapters`:
16
+
17
+ ```
18
+ pip install -U adapters
19
+ ```
20
+
21
+ Now, the adapter can be loaded and activated like this:
22
+
23
+ ```python
24
+ from adapters import AutoAdapterModel
25
+
26
+ model = AutoAdapterModel.from_pretrained("roberta-large")
27
+ adapter_name = model.load_adapter("uladzislauk/roberta-large-glasdoor-cls-40k", set_active=True)
28
+ ```
29
+
30
+ ## Architecture & Training
31
+
32
+ <!-- Add some description here -->
33
+
34
+ ## Evaluation results
35
+
36
+ <!-- Add some description here -->
37
+
38
+ ## Citation
39
+
40
+ <!-- Add some description here -->
adapter_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "alpha": 8,
4
+ "architecture": "lora",
5
+ "attn_matrices": [
6
+ "q",
7
+ "v"
8
+ ],
9
+ "composition_mode": "add",
10
+ "dropout": 0.0,
11
+ "dtype": null,
12
+ "init_weights": "lora",
13
+ "intermediate_lora": false,
14
+ "leave_out": [],
15
+ "output_lora": false,
16
+ "r": 8,
17
+ "selfattn_lora": true,
18
+ "use_gating": false
19
+ },
20
+ "hidden_size": 1024,
21
+ "model_class": "RobertaAdapterModel",
22
+ "model_name": "roberta-large",
23
+ "model_type": "roberta",
24
+ "name": "sentiment-head",
25
+ "version": "adapters.1.1.0"
26
+ }
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
+ "negative": 0,
9
+ "neutral": 1,
10
+ "positive": 2
11
+ },
12
+ "layers": 2,
13
+ "num_labels": 3,
14
+ "use_pooler": false
15
+ },
16
+ "hidden_size": 1024,
17
+ "model_class": "RobertaAdapterModel",
18
+ "model_name": "roberta-large",
19
+ "model_type": "roberta",
20
+ "name": "sentiment-head",
21
+ "version": "adapters.1.1.0"
22
+ }
pytorch_adapter.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1292c1c59e6d4a51baa3de8a08dd90f16ba2f0a31ff538ed21891093a6d92f9a
3
+ size 3181526
pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d94d995bc3b3ca0d6a8e337df97cb48c651cd0f6971e8a0e6fd4b16363a5daa
3
+ size 4212840