Upload TFT5ForConditionalGeneration

#1
Files changed (4) hide show
  1. README.md +67 -0
  2. config.json +59 -0
  3. generation_config.json +7 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: t5-small
4
+ tags:
5
+ - generated_from_keras_callback
6
+ model-index:
7
+ - name: keyword-masked-model
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
+ # keyword-masked-model
15
+
16
+ This model is a fine-tuned version of [t5-small](https://huggingface.co/t5-small) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Train Loss: 0.9545
19
+ - Validation Loss: 0.7767
20
+ - Train Rouge1: 76.8067
21
+ - Train Rouge2: 64.2138
22
+ - Train Rougel: 76.1124
23
+ - Train Rougelsum: 76.0843
24
+ - Epoch: 9
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - optimizer: {'name': 'AdamWeightDecay', 'learning_rate': 2e-05, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False, 'weight_decay_rate': 0.01}
44
+ - training_precision: float32
45
+
46
+ ### Training results
47
+
48
+ | Train Loss | Validation Loss | Train Rouge1 | Train Rouge2 | Train Rougel | Train Rougelsum | Epoch |
49
+ |:----------:|:---------------:|:------------:|:------------:|:------------:|:---------------:|:-----:|
50
+ | 2.7609 | 2.0508 | 69.5404 | 56.1190 | 67.9736 | 67.9553 | 0 |
51
+ | 2.0227 | 1.5912 | 71.6288 | 58.5009 | 70.6498 | 70.7363 | 1 |
52
+ | 1.6780 | 1.3604 | 70.8191 | 58.1082 | 70.0231 | 69.8913 | 2 |
53
+ | 1.4974 | 1.2163 | 69.9943 | 57.3099 | 68.7338 | 68.7593 | 3 |
54
+ | 1.3525 | 1.1001 | 70.4850 | 57.7869 | 69.2259 | 69.2106 | 4 |
55
+ | 1.2480 | 1.0154 | 71.1204 | 58.1709 | 69.9356 | 69.9324 | 5 |
56
+ | 1.1556 | 0.9368 | 72.5520 | 59.4597 | 71.3193 | 71.4219 | 6 |
57
+ | 1.0820 | 0.8754 | 74.5839 | 61.6499 | 73.6577 | 73.6458 | 7 |
58
+ | 1.0117 | 0.8244 | 75.0935 | 62.3254 | 74.3574 | 74.2253 | 8 |
59
+ | 0.9545 | 0.7767 | 76.8067 | 64.2138 | 76.1124 | 76.0843 | 9 |
60
+
61
+
62
+ ### Framework versions
63
+
64
+ - Transformers 4.31.0
65
+ - TensorFlow 2.12.0
66
+ - Datasets 2.13.1
67
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "t5-small",
3
+ "architectures": [
4
+ "T5ForConditionalGeneration"
5
+ ],
6
+ "d_ff": 2048,
7
+ "d_kv": 64,
8
+ "d_model": 512,
9
+ "decoder_start_token_id": 0,
10
+ "dense_act_fn": "relu",
11
+ "dropout_rate": 0.1,
12
+ "eos_token_id": 1,
13
+ "feed_forward_proj": "relu",
14
+ "initializer_factor": 1.0,
15
+ "is_encoder_decoder": true,
16
+ "is_gated_act": false,
17
+ "layer_norm_epsilon": 1e-06,
18
+ "model_type": "t5",
19
+ "n_positions": 512,
20
+ "num_decoder_layers": 6,
21
+ "num_heads": 8,
22
+ "num_layers": 6,
23
+ "output_past": true,
24
+ "pad_token_id": 0,
25
+ "relative_attention_max_distance": 128,
26
+ "relative_attention_num_buckets": 32,
27
+ "task_specific_params": {
28
+ "summarization": {
29
+ "early_stopping": true,
30
+ "length_penalty": 2.0,
31
+ "max_length": 200,
32
+ "min_length": 30,
33
+ "no_repeat_ngram_size": 3,
34
+ "num_beams": 4,
35
+ "prefix": "summarize: "
36
+ },
37
+ "translation_en_to_de": {
38
+ "early_stopping": true,
39
+ "max_length": 300,
40
+ "num_beams": 4,
41
+ "prefix": "translate English to German: "
42
+ },
43
+ "translation_en_to_fr": {
44
+ "early_stopping": true,
45
+ "max_length": 300,
46
+ "num_beams": 4,
47
+ "prefix": "translate English to French: "
48
+ },
49
+ "translation_en_to_ro": {
50
+ "early_stopping": true,
51
+ "max_length": 300,
52
+ "num_beams": 4,
53
+ "prefix": "translate English to Romanian: "
54
+ }
55
+ },
56
+ "transformers_version": "4.31.0",
57
+ "use_cache": true,
58
+ "vocab_size": 32128
59
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "decoder_start_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "pad_token_id": 0,
6
+ "transformers_version": "4.31.0"
7
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a32409fe8fa8ba11ab3352738c0ddd1027e2fd73f3713d8bd18547dd11a5dc2
3
+ size 373902664