Upload model
Browse files- README.md +80 -0
- config.json +40 -0
- generation_config.json +6 -0
- tf_model.h5 +3 -0
README.md
ADDED
@@ -0,0 +1,80 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: mit
|
3 |
+
tags:
|
4 |
+
- generated_from_keras_callback
|
5 |
+
model-index:
|
6 |
+
- name: gpt_image_clef2
|
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_clef2
|
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.2611
|
18 |
+
- Train Rouge: 0.4475
|
19 |
+
- Validation Loss: 1.1578
|
20 |
+
- Validation Rouge: 0.3944
|
21 |
+
- Epoch: 25
|
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.5255 | 0.4213 | 1.0251 | 0.4284 | 0 |
|
48 |
+
| 1.1805 | 0.4673 | 0.9779 | 0.4442 | 1 |
|
49 |
+
| 1.1394 | 0.4800 | 0.9561 | 0.4509 | 2 |
|
50 |
+
| 1.1168 | 0.4871 | 0.9369 | 0.4595 | 3 |
|
51 |
+
| 1.1036 | 0.4915 | 0.9314 | 0.4623 | 4 |
|
52 |
+
| 1.0971 | 0.4936 | 0.9283 | 0.4624 | 5 |
|
53 |
+
| 1.0946 | 0.4947 | 0.9315 | 0.4617 | 6 |
|
54 |
+
| 1.0962 | 0.4947 | 0.9323 | 0.4614 | 7 |
|
55 |
+
| 1.1001 | 0.4943 | 0.9405 | 0.4586 | 8 |
|
56 |
+
| 1.1065 | 0.4933 | 0.9501 | 0.4560 | 9 |
|
57 |
+
| 1.1146 | 0.4913 | 0.9614 | 0.4498 | 10 |
|
58 |
+
| 1.1240 | 0.4890 | 0.9726 | 0.4471 | 11 |
|
59 |
+
| 1.1341 | 0.4864 | 0.9852 | 0.4429 | 12 |
|
60 |
+
| 1.1451 | 0.4836 | 0.9982 | 0.4389 | 13 |
|
61 |
+
| 1.1564 | 0.4799 | 1.0160 | 0.4319 | 14 |
|
62 |
+
| 1.1680 | 0.4766 | 1.0273 | 0.4296 | 15 |
|
63 |
+
| 1.1793 | 0.4732 | 1.0405 | 0.4267 | 16 |
|
64 |
+
| 1.1901 | 0.4699 | 1.0556 | 0.4235 | 17 |
|
65 |
+
| 1.2007 | 0.4666 | 1.0692 | 0.4184 | 18 |
|
66 |
+
| 1.2108 | 0.4632 | 1.0796 | 0.4168 | 19 |
|
67 |
+
| 1.2207 | 0.4603 | 1.0998 | 0.4093 | 20 |
|
68 |
+
| 1.2299 | 0.4574 | 1.1135 | 0.4057 | 21 |
|
69 |
+
| 1.2386 | 0.4547 | 1.1297 | 0.4026 | 22 |
|
70 |
+
| 1.2469 | 0.4519 | 1.1396 | 0.4013 | 23 |
|
71 |
+
| 1.2540 | 0.4497 | 1.1467 | 0.3960 | 24 |
|
72 |
+
| 1.2611 | 0.4475 | 1.1578 | 0.3944 | 25 |
|
73 |
+
|
74 |
+
|
75 |
+
### Framework versions
|
76 |
+
|
77 |
+
- Transformers 4.28.1
|
78 |
+
- TensorFlow 2.10.1
|
79 |
+
- Datasets 2.11.0
|
80 |
+
- 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,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_from_model_config": true,
|
3 |
+
"bos_token_id": 50256,
|
4 |
+
"eos_token_id": 50256,
|
5 |
+
"transformers_version": "4.28.1"
|
6 |
+
}
|
tf_model.h5
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2a4d07d64959bb9d4c5bdeb30da6b54aae1c088e87ef5c52ed542a3db206316e
|
3 |
+
size 652359320
|