Ali Safaya
commited on
Commit
•
8a25033
1
Parent(s):
297437f
turkish bart summarization uncased
Browse files- README.md +96 -3
- config.json +62 -0
- pytorch_model.bin +3 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- vocab.txt +0 -0
README.md
CHANGED
@@ -1,3 +1,96 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- generated_from_trainer
|
4 |
+
datasets:
|
5 |
+
- mlsum
|
6 |
+
metrics:
|
7 |
+
- rouge
|
8 |
+
model-index:
|
9 |
+
- name: eval-bart-turkish
|
10 |
+
results:
|
11 |
+
- task:
|
12 |
+
name: Summarization
|
13 |
+
type: summarization
|
14 |
+
dataset:
|
15 |
+
name: mlsum tu
|
16 |
+
type: mlsum
|
17 |
+
args: tu
|
18 |
+
metrics:
|
19 |
+
- name: Rouge1
|
20 |
+
type: rouge
|
21 |
+
value: 43.2049
|
22 |
+
---
|
23 |
+
|
24 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
25 |
+
should probably proofread and complete it, then remove this comment. -->
|
26 |
+
|
27 |
+
# eval-bart-turkish
|
28 |
+
|
29 |
+
This model is a fine-tuned version of [bart-turkish](https://huggingface.co/bart-turkish) on the mlsum tu dataset.
|
30 |
+
It achieves the following results on the evaluation set:
|
31 |
+
- Loss: 3.4903
|
32 |
+
- Rouge1: 43.2049
|
33 |
+
- Rouge2: 30.7082
|
34 |
+
- Rougel: 38.1981
|
35 |
+
- Rougelsum: 39.9453
|
36 |
+
- Gen Len: 34.5978
|
37 |
+
|
38 |
+
## Model description
|
39 |
+
|
40 |
+
More information needed
|
41 |
+
|
42 |
+
## Intended uses & limitations
|
43 |
+
|
44 |
+
More information needed
|
45 |
+
|
46 |
+
## Training and evaluation data
|
47 |
+
|
48 |
+
More information needed
|
49 |
+
|
50 |
+
## Training procedure
|
51 |
+
|
52 |
+
### Training hyperparameters
|
53 |
+
|
54 |
+
The following hyperparameters were used during training:
|
55 |
+
- learning_rate: 0.0001
|
56 |
+
- train_batch_size: 4
|
57 |
+
- eval_batch_size: 8
|
58 |
+
- seed: 42
|
59 |
+
- distributed_type: multi-GPU
|
60 |
+
- num_devices: 8
|
61 |
+
- gradient_accumulation_steps: 2
|
62 |
+
- total_train_batch_size: 64
|
63 |
+
- total_eval_batch_size: 64
|
64 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
65 |
+
- lr_scheduler_type: linear
|
66 |
+
- num_epochs: 15.0
|
67 |
+
- mixed_precision_training: Native AMP
|
68 |
+
- label_smoothing_factor: 0.1
|
69 |
+
|
70 |
+
### Training results
|
71 |
+
|
72 |
+
| Training Loss | Epoch | Step | Validation Loss | Rouge1 | Rouge2 | Rougel | Rougelsum | Gen Len |
|
73 |
+
|:-------------:|:-----:|:-----:|:---------------:|:-------:|:-------:|:-------:|:---------:|:-------:|
|
74 |
+
| 4.4304 | 1.0 | 3895 | 4.3749 | 33.2844 | 22.8262 | 29.9423 | 30.7953 | 19.7732 |
|
75 |
+
| 3.65 | 2.0 | 7790 | 3.7414 | 33.8392 | 23.517 | 30.4871 | 31.3309 | 19.9031 |
|
76 |
+
| 3.397 | 3.0 | 11685 | 3.5651 | 34.2335 | 23.9113 | 30.9237 | 31.7434 | 19.894 |
|
77 |
+
| 3.2202 | 4.0 | 15580 | 3.5054 | 34.2535 | 23.9595 | 30.9811 | 31.7961 | 19.9212 |
|
78 |
+
| 3.0827 | 5.0 | 19475 | 3.4547 | 34.5545 | 24.1991 | 31.2609 | 32.085 | 19.9195 |
|
79 |
+
| 2.9801 | 6.0 | 23370 | 3.4328 | 34.6721 | 24.2537 | 31.372 | 32.1777 | 19.9331 |
|
80 |
+
| 2.8689 | 7.0 | 27265 | 3.4377 | 34.6764 | 24.3314 | 31.4376 | 32.1981 | 19.9278 |
|
81 |
+
| 2.7813 | 8.0 | 31160 | 3.4407 | 34.746 | 24.345 | 31.4511 | 32.2708 | 19.9468 |
|
82 |
+
| 2.6848 | 9.0 | 35055 | 3.4539 | 34.7376 | 24.3224 | 31.4784 | 32.2817 | 19.9096 |
|
83 |
+
| 2.5974 | 10.0 | 38950 | 3.4683 | 34.9174 | 24.4716 | 31.5641 | 32.4039 | 19.9384 |
|
84 |
+
| 2.5228 | 11.0 | 42845 | 3.4903 | 34.9845 | 24.4972 | 31.6585 | 32.4753 | 19.93 |
|
85 |
+
| 2.4633 | 12.0 | 46740 | 3.5105 | 34.8496 | 24.3559 | 31.5256 | 32.3635 | 19.9275 |
|
86 |
+
| 2.4022 | 13.0 | 50635 | 3.5234 | 34.9109 | 24.4008 | 31.5449 | 32.4021 | 19.9374 |
|
87 |
+
| 2.3605 | 14.0 | 54530 | 3.5306 | 34.9545 | 24.4365 | 31.6208 | 32.4711 | 19.9366 |
|
88 |
+
| 2.3216 | 15.0 | 58425 | 3.5379 | 34.9079 | 24.4077 | 31.5734 | 32.4287 | 19.9365 |
|
89 |
+
|
90 |
+
|
91 |
+
### Framework versions
|
92 |
+
|
93 |
+
- Transformers 4.11.3
|
94 |
+
- Pytorch 1.8.2+cu111
|
95 |
+
- Datasets 1.14.0
|
96 |
+
- Tokenizers 0.10.3
|
config.json
ADDED
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bart-base",
|
3 |
+
"activation_dropout": 0.1,
|
4 |
+
"activation_function": "gelu",
|
5 |
+
"add_bias_logits": false,
|
6 |
+
"add_final_layer_norm": false,
|
7 |
+
"architectures": [
|
8 |
+
"BartForConditionalGeneration"
|
9 |
+
],
|
10 |
+
"attention_dropout": 0.1,
|
11 |
+
"bos_token_id": 0,
|
12 |
+
"classif_dropout": 0.1,
|
13 |
+
"classifier_dropout": 0.0,
|
14 |
+
"d_model": 768,
|
15 |
+
"decoder_attention_heads": 12,
|
16 |
+
"decoder_ffn_dim": 3072,
|
17 |
+
"decoder_layerdrop": 0.0,
|
18 |
+
"decoder_layers": 6,
|
19 |
+
"decoder_start_token_id": 2,
|
20 |
+
"dropout": 0.1,
|
21 |
+
"early_stopping": true,
|
22 |
+
"encoder_attention_heads": 12,
|
23 |
+
"encoder_ffn_dim": 3072,
|
24 |
+
"encoder_layerdrop": 0.0,
|
25 |
+
"encoder_layers": 6,
|
26 |
+
"eos_token_id": 2,
|
27 |
+
"forced_eos_token_id": 2,
|
28 |
+
"gradient_checkpointing": false,
|
29 |
+
"id2label": {
|
30 |
+
"0": "LABEL_0",
|
31 |
+
"1": "LABEL_1",
|
32 |
+
"2": "LABEL_2"
|
33 |
+
},
|
34 |
+
"init_std": 0.02,
|
35 |
+
"is_encoder_decoder": true,
|
36 |
+
"label2id": {
|
37 |
+
"LABEL_0": 0,
|
38 |
+
"LABEL_1": 1,
|
39 |
+
"LABEL_2": 2
|
40 |
+
},
|
41 |
+
"max_position_embeddings": 1024,
|
42 |
+
"model_type": "bart",
|
43 |
+
"no_repeat_ngram_size": 3,
|
44 |
+
"normalize_before": false,
|
45 |
+
"normalize_embedding": true,
|
46 |
+
"num_beams": 4,
|
47 |
+
"num_hidden_layers": 6,
|
48 |
+
"pad_token_id": 1,
|
49 |
+
"scale_embedding": false,
|
50 |
+
"task_specific_params": {
|
51 |
+
"summarization": {
|
52 |
+
"length_penalty": 1.0,
|
53 |
+
"max_length": 128,
|
54 |
+
"min_length": 12,
|
55 |
+
"num_beams": 4
|
56 |
+
}
|
57 |
+
},
|
58 |
+
"torch_dtype": "float32",
|
59 |
+
"transformers_version": "4.11.3",
|
60 |
+
"use_cache": true,
|
61 |
+
"vocab_size": 32000
|
62 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7cf1f1910ea0edc1b1d1c24684524e164efa9094f29ed2d84ec15b9340a5ff7a
|
3 |
+
size 501802579
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"bos_token": "<s>", "eos_token": "</s>", "unk_token": "<unk>", "sep_token": "</s>", "pad_token": "<pad>", "cls_token": "<s>", "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": false}}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "<unk>", "bos_token": "<s>", "eos_token": "</s>", "add_prefix_space": false, "errors": "replace", "sep_token": "</s>", "cls_token": "<s>", "pad_token": "<pad>", "mask_token": "<mask>", "model_max_length": 1024, "special_tokens_map_file": null, "name_or_path": "bart-turkish", "tokenizer_class": "BartTokenizer"}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|