thonyyy commited on
Commit
3204d55
1 Parent(s): 40490ad

Upload TFPegasusForConditionalGeneration

Browse files
Files changed (4) hide show
  1. README.md +56 -0
  2. config.json +31 -0
  3. generation_config.json +8 -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-indonesian-base_finetune
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-indonesian-base_finetune
13
+
14
+ This model is a fine-tuned version of [](https://huggingface.co/) on an unknown dataset.
15
+ It achieves the following results on the evaluation set:
16
+ - Train Loss: 1.6196
17
+ - Train Accuracy: 0.1079
18
+ - Validation Loss: 1.4097
19
+ - Validation Accuracy: 0.1153
20
+ - Train Lr: 0.00013661868
21
+ - Epoch: 1
22
+
23
+ ## Model description
24
+
25
+ More information needed
26
+
27
+ ## Intended uses & limitations
28
+
29
+ More information needed
30
+
31
+ ## Training and evaluation data
32
+
33
+ More information needed
34
+
35
+ ## Training procedure
36
+
37
+ ### Training hyperparameters
38
+
39
+ The following hyperparameters were used during training:
40
+ - optimizer: {'name': 'Adafactor', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': False, 'is_legacy_optimizer': False, 'learning_rate': 0.00013661868, 'beta_2_decay': -0.8, 'epsilon_1': 1e-30, 'epsilon_2': 0.001, 'clip_threshold': 1.0, 'relative_step': True}
41
+ - training_precision: float32
42
+
43
+ ### Training results
44
+
45
+ | Train Loss | Train Accuracy | Validation Loss | Validation Accuracy | Train Lr | Epoch |
46
+ |:----------:|:--------------:|:---------------:|:-------------------:|:-------------:|:-----:|
47
+ | 2.3484 | 0.0859 | 1.6304 | 0.1080 | 0.00013661868 | 0 |
48
+ | 1.6196 | 0.1079 | 1.4097 | 0.1153 | 0.00013661868 | 1 |
49
+
50
+
51
+ ### Framework versions
52
+
53
+ - Transformers 4.30.2
54
+ - TensorFlow 2.12.0
55
+ - Datasets 2.13.1
56
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation_dropout": 0.0,
3
+ "activation_function": "gelu",
4
+ "architectures": [
5
+ "PegasusForConditionalGeneration"
6
+ ],
7
+ "attention_dropout": 0.0,
8
+ "d_model": 512,
9
+ "decoder_attention_heads": 8,
10
+ "decoder_ffn_dim": 3072,
11
+ "decoder_layerdrop": 0.0,
12
+ "decoder_layers": 12,
13
+ "decoder_start_token_id": 0,
14
+ "dropout": 0.15,
15
+ "encoder_attention_heads": 8,
16
+ "encoder_ffn_dim": 3072,
17
+ "encoder_layerdrop": 0.0,
18
+ "encoder_layers": 12,
19
+ "eos_token_id": 1,
20
+ "forced_eos_token_id": 1,
21
+ "init_std": 0.02,
22
+ "is_encoder_decoder": true,
23
+ "max_position_embeddings": 1024,
24
+ "model_type": "pegasus",
25
+ "num_hidden_layers": 12,
26
+ "pad_token_id": 0,
27
+ "scale_embedding": false,
28
+ "transformers_version": "4.30.2",
29
+ "use_cache": true,
30
+ "vocab_size": 32103
31
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "decoder_start_token_id": 0,
4
+ "eos_token_id": 1,
5
+ "forced_eos_token_id": 1,
6
+ "pad_token_id": 0,
7
+ "transformers_version": "4.30.2"
8
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:040db8a62c549588552ed971e84938c3a50fd8969c4c7f8e0163d7046c930a21
3
+ size 524505948