FrLdy commited on
Commit
7a4b316
·
verified ·
1 Parent(s): 3bf3721

Upload MBartForConditionalGeneration

Browse files
README.md ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - mbart
4
+ - adapter-transformers
5
+ datasets:
6
+ - ETR-fr
7
+ ---
8
+
9
+ # Adapter `koena/mbarthez-prefix-ETR-fr` for moussaKam/mbarthez
10
+
11
+ An [adapter](https://adapterhub.ml) for the `moussaKam/mbarthez` model that was trained on the [ETR-fr](https://huggingface.co/datasets/ETR-fr/) dataset.
12
+
13
+ This adapter was created for usage with the **[Adapters](https://github.com/Adapter-Hub/adapters)** library.
14
+
15
+ ## Usage
16
+
17
+ First, install `adapters`:
18
+
19
+ ```
20
+ pip install -U adapters
21
+ ```
22
+
23
+ Now, the adapter can be loaded and activated like this:
24
+
25
+ ```python
26
+ from adapters import AutoAdapterModel
27
+
28
+ model = AutoAdapterModel.from_pretrained("moussaKam/mbarthez")
29
+ adapter_name = model.load_adapter("koena/mbarthez-prefix-ETR-fr", set_active=True)
30
+ ```
31
+
32
+ ## Architecture & Training
33
+
34
+ <!-- Add some description here -->
35
+
36
+ ## Evaluation results
37
+
38
+ <!-- Add some description here -->
39
+
40
+ ## Citation
41
+
42
+ <!-- Add some description here -->
adapter_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "config": {
3
+ "architecture": "prefix_tuning",
4
+ "bottleneck_size": 2048,
5
+ "cross_prefix": true,
6
+ "dropout": 0.0,
7
+ "encoder_prefix": true,
8
+ "flat": false,
9
+ "leave_out": [],
10
+ "non_linearity": "tanh",
11
+ "prefix_length": 50,
12
+ "shared_gating": true,
13
+ "use_gating": false
14
+ },
15
+ "hidden_size": 1024,
16
+ "model_class": "MBartForConditionalGeneration",
17
+ "model_name": "moussaKam/mbarthez",
18
+ "model_type": "mbart",
19
+ "name": "ETR-fr",
20
+ "version": "adapters.1.0.0"
21
+ }
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": "moussaKam/mbarthez",
11
+ "model_type": "mbart",
12
+ "name": null,
13
+ "num_labels": 3,
14
+ "version": "adapters.1.0.0"
15
+ }
pytorch_adapter.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d91c388a31d950cec5c76341a47e5ad82e78080b26e5313e4cddf57adc308d2
3
+ size 630184705
pytorch_model_head.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aa45ee2cb5f45b21108fba76120d300a964ca580c1402d1605406c119aa2b026
3
+ size 414601754