adalbertojunior commited on
Commit
3b4aced
1 Parent(s): 2fc4c68

initial commit

Browse files
README.md ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - generated_from_trainer
4
+ datasets:
5
+ - ydshieh/coco_dataset_script
6
+ model-index:
7
+ - name: clip-roberta-finetuned
8
+ results: []
9
+ ---
10
+
11
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
12
+ should probably proofread and complete it, then remove this comment. -->
13
+
14
+ # clip-roberta-finetuned
15
+
16
+ This model is a fine-tuned version of [./models/clip-roberta](https://huggingface.co/./models/clip-roberta) on the ydshieh/coco_dataset_script 2017 dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 2.7269
19
+
20
+ ## Model description
21
+
22
+ More information needed
23
+
24
+ ## Intended uses & limitations
25
+
26
+ More information needed
27
+
28
+ ## Training and evaluation data
29
+
30
+ More information needed
31
+
32
+ ## Training procedure
33
+
34
+ ### Training hyperparameters
35
+
36
+ The following hyperparameters were used during training:
37
+ - learning_rate: 5e-05
38
+ - train_batch_size: 256
39
+ - eval_batch_size: 256
40
+ - seed: 42
41
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
42
+ - lr_scheduler_type: linear
43
+ - num_epochs: 3.0
44
+
45
+ ### Training results
46
+
47
+
48
+
49
+ ### Framework versions
50
+
51
+ - Transformers 4.19.2
52
+ - Pytorch 1.11.0+cu113
53
+ - Datasets 1.18.4
54
+ - Tokenizers 0.11.6
all_results.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_loss": 2.7268519401550293,
4
+ "eval_runtime": 1402.9095,
5
+ "eval_samples_per_second": 17.7,
6
+ "eval_steps_per_second": 0.069,
7
+ "train_loss": 1.5387164243717784,
8
+ "train_runtime": 5043.8105,
9
+ "train_samples_per_second": 14.638,
10
+ "train_steps_per_second": 0.058
11
+ }
config.json ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./models/clip-roberta",
3
+ "architectures": [
4
+ "VisionTextDualEncoderModel"
5
+ ],
6
+ "logit_scale_init_value": 2.6592,
7
+ "model_type": "vision-text-dual-encoder",
8
+ "projection_dim": 512,
9
+ "text_config": {
10
+ "_name_or_path": "adalbertojunior/rpt",
11
+ "add_cross_attention": false,
12
+ "architectures": [
13
+ "RobertaForMaskedLM"
14
+ ],
15
+ "attention_probs_dropout_prob": 0.1,
16
+ "bad_words_ids": null,
17
+ "bos_token_id": 0,
18
+ "chunk_size_feed_forward": 0,
19
+ "classifier_dropout": null,
20
+ "cross_attention_hidden_size": null,
21
+ "decoder_start_token_id": null,
22
+ "diversity_penalty": 0.0,
23
+ "do_sample": false,
24
+ "early_stopping": false,
25
+ "encoder_no_repeat_ngram_size": 0,
26
+ "eos_token_id": 2,
27
+ "exponential_decay_length_penalty": null,
28
+ "finetuning_task": null,
29
+ "forced_bos_token_id": null,
30
+ "forced_eos_token_id": null,
31
+ "hidden_act": "gelu",
32
+ "hidden_dropout_prob": 0.1,
33
+ "hidden_size": 768,
34
+ "id2label": {
35
+ "0": "LABEL_0",
36
+ "1": "LABEL_1"
37
+ },
38
+ "initializer_range": 0.02,
39
+ "intermediate_size": 3072,
40
+ "is_decoder": false,
41
+ "is_encoder_decoder": false,
42
+ "label2id": {
43
+ "LABEL_0": 0,
44
+ "LABEL_1": 1
45
+ },
46
+ "layer_norm_eps": 1e-05,
47
+ "length_penalty": 1.0,
48
+ "max_length": 20,
49
+ "max_position_embeddings": 514,
50
+ "min_length": 0,
51
+ "model_type": "roberta",
52
+ "no_repeat_ngram_size": 0,
53
+ "num_attention_heads": 12,
54
+ "num_beam_groups": 1,
55
+ "num_beams": 1,
56
+ "num_hidden_layers": 12,
57
+ "num_return_sequences": 1,
58
+ "output_attentions": false,
59
+ "output_hidden_states": false,
60
+ "output_scores": false,
61
+ "pad_token_id": 1,
62
+ "position_embedding_type": "absolute",
63
+ "prefix": null,
64
+ "problem_type": null,
65
+ "pruned_heads": {},
66
+ "remove_invalid_values": false,
67
+ "repetition_penalty": 1.0,
68
+ "return_dict": true,
69
+ "return_dict_in_generate": false,
70
+ "sep_token_id": null,
71
+ "task_specific_params": null,
72
+ "temperature": 1.0,
73
+ "tie_encoder_decoder": false,
74
+ "tie_word_embeddings": true,
75
+ "tokenizer_class": null,
76
+ "top_k": 50,
77
+ "top_p": 1.0,
78
+ "torch_dtype": "float32",
79
+ "torchscript": false,
80
+ "transformers_version": "4.19.2",
81
+ "type_vocab_size": 1,
82
+ "typical_p": 1.0,
83
+ "use_bfloat16": false,
84
+ "use_cache": true,
85
+ "vocab_size": 50265
86
+ },
87
+ "torch_dtype": "float32",
88
+ "transformers_version": null,
89
+ "vision_config": {
90
+ "_name_or_path": "openai/clip-vit-base-patch32",
91
+ "add_cross_attention": false,
92
+ "architectures": null,
93
+ "attention_dropout": 0.0,
94
+ "bad_words_ids": null,
95
+ "bos_token_id": null,
96
+ "chunk_size_feed_forward": 0,
97
+ "cross_attention_hidden_size": null,
98
+ "decoder_start_token_id": null,
99
+ "diversity_penalty": 0.0,
100
+ "do_sample": false,
101
+ "dropout": 0.0,
102
+ "early_stopping": false,
103
+ "encoder_no_repeat_ngram_size": 0,
104
+ "eos_token_id": null,
105
+ "exponential_decay_length_penalty": null,
106
+ "finetuning_task": null,
107
+ "forced_bos_token_id": null,
108
+ "forced_eos_token_id": null,
109
+ "hidden_act": "quick_gelu",
110
+ "hidden_size": 768,
111
+ "id2label": {
112
+ "0": "LABEL_0",
113
+ "1": "LABEL_1"
114
+ },
115
+ "image_size": 224,
116
+ "initializer_factor": 1.0,
117
+ "initializer_range": 0.02,
118
+ "intermediate_size": 3072,
119
+ "is_decoder": false,
120
+ "is_encoder_decoder": false,
121
+ "label2id": {
122
+ "LABEL_0": 0,
123
+ "LABEL_1": 1
124
+ },
125
+ "layer_norm_eps": 1e-05,
126
+ "length_penalty": 1.0,
127
+ "max_length": 20,
128
+ "min_length": 0,
129
+ "model_type": "clip_vision_model",
130
+ "no_repeat_ngram_size": 0,
131
+ "num_attention_heads": 12,
132
+ "num_beam_groups": 1,
133
+ "num_beams": 1,
134
+ "num_hidden_layers": 12,
135
+ "num_return_sequences": 1,
136
+ "output_attentions": false,
137
+ "output_hidden_states": false,
138
+ "output_scores": false,
139
+ "pad_token_id": null,
140
+ "patch_size": 32,
141
+ "prefix": null,
142
+ "problem_type": null,
143
+ "pruned_heads": {},
144
+ "remove_invalid_values": false,
145
+ "repetition_penalty": 1.0,
146
+ "return_dict": true,
147
+ "return_dict_in_generate": false,
148
+ "sep_token_id": null,
149
+ "task_specific_params": null,
150
+ "temperature": 1.0,
151
+ "tie_encoder_decoder": false,
152
+ "tie_word_embeddings": true,
153
+ "tokenizer_class": null,
154
+ "top_k": 50,
155
+ "top_p": 1.0,
156
+ "torch_dtype": null,
157
+ "torchscript": false,
158
+ "transformers_version": "4.19.2",
159
+ "typical_p": 1.0,
160
+ "use_bfloat16": false
161
+ }
162
+ }
eval_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_loss": 2.7268519401550293,
4
+ "eval_runtime": 1402.9095,
5
+ "eval_samples_per_second": 17.7,
6
+ "eval_steps_per_second": 0.069
7
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9b2be2c521f53c610bf5e7299687862873c1eaef6b38fad9050693cf0d48077
3
+ size 851695707
runs/Jun09_17-05-49_9eca2fda50d1/1654794374.2161763/events.out.tfevents.1654794374.9eca2fda50d1.34053.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9b9abdbabd26f94056518438a628865aa979284ba2463ca8de65551d93496ce
3
+ size 5208
runs/Jun09_17-05-49_9eca2fda50d1/events.out.tfevents.1654794374.9eca2fda50d1.34053.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a80a1e9682ea74d85f7be074c55860e1af2bc3d191714a2f9fe5d6342b8f4948
3
+ size 7339
runs/Jun09_17-07-29_9eca2fda50d1/1654794463.3412402/events.out.tfevents.1654794463.9eca2fda50d1.34486.1 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:555dcc70d43b70f60be682b57d5656b69bc926899ad951565e215074544385b1
3
+ size 5208
runs/Jun09_17-07-29_9eca2fda50d1/events.out.tfevents.1654794463.9eca2fda50d1.34486.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:51ba3afda5ca6b335c5995cc8df23fd0977413b9bcf13249ce3c180273c1f5b3
3
+ size 7693
runs/Jun09_17-07-29_9eca2fda50d1/events.out.tfevents.1654800911.9eca2fda50d1.34486.2 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:12bb8a6f3d11b75218458f8cc283af6f6ab1d40fc8c30a48b3a79df9fb6d7022
3
+ size 311
train_results.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 1.5387164243717784,
4
+ "train_runtime": 5043.8105,
5
+ "train_samples_per_second": 14.638,
6
+ "train_steps_per_second": 0.058
7
+ }
trainer_state.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "global_step": 291,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 3.0,
12
+ "step": 291,
13
+ "total_flos": 9857580782400000.0,
14
+ "train_loss": 1.5387164243717784,
15
+ "train_runtime": 5043.8105,
16
+ "train_samples_per_second": 14.638,
17
+ "train_steps_per_second": 0.058
18
+ }
19
+ ],
20
+ "max_steps": 291,
21
+ "num_train_epochs": 3,
22
+ "total_flos": 9857580782400000.0,
23
+ "trial_name": null,
24
+ "trial_params": null
25
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c25d2efb4754daaf7fac41aa658c405d1444a3be6a3038531bbc578925dcaf9
3
+ size 3247