prateeksahu112
commited on
Commit
•
828c872
1
Parent(s):
dc00bdb
Upload TFT5ForConditionalGeneration
Browse files- README.md +66 -0
- config.json +59 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
tags:
|
4 |
+
- generated_from_keras_callback
|
5 |
+
model-index:
|
6 |
+
- name: test-model
|
7 |
+
results: []
|
8 |
+
---
|
9 |
+
|
10 |
+
<!-- This model card has been generated automatically according to the information Keras had access to. You should
|
11 |
+
probably proofread and complete it, then remove this comment. -->
|
12 |
+
|
13 |
+
# test-model
|
14 |
+
|
15 |
+
This model is a fine-tuned version of [t5-small](https://huggingface.co/t5-small) on an unknown dataset.
|
16 |
+
It achieves the following results on the evaluation set:
|
17 |
+
- Train Loss: 1.0322
|
18 |
+
- Validation Loss: 0.9818
|
19 |
+
- Train Rouge1: 63.3560
|
20 |
+
- Train Rouge2: 39.8622
|
21 |
+
- Train Rougel: 62.5870
|
22 |
+
- Train Rougelsum: 62.5573
|
23 |
+
- Epoch: 9
|
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': '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}
|
43 |
+
- training_precision: float32
|
44 |
+
|
45 |
+
### Training results
|
46 |
+
|
47 |
+
| Train Loss | Validation Loss | Train Rouge1 | Train Rouge2 | Train Rougel | Train Rougelsum | Epoch |
|
48 |
+
|:----------:|:---------------:|:------------:|:------------:|:------------:|:---------------:|:-----:|
|
49 |
+
| 1.2033 | 1.1011 | 63.0488 | 39.8152 | 62.3015 | 62.2699 | 0 |
|
50 |
+
| 1.1660 | 1.0732 | 63.6556 | 40.2704 | 62.8821 | 62.8498 | 1 |
|
51 |
+
| 1.1394 | 1.0532 | 63.8815 | 40.5348 | 63.1276 | 63.0965 | 2 |
|
52 |
+
| 1.1149 | 1.0386 | 64.2783 | 40.8596 | 63.5115 | 63.4840 | 3 |
|
53 |
+
| 1.0969 | 1.0245 | 63.6975 | 40.1645 | 62.9323 | 62.8990 | 4 |
|
54 |
+
| 1.0831 | 1.0122 | 63.7146 | 40.3383 | 62.9457 | 62.9173 | 5 |
|
55 |
+
| 1.0678 | 1.0044 | 63.3129 | 39.9492 | 62.5462 | 62.5154 | 6 |
|
56 |
+
| 1.0551 | 0.9949 | 62.5523 | 39.2999 | 61.7963 | 61.7831 | 7 |
|
57 |
+
| 1.0417 | 0.9869 | 63.3126 | 40.0112 | 62.5606 | 62.5360 | 8 |
|
58 |
+
| 1.0322 | 0.9818 | 63.3560 | 39.8622 | 62.5870 | 62.5573 | 9 |
|
59 |
+
|
60 |
+
|
61 |
+
### Framework versions
|
62 |
+
|
63 |
+
- Transformers 4.25.1
|
64 |
+
- TensorFlow 2.9.2
|
65 |
+
- Datasets 2.8.0
|
66 |
+
- Tokenizers 0.13.2
|
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.25.1",
|
57 |
+
"use_cache": true,
|
58 |
+
"vocab_size": 32128
|
59 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c74ef9246a3c49f3013b0f8252733eed0567e799e08691195e670c0f1cc78d84
|
3 |
+
size 373902848
|