Pubudu commited on
Commit
f745d1b
·
verified ·
1 Parent(s): efb5134

Upload MBartForConditionalGeneration

Browse files
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - adapter-transformers
4
+ - adapterhub:summarization/hiru_structured_5100_first3
5
+ - mbart
6
+ datasets:
7
+ - hiru_structutred_5100_first3
8
+ ---
9
+
10
+ # Adapter `Pubudu/mbart-large-cc25_prefix_tuning_12_par_bn_rf_4_hiru_structured_first3` for facebook/mbart-large-cc25
11
+
12
+ An [adapter](https://adapterhub.ml) for the `facebook/mbart-large-cc25` model that was trained on the [summarization/hiru_structured_5100_first3](https://adapterhub.ml/explore/summarization/hiru_structured_5100_first3/) dataset.
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("facebook/mbart-large-cc25")
30
+ adapter_name = model.load_adapter("Pubudu/mbart-large-cc25_prefix_tuning_12_par_bn_rf_4_hiru_structured_first3", 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,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "architecture": "union",
4
+ "configs": [
5
+ {
6
+ "architecture": "prefix_tuning",
7
+ "bottleneck_size": 800,
8
+ "cross_prefix": true,
9
+ "dropout": 0.0,
10
+ "encoder_prefix": true,
11
+ "flat": false,
12
+ "leave_out": [],
13
+ "non_linearity": "tanh",
14
+ "prefix_length": 12,
15
+ "shared_gating": true,
16
+ "use_gating": false
17
+ },
18
+ {
19
+ "adapter_residual_before_ln": false,
20
+ "cross_adapter": false,
21
+ "factorized_phm_W": true,
22
+ "factorized_phm_rule": false,
23
+ "hypercomplex_nonlinearity": "glorot-uniform",
24
+ "init_weights": "mam_adapter",
25
+ "inv_adapter": null,
26
+ "inv_adapter_reduction_factor": null,
27
+ "is_parallel": true,
28
+ "learn_phm": true,
29
+ "leave_out": [],
30
+ "ln_after": false,
31
+ "ln_before": false,
32
+ "mh_adapter": false,
33
+ "non_linearity": "relu",
34
+ "original_ln_after": true,
35
+ "original_ln_before": false,
36
+ "output_adapter": true,
37
+ "phm_bias": true,
38
+ "phm_c_init": "normal",
39
+ "phm_dim": 4,
40
+ "phm_init_range": 0.0001,
41
+ "phm_layer": false,
42
+ "phm_rank": 1,
43
+ "reduction_factor": 4,
44
+ "residual_before_ln": true,
45
+ "scaling": 4.0,
46
+ "shared_W_phm": false,
47
+ "shared_phm_rule": true,
48
+ "use_gating": false
49
+ }
50
+ ]
51
+ },
52
+ "hidden_size": 1024,
53
+ "model_class": "MBartForConditionalGeneration",
54
+ "model_name": "facebook/mbart-large-cc25",
55
+ "model_type": "mbart",
56
+ "name": "mbart-large-cc25_prefix_tuning_12_par_bn_rf_4_hiru_structured_first3",
57
+ "version": "0.1.1"
58
+ }
head_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": null,
3
+ "hidden_size": 1024,
4
+ "label2id": {
5
+ "LABEL_0": 0,
6
+ "LABEL_1": 1,
7
+ "LABEL_2": 2
8
+ },
9
+ "model_class": "MBartForConditionalGeneration",
10
+ "model_name": "facebook/mbart-large-cc25",
11
+ "model_type": "mbart",
12
+ "name": null,
13
+ "num_labels": 3,
14
+ "version": "0.1.1"
15
+ }
pytorch_adapter.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:97191af8ec4d40fea939d2a682d8069fd1cc5882ac3a629196be1e1e35a0c731
3
+ size 296855468
pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11d847a7c53a8cf4cbf1435e76e4bd7db89bde724cc5aaa97a7111e858f6d02a
3
+ size 1025116314