tmartinez commited on
Commit
09f3128
1 Parent(s): e6751d1

Upload TFPegasusForConditionalGeneration

Browse files
Files changed (4) hide show
  1. README.md +56 -0
  2. config.json +123 -0
  3. generation_config.json +12 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_keras_callback
4
+ model-index:
5
+ - name: pegasus-large-musicLyrics
6
+ results: []
7
+ ---
8
+
9
+ <!-- This model card has been generated automatically according to the information Keras had access to. You should
10
+ probably proofread and complete it, then remove this comment. -->
11
+
12
+ # pegasus-large-musicLyrics
13
+
14
+ This model is a fine-tuned version of [google/pegasus-large](https://huggingface.co/google/pegasus-large) on an unknown dataset.
15
+ It achieves the following results on the evaluation set:
16
+ - Train Loss: 1.0472
17
+ - Train Sparse Categorical Accuracy: 0.7971
18
+ - Validation Loss: 1.0387
19
+ - Validation Sparse Categorical Accuracy: 0.7992
20
+ - Epoch: 2
21
+
22
+ ## Model description
23
+
24
+ More information needed
25
+
26
+ ## Intended uses & limitations
27
+
28
+ More information needed
29
+
30
+ ## Training and evaluation data
31
+
32
+ More information needed
33
+
34
+ ## Training procedure
35
+
36
+ ### Training hyperparameters
37
+
38
+ The following hyperparameters were used during training:
39
+ - optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': 5e-05, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-07, 'amsgrad': False}
40
+ - training_precision: float32
41
+
42
+ ### Training results
43
+
44
+ | Train Loss | Train Sparse Categorical Accuracy | Validation Loss | Validation Sparse Categorical Accuracy | Epoch |
45
+ |:----------:|:---------------------------------:|:---------------:|:--------------------------------------:|:-----:|
46
+ | 1.4713 | 0.7524 | 1.0652 | 0.7960 | 0 |
47
+ | 1.0824 | 0.7934 | 1.0482 | 0.7982 | 1 |
48
+ | 1.0472 | 0.7971 | 1.0387 | 0.7992 | 2 |
49
+
50
+
51
+ ### Framework versions
52
+
53
+ - Transformers 4.27.4
54
+ - TensorFlow 2.12.0
55
+ - Datasets 2.11.0
56
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "google/pegasus-large",
3
+ "activation_dropout": 0.1,
4
+ "activation_function": "relu",
5
+ "add_bias_logits": false,
6
+ "add_final_layer_norm": true,
7
+ "architectures": [
8
+ "PegasusForConditionalGeneration"
9
+ ],
10
+ "attention_dropout": 0.1,
11
+ "bos_token_id": 0,
12
+ "classif_dropout": 0.0,
13
+ "classifier_dropout": 0.0,
14
+ "d_model": 1024,
15
+ "decoder_attention_heads": 16,
16
+ "decoder_ffn_dim": 4096,
17
+ "decoder_layerdrop": 0.0,
18
+ "decoder_layers": 16,
19
+ "decoder_start_token_id": 0,
20
+ "dropout": 0.1,
21
+ "encoder_attention_heads": 16,
22
+ "encoder_ffn_dim": 4096,
23
+ "encoder_layerdrop": 0.0,
24
+ "encoder_layers": 16,
25
+ "eos_token_id": 1,
26
+ "extra_pos_embeddings": 1,
27
+ "force_bos_token_to_be_generated": false,
28
+ "forced_eos_token_id": 1,
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
+ "length_penalty": 0.8,
43
+ "max_length": 256,
44
+ "max_position_embeddings": 1024,
45
+ "model_type": "pegasus",
46
+ "normalize_before": true,
47
+ "normalize_embedding": false,
48
+ "num_beams": 8,
49
+ "num_hidden_layers": 16,
50
+ "pad_token_id": 0,
51
+ "scale_embedding": true,
52
+ "static_position_embeddings": true,
53
+ "task_specific_params": {
54
+ "summarization_aeslc": {
55
+ "length_penalty": 0.6,
56
+ "max_length": 32,
57
+ "max_position_embeddings": 512
58
+ },
59
+ "summarization_arxiv": {
60
+ "length_penalty": 0.8,
61
+ "max_length": 256,
62
+ "max_position_embeddings": 1024
63
+ },
64
+ "summarization_big_patent": {
65
+ "length_penalty": 0.7,
66
+ "max_length": 256,
67
+ "max_position_embeddings": 1024
68
+ },
69
+ "summarization_billsum": {
70
+ "length_penalty": 0.6,
71
+ "max_length": 256,
72
+ "max_position_embeddings": 1024
73
+ },
74
+ "summarization_cnn_dailymail": {
75
+ "length_penalty": 0.8,
76
+ "max_length": 128,
77
+ "max_position_embeddings": 1024
78
+ },
79
+ "summarization_gigaword": {
80
+ "length_penalty": 0.6,
81
+ "max_length": 32,
82
+ "max_position_embeddings": 128
83
+ },
84
+ "summarization_large": {
85
+ "length_penalty": 0.8,
86
+ "max_length": 256,
87
+ "max_position_embeddings": 1024
88
+ },
89
+ "summarization_multi_news": {
90
+ "length_penalty": 0.8,
91
+ "max_length": 256,
92
+ "max_position_embeddings": 1024
93
+ },
94
+ "summarization_newsroom": {
95
+ "length_penalty": 0.8,
96
+ "max_length": 128,
97
+ "max_position_embeddings": 512
98
+ },
99
+ "summarization_pubmed": {
100
+ "length_penalty": 0.8,
101
+ "max_length": 256,
102
+ "max_position_embeddings": 1024
103
+ },
104
+ "summarization_reddit_tifu": {
105
+ "length_penalty": 0.6,
106
+ "max_length": 128,
107
+ "max_position_embeddings": 512
108
+ },
109
+ "summarization_wikihow": {
110
+ "length_penalty": 0.6,
111
+ "max_length": 256,
112
+ "max_position_embeddings": 512
113
+ },
114
+ "summarization_xsum": {
115
+ "length_penalty": 0.8,
116
+ "max_length": 64,
117
+ "max_position_embeddings": 512
118
+ }
119
+ },
120
+ "transformers_version": "4.27.4",
121
+ "use_cache": true,
122
+ "vocab_size": 96103
123
+ }
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 0,
4
+ "decoder_start_token_id": 0,
5
+ "eos_token_id": 1,
6
+ "forced_eos_token_id": 1,
7
+ "length_penalty": 0.8,
8
+ "max_length": 256,
9
+ "num_beams": 8,
10
+ "pad_token_id": 0,
11
+ "transformers_version": "4.27.4"
12
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:75e60655be6f6b87ba0dd905c091390c4d948a604ae0ac572bf62e720fc4607a
3
+ size 2284292940