osmajic commited on
Commit
f8a9fb5
·
verified ·
1 Parent(s): 0e407f5

Model save

Browse files
Files changed (3) hide show
  1. README.md +59 -0
  2. config.json +242 -0
  3. preprocessor_config.json +1 -0
README.md ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/paligemma-3b-pt-224
3
+ library_name: peft
4
+ license: gemma
5
+ tags:
6
+ - generated_from_trainer
7
+ model-index:
8
+ - name: paligemma_scienceQA_v15
9
+ results: []
10
+ ---
11
+
12
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
13
+ should probably proofread and complete it, then remove this comment. -->
14
+
15
+ # paligemma_scienceQA_v15
16
+
17
+ This model is a fine-tuned version of [google/paligemma-3b-pt-224](https://huggingface.co/google/paligemma-3b-pt-224) on an unknown dataset.
18
+ It achieves the following results on the evaluation set:
19
+ - eval_loss: 0.1162
20
+ - eval_runtime: 61.0128
21
+ - eval_samples_per_second: 1.328
22
+ - eval_steps_per_second: 0.672
23
+ - epoch: 4.0
24
+ - step: 200
25
+
26
+ ## Model description
27
+
28
+ More information needed
29
+
30
+ ## Intended uses & limitations
31
+
32
+ More information needed
33
+
34
+ ## Training and evaluation data
35
+
36
+ More information needed
37
+
38
+ ## Training procedure
39
+
40
+ ### Training hyperparameters
41
+
42
+ The following hyperparameters were used during training:
43
+ - learning_rate: 1e-05
44
+ - train_batch_size: 2
45
+ - eval_batch_size: 2
46
+ - seed: 42
47
+ - gradient_accumulation_steps: 4
48
+ - total_train_batch_size: 8
49
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
50
+ - lr_scheduler_type: linear
51
+ - num_epochs: 10
52
+
53
+ ### Framework versions
54
+
55
+ - PEFT 0.12.0
56
+ - Transformers 4.43.3
57
+ - Pytorch 2.3.1+cu121
58
+ - Datasets 2.20.0
59
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,242 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "ignore_index": -100,
3
+ "image_token_index": 257152,
4
+ "projection_dim": 2048,
5
+ "hidden_size": 2048,
6
+ "vision_config": {
7
+ "return_dict": true,
8
+ "output_hidden_states": false,
9
+ "output_attentions": false,
10
+ "torchscript": false,
11
+ "torch_dtype": null,
12
+ "use_bfloat16": false,
13
+ "tf_legacy_loss": false,
14
+ "pruned_heads": {},
15
+ "tie_word_embeddings": true,
16
+ "chunk_size_feed_forward": 0,
17
+ "is_encoder_decoder": false,
18
+ "is_decoder": false,
19
+ "cross_attention_hidden_size": null,
20
+ "add_cross_attention": false,
21
+ "tie_encoder_decoder": false,
22
+ "max_length": 20,
23
+ "min_length": 0,
24
+ "do_sample": false,
25
+ "early_stopping": false,
26
+ "num_beams": 1,
27
+ "num_beam_groups": 1,
28
+ "diversity_penalty": 0.0,
29
+ "temperature": 1.0,
30
+ "top_k": 50,
31
+ "top_p": 1.0,
32
+ "typical_p": 1.0,
33
+ "repetition_penalty": 1.0,
34
+ "length_penalty": 1.0,
35
+ "no_repeat_ngram_size": 0,
36
+ "encoder_no_repeat_ngram_size": 0,
37
+ "bad_words_ids": null,
38
+ "num_return_sequences": 1,
39
+ "output_scores": false,
40
+ "return_dict_in_generate": false,
41
+ "forced_bos_token_id": null,
42
+ "forced_eos_token_id": null,
43
+ "remove_invalid_values": false,
44
+ "exponential_decay_length_penalty": null,
45
+ "suppress_tokens": null,
46
+ "begin_suppress_tokens": null,
47
+ "architectures": null,
48
+ "finetuning_task": null,
49
+ "id2label": {
50
+ "0": "LABEL_0",
51
+ "1": "LABEL_1"
52
+ },
53
+ "label2id": {
54
+ "LABEL_0": 0,
55
+ "LABEL_1": 1
56
+ },
57
+ "tokenizer_class": null,
58
+ "prefix": null,
59
+ "bos_token_id": null,
60
+ "pad_token_id": null,
61
+ "eos_token_id": null,
62
+ "sep_token_id": null,
63
+ "decoder_start_token_id": null,
64
+ "task_specific_params": null,
65
+ "problem_type": null,
66
+ "_name_or_path": "",
67
+ "model_type": "siglip_vision_model",
68
+ "num_image_tokens": 256,
69
+ "projection_dim": 2048,
70
+ "projector_hidden_act": "gelu_fast",
71
+ "vision_use_head": false,
72
+ "hidden_size": 1152,
73
+ "intermediate_size": 4304,
74
+ "num_hidden_layers": 27,
75
+ "num_attention_heads": 16,
76
+ "num_channels": 3,
77
+ "patch_size": 14,
78
+ "image_size": 224,
79
+ "attention_dropout": 0.0,
80
+ "layer_norm_eps": 1e-06,
81
+ "hidden_act": "gelu_pytorch_tanh"
82
+ },
83
+ "is_encoder_decoder": false,
84
+ "text_config": {
85
+ "vocab_size": 257216,
86
+ "max_position_embeddings": 8192,
87
+ "hidden_size": 2048,
88
+ "intermediate_size": 16384,
89
+ "num_hidden_layers": 18,
90
+ "num_attention_heads": 8,
91
+ "head_dim": 256,
92
+ "num_key_value_heads": 1,
93
+ "hidden_act": "gelu_pytorch_tanh",
94
+ "hidden_activation": null,
95
+ "initializer_range": 0.02,
96
+ "rms_norm_eps": 1e-06,
97
+ "use_cache": true,
98
+ "rope_theta": 10000.0,
99
+ "attention_bias": false,
100
+ "attention_dropout": 0.0,
101
+ "return_dict": true,
102
+ "output_hidden_states": false,
103
+ "output_attentions": false,
104
+ "torchscript": false,
105
+ "torch_dtype": "float32",
106
+ "use_bfloat16": false,
107
+ "tf_legacy_loss": false,
108
+ "pruned_heads": {},
109
+ "tie_word_embeddings": true,
110
+ "chunk_size_feed_forward": 0,
111
+ "is_encoder_decoder": false,
112
+ "is_decoder": false,
113
+ "cross_attention_hidden_size": null,
114
+ "add_cross_attention": false,
115
+ "tie_encoder_decoder": false,
116
+ "max_length": 20,
117
+ "min_length": 0,
118
+ "do_sample": false,
119
+ "early_stopping": false,
120
+ "num_beams": 1,
121
+ "num_beam_groups": 1,
122
+ "diversity_penalty": 0.0,
123
+ "temperature": 1.0,
124
+ "top_k": 50,
125
+ "top_p": 1.0,
126
+ "typical_p": 1.0,
127
+ "repetition_penalty": 1.0,
128
+ "length_penalty": 1.0,
129
+ "no_repeat_ngram_size": 0,
130
+ "encoder_no_repeat_ngram_size": 0,
131
+ "bad_words_ids": null,
132
+ "num_return_sequences": 1,
133
+ "output_scores": false,
134
+ "return_dict_in_generate": false,
135
+ "forced_bos_token_id": null,
136
+ "forced_eos_token_id": null,
137
+ "remove_invalid_values": false,
138
+ "exponential_decay_length_penalty": null,
139
+ "suppress_tokens": null,
140
+ "begin_suppress_tokens": null,
141
+ "architectures": null,
142
+ "finetuning_task": null,
143
+ "id2label": {
144
+ "0": "LABEL_0",
145
+ "1": "LABEL_1"
146
+ },
147
+ "label2id": {
148
+ "LABEL_0": 0,
149
+ "LABEL_1": 1
150
+ },
151
+ "tokenizer_class": null,
152
+ "prefix": null,
153
+ "bos_token_id": 2,
154
+ "pad_token_id": 0,
155
+ "eos_token_id": 1,
156
+ "sep_token_id": null,
157
+ "decoder_start_token_id": null,
158
+ "task_specific_params": null,
159
+ "problem_type": null,
160
+ "_name_or_path": "",
161
+ "model_type": "gemma",
162
+ "num_image_tokens": 256
163
+ },
164
+ "return_dict": true,
165
+ "output_hidden_states": false,
166
+ "output_attentions": false,
167
+ "torchscript": false,
168
+ "torch_dtype": "float32",
169
+ "use_bfloat16": false,
170
+ "tf_legacy_loss": false,
171
+ "pruned_heads": {},
172
+ "tie_word_embeddings": true,
173
+ "chunk_size_feed_forward": 0,
174
+ "is_decoder": false,
175
+ "cross_attention_hidden_size": null,
176
+ "add_cross_attention": false,
177
+ "tie_encoder_decoder": false,
178
+ "max_length": 20,
179
+ "min_length": 0,
180
+ "do_sample": false,
181
+ "early_stopping": false,
182
+ "num_beams": 1,
183
+ "num_beam_groups": 1,
184
+ "diversity_penalty": 0.0,
185
+ "temperature": 1.0,
186
+ "top_k": 50,
187
+ "top_p": 1.0,
188
+ "typical_p": 1.0,
189
+ "repetition_penalty": 1.0,
190
+ "length_penalty": 1.0,
191
+ "no_repeat_ngram_size": 0,
192
+ "encoder_no_repeat_ngram_size": 0,
193
+ "bad_words_ids": null,
194
+ "num_return_sequences": 1,
195
+ "output_scores": false,
196
+ "return_dict_in_generate": false,
197
+ "forced_bos_token_id": null,
198
+ "forced_eos_token_id": null,
199
+ "remove_invalid_values": false,
200
+ "exponential_decay_length_penalty": null,
201
+ "suppress_tokens": null,
202
+ "begin_suppress_tokens": null,
203
+ "architectures": [
204
+ "PaliGemmaForConditionalGeneration"
205
+ ],
206
+ "finetuning_task": null,
207
+ "id2label": {
208
+ "0": "LABEL_0",
209
+ "1": "LABEL_1"
210
+ },
211
+ "label2id": {
212
+ "LABEL_0": 0,
213
+ "LABEL_1": 1
214
+ },
215
+ "tokenizer_class": null,
216
+ "prefix": null,
217
+ "bos_token_id": 2,
218
+ "pad_token_id": 0,
219
+ "eos_token_id": 1,
220
+ "sep_token_id": null,
221
+ "decoder_start_token_id": null,
222
+ "task_specific_params": null,
223
+ "problem_type": null,
224
+ "_name_or_path": "google/paligemma-3b-pt-224",
225
+ "transformers_version": "4.43.3",
226
+ "model_type": "paligemma",
227
+ "quantization_config": {
228
+ "quant_method": "bitsandbytes",
229
+ "_load_in_8bit": false,
230
+ "_load_in_4bit": true,
231
+ "llm_int8_threshold": 6.0,
232
+ "llm_int8_skip_modules": null,
233
+ "llm_int8_enable_fp32_cpu_offload": false,
234
+ "llm_int8_has_fp16_weight": false,
235
+ "bnb_4bit_quant_type": "nf4",
236
+ "bnb_4bit_use_double_quant": false,
237
+ "bnb_4bit_compute_dtype": "bfloat16",
238
+ "bnb_4bit_quant_storage": "uint8",
239
+ "load_in_4bit": true,
240
+ "load_in_8bit": false
241
+ }
242
+ }
preprocessor_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"chat_template": null, "processor_class": "PaliGemmaProcessor"}