Upload MBartForConditionalGeneration
Browse files- README.md +43 -0
- adapter_config.json +21 -0
- head_config.json +15 -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 |
+
- mbart
|
5 |
+
- adapterhub:summarization/dinamina_5400_full_text
|
6 |
+
datasets:
|
7 |
+
- dinamina_5400_full_text
|
8 |
+
---
|
9 |
+
|
10 |
+
# Adapter `Pubudu/mbart-large-50_prefix_tuning_dinamina_5100` for facebook/mbart-large-50
|
11 |
+
|
12 |
+
An [adapter](https://adapterhub.ml) for the `facebook/mbart-large-50` model that was trained on the [summarization/dinamina_5400_full_text](https://adapterhub.ml/explore/summarization/dinamina_5400_full_text/) 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-50")
|
30 |
+
adapter_name = model.load_adapter("Pubudu/mbart-large-50_prefix_tuning_dinamina_5100", 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,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"config": {
|
3 |
+
"architecture": "prefix_tuning",
|
4 |
+
"bottleneck_size": 512,
|
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": 12,
|
12 |
+
"shared_gating": true,
|
13 |
+
"use_gating": false
|
14 |
+
},
|
15 |
+
"hidden_size": 1024,
|
16 |
+
"model_class": "MBartForConditionalGeneration",
|
17 |
+
"model_name": "facebook/mbart-large-50",
|
18 |
+
"model_type": "mbart",
|
19 |
+
"name": "mbart-large-50_prefix_tuning_dinamina_5100",
|
20 |
+
"version": "0.1.1"
|
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": "facebook/mbart-large-50",
|
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:a8d667072bb52b178aee73099b1fe30816885ca038be31daa0ab61a6a6985084
|
3 |
+
size 157867841
|
pytorch_model_head.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:adcc43a196d39e07adb0d2ce5a89621565caf0187b28c81222c9bb08b8fa37f7
|
3 |
+
size 1025227034
|