knvarad commited on
Commit
87377bc
1 Parent(s): 1b984a2

Upload TFBartForConditionalGeneration

Browse files
Files changed (4) hide show
  1. README.md +57 -0
  2. config.json +77 -0
  3. generation_config.json +15 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: facebook/bart-base
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: bart-1
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
12
+ probably proofread and complete it, then remove this comment. -->
13
+
14
+ # bart-1
15
+
16
+ This model is a fine-tuned version of [facebook/bart-base](https://huggingface.co/facebook/bart-base) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 2.8511
19
+ - Validation Loss: 2.1184
20
+ - Train Rouge1: 0.3060
21
+ - Train Rouge2: 0.1137
22
+ - Train Rougel: 0.2614
23
+ - Epoch: 0
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - optimizer: {'name': 'Adam', 'learning_rate': 2e-05, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
43
+ - training_precision: float32
44
+
45
+ ### Training results
46
+
47
+ | Train Loss | Validation Loss | Train Rouge1 | Train Rouge2 | Train Rougel | Epoch |
48
+ |:----------:|:---------------:|:------------:|:------------:|:------------:|:-----:|
49
+ | 2.8511 | 2.1184 | 0.3060 | 0.1137 | 0.2614 | 0 |
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - Transformers 4.33.0
55
+ - TensorFlow 2.10.1
56
+ - Datasets 2.14.4
57
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/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_bos_token_id": 0,
28
+ "forced_eos_token_id": 2,
29
+ "gradient_checkpointing": false,
30
+ "id2label": {
31
+ "0": "LABEL_0",
32
+ "1": "LABEL_1",
33
+ "2": "LABEL_2"
34
+ },
35
+ "init_std": 0.02,
36
+ "is_encoder_decoder": true,
37
+ "label2id": {
38
+ "LABEL_0": 0,
39
+ "LABEL_1": 1,
40
+ "LABEL_2": 2
41
+ },
42
+ "max_length": 128,
43
+ "max_position_embeddings": 1024,
44
+ "min_length": 12,
45
+ "model_type": "bart",
46
+ "no_repeat_ngram_size": 3,
47
+ "normalize_before": false,
48
+ "normalize_embedding": true,
49
+ "num_beams": 4,
50
+ "num_hidden_layers": 6,
51
+ "pad_token_id": 1,
52
+ "scale_embedding": false,
53
+ "task_specific_params": {
54
+ "summarization": {
55
+ "length_penalty": 1.0,
56
+ "max_length": 128,
57
+ "min_length": 12,
58
+ "num_beams": 4
59
+ },
60
+ "summarization_cnn": {
61
+ "length_penalty": 2.0,
62
+ "max_length": 142,
63
+ "min_length": 56,
64
+ "num_beams": 4
65
+ },
66
+ "summarization_xsum": {
67
+ "length_penalty": 1.0,
68
+ "max_length": 62,
69
+ "min_length": 11,
70
+ "num_beams": 6
71
+ }
72
+ },
73
+ "torch_dtype": "float32",
74
+ "transformers_version": "4.33.0",
75
+ "use_cache": true,
76
+ "vocab_size": 50265
77
+ }
generation_config.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "decoder_start_token_id": 2,
5
+ "early_stopping": true,
6
+ "eos_token_id": 2,
7
+ "forced_bos_token_id": 0,
8
+ "forced_eos_token_id": 2,
9
+ "max_length": 128,
10
+ "min_length": 12,
11
+ "no_repeat_ngram_size": 3,
12
+ "num_beams": 4,
13
+ "pad_token_id": 1,
14
+ "transformers_version": "4.33.0"
15
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:72a4c6607a538adf1c82add92c967f0551c2da5ab3c00b8215e768c59b53c897
3
+ size 558172300