sss1465236
commited on
Commit
•
882f97e
1
Parent(s):
26eabff
sss1465236/Bart-large*final
Browse files- README.md +14 -10
- config.json +14 -18
- generation_config.json +3 -0
- model.safetensors +2 -2
- runs/Dec29_17-23-30_c8b93ab3f819/events.out.tfevents.1703870620.c8b93ab3f819.2550.1 +3 -0
- special_tokens_map.json +42 -6
- tokenizer_config.json +0 -1
- training_args.bin +1 -1
- vocab.json +0 -0
README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
---
|
2 |
-
license:
|
3 |
-
base_model: facebook/bart-large
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
metrics:
|
@@ -15,13 +15,13 @@ should probably proofread and complete it, then remove this comment. -->
|
|
15 |
|
16 |
# Big-Bart-BBC
|
17 |
|
18 |
-
This model is a fine-tuned version of [facebook/bart-large](https://huggingface.co/facebook/bart-large) on the None dataset.
|
19 |
It achieves the following results on the evaluation set:
|
20 |
-
- Loss:
|
21 |
-
- Rouge1: 0.
|
22 |
-
- Rouge2: 0.
|
23 |
-
- Rougel: 0.
|
24 |
-
- Rougelsum: 0.
|
25 |
|
26 |
## Model description
|
27 |
|
@@ -46,13 +46,17 @@ The following hyperparameters were used during training:
|
|
46 |
- seed: 42
|
47 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
- lr_scheduler_type: linear
|
49 |
-
- num_epochs:
|
50 |
|
51 |
### Training results
|
52 |
|
53 |
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum |
|
54 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:------:|:------:|:---------:|
|
55 |
-
| 3.
|
|
|
|
|
|
|
|
|
56 |
|
57 |
|
58 |
### Framework versions
|
|
|
1 |
---
|
2 |
+
license: mit
|
3 |
+
base_model: facebook/bart-large-cnn
|
4 |
tags:
|
5 |
- generated_from_trainer
|
6 |
metrics:
|
|
|
15 |
|
16 |
# Big-Bart-BBC
|
17 |
|
18 |
+
This model is a fine-tuned version of [facebook/bart-large-cnn](https://huggingface.co/facebook/bart-large-cnn) on the None dataset.
|
19 |
It achieves the following results on the evaluation set:
|
20 |
+
- Loss: 4.1339
|
21 |
+
- Rouge1: 0.2638
|
22 |
+
- Rouge2: 0.1052
|
23 |
+
- Rougel: 0.2019
|
24 |
+
- Rougelsum: 0.202
|
25 |
|
26 |
## Model description
|
27 |
|
|
|
46 |
- seed: 42
|
47 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
48 |
- lr_scheduler_type: linear
|
49 |
+
- num_epochs: 5
|
50 |
|
51 |
### Training results
|
52 |
|
53 |
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum |
|
54 |
|:-------------:|:-----:|:----:|:---------------:|:------:|:------:|:------:|:---------:|
|
55 |
+
| 3.001 | 1.0 | 1652 | 2.8616 | 0.2179 | 0.0571 | 0.1565 | 0.1564 |
|
56 |
+
| 1.7636 | 2.0 | 3304 | 2.7371 | 0.2423 | 0.0772 | 0.1766 | 0.1767 |
|
57 |
+
| 0.9422 | 3.0 | 4956 | 3.1619 | 0.2463 | 0.0842 | 0.1832 | 0.1832 |
|
58 |
+
| 0.4259 | 4.0 | 6608 | 3.5730 | 0.2645 | 0.1009 | 0.2001 | 0.2002 |
|
59 |
+
| 0.1637 | 5.0 | 8260 | 4.1339 | 0.2638 | 0.1052 | 0.2019 | 0.202 |
|
60 |
|
61 |
|
62 |
### Framework versions
|
config.json
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "facebook/bart-large",
|
3 |
-
"
|
|
|
4 |
"activation_function": "gelu",
|
5 |
-
"add_bias_logits": false,
|
6 |
"add_final_layer_norm": false,
|
7 |
"architectures": [
|
8 |
"BartForConditionalGeneration"
|
9 |
],
|
10 |
-
"attention_dropout": 0.
|
11 |
"bos_token_id": 0,
|
12 |
-
"classif_dropout": 0.
|
13 |
"classifier_dropout": 0.0,
|
14 |
"d_model": 1024,
|
15 |
"decoder_attention_heads": 16,
|
@@ -24,6 +24,7 @@
|
|
24 |
"encoder_layerdrop": 0.0,
|
25 |
"encoder_layers": 12,
|
26 |
"eos_token_id": 2,
|
|
|
27 |
"forced_bos_token_id": 0,
|
28 |
"forced_eos_token_id": 2,
|
29 |
"gradient_checkpointing": false,
|
@@ -39,36 +40,31 @@
|
|
39 |
"LABEL_1": 1,
|
40 |
"LABEL_2": 2
|
41 |
},
|
|
|
|
|
42 |
"max_position_embeddings": 1024,
|
|
|
43 |
"model_type": "bart",
|
44 |
"no_repeat_ngram_size": 3,
|
45 |
"normalize_before": false,
|
46 |
"num_beams": 4,
|
47 |
"num_hidden_layers": 12,
|
|
|
48 |
"pad_token_id": 1,
|
|
|
49 |
"scale_embedding": false,
|
50 |
"task_specific_params": {
|
51 |
"summarization": {
|
52 |
-
"
|
53 |
-
"max_length": 128,
|
54 |
-
"min_length": 12,
|
55 |
-
"num_beams": 4
|
56 |
-
},
|
57 |
-
"summarization_cnn": {
|
58 |
"length_penalty": 2.0,
|
59 |
"max_length": 142,
|
60 |
"min_length": 56,
|
|
|
61 |
"num_beams": 4
|
62 |
-
},
|
63 |
-
"summarization_xsum": {
|
64 |
-
"length_penalty": 1.0,
|
65 |
-
"max_length": 62,
|
66 |
-
"min_length": 11,
|
67 |
-
"num_beams": 6
|
68 |
}
|
69 |
},
|
70 |
"torch_dtype": "float32",
|
71 |
"transformers_version": "4.36.2",
|
72 |
"use_cache": true,
|
73 |
-
"vocab_size":
|
74 |
}
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "facebook/bart-large-cnn",
|
3 |
+
"_num_labels": 3,
|
4 |
+
"activation_dropout": 0.0,
|
5 |
"activation_function": "gelu",
|
|
|
6 |
"add_final_layer_norm": false,
|
7 |
"architectures": [
|
8 |
"BartForConditionalGeneration"
|
9 |
],
|
10 |
+
"attention_dropout": 0.0,
|
11 |
"bos_token_id": 0,
|
12 |
+
"classif_dropout": 0.0,
|
13 |
"classifier_dropout": 0.0,
|
14 |
"d_model": 1024,
|
15 |
"decoder_attention_heads": 16,
|
|
|
24 |
"encoder_layerdrop": 0.0,
|
25 |
"encoder_layers": 12,
|
26 |
"eos_token_id": 2,
|
27 |
+
"force_bos_token_to_be_generated": true,
|
28 |
"forced_bos_token_id": 0,
|
29 |
"forced_eos_token_id": 2,
|
30 |
"gradient_checkpointing": false,
|
|
|
40 |
"LABEL_1": 1,
|
41 |
"LABEL_2": 2
|
42 |
},
|
43 |
+
"length_penalty": 2.0,
|
44 |
+
"max_length": 142,
|
45 |
"max_position_embeddings": 1024,
|
46 |
+
"min_length": 56,
|
47 |
"model_type": "bart",
|
48 |
"no_repeat_ngram_size": 3,
|
49 |
"normalize_before": false,
|
50 |
"num_beams": 4,
|
51 |
"num_hidden_layers": 12,
|
52 |
+
"output_past": true,
|
53 |
"pad_token_id": 1,
|
54 |
+
"prefix": " ",
|
55 |
"scale_embedding": false,
|
56 |
"task_specific_params": {
|
57 |
"summarization": {
|
58 |
+
"early_stopping": true,
|
|
|
|
|
|
|
|
|
|
|
59 |
"length_penalty": 2.0,
|
60 |
"max_length": 142,
|
61 |
"min_length": 56,
|
62 |
+
"no_repeat_ngram_size": 3,
|
63 |
"num_beams": 4
|
|
|
|
|
|
|
|
|
|
|
|
|
64 |
}
|
65 |
},
|
66 |
"torch_dtype": "float32",
|
67 |
"transformers_version": "4.36.2",
|
68 |
"use_cache": true,
|
69 |
+
"vocab_size": 50264
|
70 |
}
|
generation_config.json
CHANGED
@@ -5,6 +5,9 @@
|
|
5 |
"eos_token_id": 2,
|
6 |
"forced_bos_token_id": 0,
|
7 |
"forced_eos_token_id": 2,
|
|
|
|
|
|
|
8 |
"no_repeat_ngram_size": 3,
|
9 |
"num_beams": 4,
|
10 |
"pad_token_id": 1,
|
|
|
5 |
"eos_token_id": 2,
|
6 |
"forced_bos_token_id": 0,
|
7 |
"forced_eos_token_id": 2,
|
8 |
+
"length_penalty": 2.0,
|
9 |
+
"max_length": 142,
|
10 |
+
"min_length": 56,
|
11 |
"no_repeat_ngram_size": 3,
|
12 |
"num_beams": 4,
|
13 |
"pad_token_id": 1,
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e929786cea8189de4fa198b1b7989ff4f40e62b8b53856dcef066611206f69eb
|
3 |
+
size 1625422896
|
runs/Dec29_17-23-30_c8b93ab3f819/events.out.tfevents.1703870620.c8b93ab3f819.2550.1
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3789cc22c2554f133c57480ba87adc5fa8eeeccdd4199367ec50ef210c1ca38f
|
3 |
+
size 9027
|
special_tokens_map.json
CHANGED
@@ -1,7 +1,25 @@
|
|
1 |
{
|
2 |
-
"bos_token":
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
"mask_token": {
|
6 |
"content": "<mask>",
|
7 |
"lstrip": true,
|
@@ -9,7 +27,25 @@
|
|
9 |
"rstrip": false,
|
10 |
"single_word": false
|
11 |
},
|
12 |
-
"pad_token":
|
13 |
-
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
}
|
|
|
1 |
{
|
2 |
+
"bos_token": {
|
3 |
+
"content": "<s>",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": true,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "<s>",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": true,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "</s>",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": true,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
"mask_token": {
|
24 |
"content": "<mask>",
|
25 |
"lstrip": true,
|
|
|
27 |
"rstrip": false,
|
28 |
"single_word": false
|
29 |
},
|
30 |
+
"pad_token": {
|
31 |
+
"content": "<pad>",
|
32 |
+
"lstrip": false,
|
33 |
+
"normalized": true,
|
34 |
+
"rstrip": false,
|
35 |
+
"single_word": false
|
36 |
+
},
|
37 |
+
"sep_token": {
|
38 |
+
"content": "</s>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": true,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false
|
43 |
+
},
|
44 |
+
"unk_token": {
|
45 |
+
"content": "<unk>",
|
46 |
+
"lstrip": false,
|
47 |
+
"normalized": true,
|
48 |
+
"rstrip": false,
|
49 |
+
"single_word": false
|
50 |
+
}
|
51 |
}
|
tokenizer_config.json
CHANGED
@@ -52,6 +52,5 @@
|
|
52 |
"pad_token": "<pad>",
|
53 |
"sep_token": "</s>",
|
54 |
"tokenizer_class": "BartTokenizer",
|
55 |
-
"trim_offsets": true,
|
56 |
"unk_token": "<unk>"
|
57 |
}
|
|
|
52 |
"pad_token": "<pad>",
|
53 |
"sep_token": "</s>",
|
54 |
"tokenizer_class": "BartTokenizer",
|
|
|
55 |
"unk_token": "<unk>"
|
56 |
}
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4856
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:54d4fcc00ce2234fa8495b81ee479bacf95bbf7540494f87c27fd91fcbeeda20
|
3 |
size 4856
|
vocab.json
CHANGED
The diff for this file is too large to render.
See raw diff
|
|