Beeseey commited on
Commit
327f183
·
1 Parent(s): d22dc7f

Upload model

Browse files
Files changed (4) hide show
  1. README.md +63 -0
  2. config.json +40 -0
  3. generation_config.json +7 -0
  4. tf_model.h5 +3 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - generated_from_keras_callback
5
+ model-index:
6
+ - name: gpt_image_clef1
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
+ # gpt_image_clef1
14
+
15
+ This model is a fine-tuned version of [gpt2](https://huggingface.co/gpt2) on an unknown dataset.
16
+ It achieves the following results on the evaluation set:
17
+ - Train Loss: 1.1002
18
+ - Train Rouge: 0.4943
19
+ - Validation Loss: 0.9385
20
+ - Validation Rouge: 0.4581
21
+ - Epoch: 8
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': 'AdamWeightDecay', 'learning_rate': {'class_name': 'WarmUp', 'config': {'initial_learning_rate': 0.0005, 'decay_schedule_fn': {'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 0.0005, 'decay_steps': 2554800, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, '__passive_serialization__': True}, 'warmup_steps': 1000, 'power': 1.0, 'name': None}}, 'decay': 0.0, 'beta_1': 0.9, 'beta_2': 0.99, 'epsilon': 0.2, 'amsgrad': False, 'weight_decay_rate': 0.01}
41
+ - training_precision: float32
42
+
43
+ ### Training results
44
+
45
+ | Train Loss | Train Rouge | Validation Loss | Validation Rouge | Epoch |
46
+ |:----------:|:-----------:|:---------------:|:----------------:|:-----:|
47
+ | 1.5411 | 0.4201 | 1.0250 | 0.4297 | 0 |
48
+ | 1.1803 | 0.4674 | 0.9795 | 0.4437 | 1 |
49
+ | 1.1391 | 0.4801 | 0.9588 | 0.4523 | 2 |
50
+ | 1.1168 | 0.4869 | 0.9395 | 0.4590 | 3 |
51
+ | 1.1038 | 0.4912 | 0.9318 | 0.4613 | 4 |
52
+ | 1.0971 | 0.4934 | 0.9305 | 0.4611 | 5 |
53
+ | 1.0949 | 0.4945 | 0.9287 | 0.4621 | 6 |
54
+ | 1.0965 | 0.4948 | 0.9313 | 0.4605 | 7 |
55
+ | 1.1002 | 0.4943 | 0.9385 | 0.4581 | 8 |
56
+
57
+
58
+ ### Framework versions
59
+
60
+ - Transformers 4.28.1
61
+ - TensorFlow 2.10.1
62
+ - Datasets 2.11.0
63
+ - Tokenizers 0.13.3
config.json ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "gpt2",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50257,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50258,
11
+ "initializer_range": 0.02,
12
+ "layer_norm_epsilon": 1e-05,
13
+ "model_type": "gpt2",
14
+ "n_ctx": 1024,
15
+ "n_embd": 768,
16
+ "n_head": 12,
17
+ "n_inner": null,
18
+ "n_layer": 12,
19
+ "n_positions": 1024,
20
+ "pad_token_id": 50260,
21
+ "reorder_and_upcast_attn": false,
22
+ "resid_pdrop": 0.1,
23
+ "scale_attn_by_inverse_layer_idx": false,
24
+ "scale_attn_weights": true,
25
+ "sep_token_id": 50261,
26
+ "summary_activation": null,
27
+ "summary_first_dropout": 0.1,
28
+ "summary_proj_to_labels": true,
29
+ "summary_type": "cls_index",
30
+ "summary_use_proj": true,
31
+ "task_specific_params": {
32
+ "text-generation": {
33
+ "do_sample": true,
34
+ "max_length": 50
35
+ }
36
+ },
37
+ "transformers_version": "4.28.1",
38
+ "use_cache": true,
39
+ "vocab_size": 50262
40
+ }
generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 50257,
4
+ "eos_token_id": 50258,
5
+ "pad_token_id": 50260,
6
+ "transformers_version": "4.28.1"
7
+ }
tf_model.h5 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6cf6b2f290c6d7397403041ee6400a0a8495467cacb003ab89d3d61127d30461
3
+ size 652359320