abhishek HF staff commited on
Commit
1b387ea
1 Parent(s): 9041151

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - autotrain
4
+ - text-generation-inference
5
+ - image-text-to-text
6
+ - text-generation
7
+ - peft
8
+ library_name: transformers
9
+ base_model: google/paligemma-3b-pt-224
10
+ license: other
11
+ datasets:
12
+ - abhishek/vqa_small
13
+ ---
14
+
15
+ # Model Trained Using AutoTrain
16
+
17
+ This model was trained using AutoTrain. For more information, please visit [AutoTrain](https://hf.co/docs/autotrain).
18
+
19
+ # Usage
adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/paligemma-3b-pt-224",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 32,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "out_proj",
24
+ "gate_proj",
25
+ "q_proj",
26
+ "down_proj",
27
+ "lm_head",
28
+ "linear",
29
+ "fc1",
30
+ "v_proj",
31
+ "k_proj",
32
+ "fc2",
33
+ "up_proj",
34
+ "o_proj"
35
+ ],
36
+ "task_type": "CAUSAL_LM",
37
+ "use_dora": false,
38
+ "use_rslora": false
39
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f76d132961c6ca6b2420542b5d24225dc99daf883a89dddc4b7925b8e10a2bff
3
+ size 2237231056
checkpoint-375/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: google/paligemma-3b-pt-224
3
+ library_name: peft
4
+ ---
5
+
6
+ # Model Card for Model ID
7
+
8
+ <!-- Provide a quick summary of what the model is/does. -->
9
+
10
+
11
+
12
+ ## Model Details
13
+
14
+ ### Model Description
15
+
16
+ <!-- Provide a longer summary of what this model is. -->
17
+
18
+
19
+
20
+ - **Developed by:** [More Information Needed]
21
+ - **Funded by [optional]:** [More Information Needed]
22
+ - **Shared by [optional]:** [More Information Needed]
23
+ - **Model type:** [More Information Needed]
24
+ - **Language(s) (NLP):** [More Information Needed]
25
+ - **License:** [More Information Needed]
26
+ - **Finetuned from model [optional]:** [More Information Needed]
27
+
28
+ ### Model Sources [optional]
29
+
30
+ <!-- Provide the basic links for the model. -->
31
+
32
+ - **Repository:** [More Information Needed]
33
+ - **Paper [optional]:** [More Information Needed]
34
+ - **Demo [optional]:** [More Information Needed]
35
+
36
+ ## Uses
37
+
38
+ <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
39
+
40
+ ### Direct Use
41
+
42
+ <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
43
+
44
+ [More Information Needed]
45
+
46
+ ### Downstream Use [optional]
47
+
48
+ <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
49
+
50
+ [More Information Needed]
51
+
52
+ ### Out-of-Scope Use
53
+
54
+ <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
55
+
56
+ [More Information Needed]
57
+
58
+ ## Bias, Risks, and Limitations
59
+
60
+ <!-- This section is meant to convey both technical and sociotechnical limitations. -->
61
+
62
+ [More Information Needed]
63
+
64
+ ### Recommendations
65
+
66
+ <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
67
+
68
+ Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
69
+
70
+ ## How to Get Started with the Model
71
+
72
+ Use the code below to get started with the model.
73
+
74
+ [More Information Needed]
75
+
76
+ ## Training Details
77
+
78
+ ### Training Data
79
+
80
+ <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
81
+
82
+ [More Information Needed]
83
+
84
+ ### Training Procedure
85
+
86
+ <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
87
+
88
+ #### Preprocessing [optional]
89
+
90
+ [More Information Needed]
91
+
92
+
93
+ #### Training Hyperparameters
94
+
95
+ - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
96
+
97
+ #### Speeds, Sizes, Times [optional]
98
+
99
+ <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
100
+
101
+ [More Information Needed]
102
+
103
+ ## Evaluation
104
+
105
+ <!-- This section describes the evaluation protocols and provides the results. -->
106
+
107
+ ### Testing Data, Factors & Metrics
108
+
109
+ #### Testing Data
110
+
111
+ <!-- This should link to a Dataset Card if possible. -->
112
+
113
+ [More Information Needed]
114
+
115
+ #### Factors
116
+
117
+ <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
118
+
119
+ [More Information Needed]
120
+
121
+ #### Metrics
122
+
123
+ <!-- These are the evaluation metrics being used, ideally with a description of why. -->
124
+
125
+ [More Information Needed]
126
+
127
+ ### Results
128
+
129
+ [More Information Needed]
130
+
131
+ #### Summary
132
+
133
+
134
+
135
+ ## Model Examination [optional]
136
+
137
+ <!-- Relevant interpretability work for the model goes here -->
138
+
139
+ [More Information Needed]
140
+
141
+ ## Environmental Impact
142
+
143
+ <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
144
+
145
+ Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
146
+
147
+ - **Hardware Type:** [More Information Needed]
148
+ - **Hours used:** [More Information Needed]
149
+ - **Cloud Provider:** [More Information Needed]
150
+ - **Compute Region:** [More Information Needed]
151
+ - **Carbon Emitted:** [More Information Needed]
152
+
153
+ ## Technical Specifications [optional]
154
+
155
+ ### Model Architecture and Objective
156
+
157
+ [More Information Needed]
158
+
159
+ ### Compute Infrastructure
160
+
161
+ [More Information Needed]
162
+
163
+ #### Hardware
164
+
165
+ [More Information Needed]
166
+
167
+ #### Software
168
+
169
+ [More Information Needed]
170
+
171
+ ## Citation [optional]
172
+
173
+ <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
174
+
175
+ **BibTeX:**
176
+
177
+ [More Information Needed]
178
+
179
+ **APA:**
180
+
181
+ [More Information Needed]
182
+
183
+ ## Glossary [optional]
184
+
185
+ <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
186
+
187
+ [More Information Needed]
188
+
189
+ ## More Information [optional]
190
+
191
+ [More Information Needed]
192
+
193
+ ## Model Card Authors [optional]
194
+
195
+ [More Information Needed]
196
+
197
+ ## Model Card Contact
198
+
199
+ [More Information Needed]
200
+ ### Framework versions
201
+
202
+ - PEFT 0.11.1
checkpoint-375/adapter_config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "google/paligemma-3b-pt-224",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": true,
8
+ "init_lora_weights": true,
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 32,
14
+ "lora_dropout": 0.05,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 16,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "out_proj",
24
+ "gate_proj",
25
+ "q_proj",
26
+ "down_proj",
27
+ "lm_head",
28
+ "linear",
29
+ "fc1",
30
+ "v_proj",
31
+ "k_proj",
32
+ "fc2",
33
+ "up_proj",
34
+ "o_proj"
35
+ ],
36
+ "task_type": "CAUSAL_LM",
37
+ "use_dora": false,
38
+ "use_rslora": false
39
+ }
checkpoint-375/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f76d132961c6ca6b2420542b5d24225dc99daf883a89dddc4b7925b8e10a2bff
3
+ size 2237231056
checkpoint-375/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f1e351e175d52d45c91df6ba2af877dd108b58d0713fd37fb85fbeb5285604cd
3
+ size 190292282
checkpoint-375/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:40dd10453491a5e0534f4a7742924919ec1bfe4affa9ce237c2deb4e764f2302
3
+ size 14244
checkpoint-375/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:048eb1b2749cc837959436178b94ff7ddbedc471e5b68efde70aa0f283323e9b
3
+ size 1064
checkpoint-375/trainer_state.json ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.8111211061477661,
3
+ "best_model_checkpoint": "autotrain-paligemma-finetuned-vqa/checkpoint-375",
4
+ "epoch": 3.0,
5
+ "eval_steps": 500,
6
+ "global_step": 375,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.2,
13
+ "grad_norm": 5.544835567474365,
14
+ "learning_rate": 1.3157894736842108e-05,
15
+ "loss": 1.6534,
16
+ "step": 25
17
+ },
18
+ {
19
+ "epoch": 0.4,
20
+ "grad_norm": 6.025909423828125,
21
+ "learning_rate": 1.9287833827893176e-05,
22
+ "loss": 1.6205,
23
+ "step": 50
24
+ },
25
+ {
26
+ "epoch": 0.6,
27
+ "grad_norm": 8.462043762207031,
28
+ "learning_rate": 1.7804154302670624e-05,
29
+ "loss": 1.1119,
30
+ "step": 75
31
+ },
32
+ {
33
+ "epoch": 0.8,
34
+ "grad_norm": 3.2696471214294434,
35
+ "learning_rate": 1.6320474777448072e-05,
36
+ "loss": 0.7722,
37
+ "step": 100
38
+ },
39
+ {
40
+ "epoch": 1.0,
41
+ "grad_norm": 5.208315372467041,
42
+ "learning_rate": 1.483679525222552e-05,
43
+ "loss": 0.8746,
44
+ "step": 125
45
+ },
46
+ {
47
+ "epoch": 1.0,
48
+ "eval_loss": 0.912371039390564,
49
+ "eval_runtime": 24.3232,
50
+ "eval_samples_per_second": 10.278,
51
+ "eval_steps_per_second": 5.139,
52
+ "step": 125
53
+ },
54
+ {
55
+ "epoch": 1.2,
56
+ "grad_norm": 3.5270237922668457,
57
+ "learning_rate": 1.3353115727002968e-05,
58
+ "loss": 0.6841,
59
+ "step": 150
60
+ },
61
+ {
62
+ "epoch": 1.4,
63
+ "grad_norm": 3.0572621822357178,
64
+ "learning_rate": 1.1869436201780416e-05,
65
+ "loss": 0.7057,
66
+ "step": 175
67
+ },
68
+ {
69
+ "epoch": 1.6,
70
+ "grad_norm": 5.3405561447143555,
71
+ "learning_rate": 1.0385756676557866e-05,
72
+ "loss": 0.6459,
73
+ "step": 200
74
+ },
75
+ {
76
+ "epoch": 1.8,
77
+ "grad_norm": 4.48429012298584,
78
+ "learning_rate": 8.902077151335312e-06,
79
+ "loss": 0.6645,
80
+ "step": 225
81
+ },
82
+ {
83
+ "epoch": 2.0,
84
+ "grad_norm": 4.817482948303223,
85
+ "learning_rate": 7.41839762611276e-06,
86
+ "loss": 0.6855,
87
+ "step": 250
88
+ },
89
+ {
90
+ "epoch": 2.0,
91
+ "eval_loss": 0.827422022819519,
92
+ "eval_runtime": 24.2956,
93
+ "eval_samples_per_second": 10.29,
94
+ "eval_steps_per_second": 5.145,
95
+ "step": 250
96
+ },
97
+ {
98
+ "epoch": 2.2,
99
+ "grad_norm": 3.3924331665039062,
100
+ "learning_rate": 5.934718100890208e-06,
101
+ "loss": 0.5572,
102
+ "step": 275
103
+ },
104
+ {
105
+ "epoch": 2.4,
106
+ "grad_norm": 8.049240112304688,
107
+ "learning_rate": 4.451038575667656e-06,
108
+ "loss": 0.5909,
109
+ "step": 300
110
+ },
111
+ {
112
+ "epoch": 2.6,
113
+ "grad_norm": 3.2632410526275635,
114
+ "learning_rate": 2.967359050445104e-06,
115
+ "loss": 0.6251,
116
+ "step": 325
117
+ },
118
+ {
119
+ "epoch": 2.8,
120
+ "grad_norm": 6.481785297393799,
121
+ "learning_rate": 1.483679525222552e-06,
122
+ "loss": 0.4504,
123
+ "step": 350
124
+ },
125
+ {
126
+ "epoch": 3.0,
127
+ "grad_norm": 6.444954872131348,
128
+ "learning_rate": 5.934718100890208e-08,
129
+ "loss": 0.6476,
130
+ "step": 375
131
+ },
132
+ {
133
+ "epoch": 3.0,
134
+ "eval_loss": 0.8111211061477661,
135
+ "eval_runtime": 24.2844,
136
+ "eval_samples_per_second": 10.295,
137
+ "eval_steps_per_second": 5.147,
138
+ "step": 375
139
+ }
140
+ ],
141
+ "logging_steps": 25,
142
+ "max_steps": 375,
143
+ "num_input_tokens_seen": 0,
144
+ "num_train_epochs": 3,
145
+ "save_steps": 500,
146
+ "stateful_callbacks": {
147
+ "TrainerControl": {
148
+ "args": {
149
+ "should_epoch_stop": false,
150
+ "should_evaluate": false,
151
+ "should_log": false,
152
+ "should_save": true,
153
+ "should_training_stop": true
154
+ },
155
+ "attributes": {}
156
+ }
157
+ },
158
+ "total_flos": 1.1793929907551424e+16,
159
+ "train_batch_size": 2,
160
+ "trial_name": null,
161
+ "trial_params": null
162
+ }
checkpoint-375/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41f28921e86366c18209a12c589c30a7e6804d8653c1ae08569de9ae968eac56
3
+ size 5240
runs/Jul24_07-26-22_beast/events.out.tfevents.1721798919.beast.937151.0 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9a597ba8e4499d7bbb5139f74d07eb8c60cac471bc0fbccb9f4d43c85e45e28a
3
- size 9057
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:af6031ef8b3f9e8aad5a4c9b5d9b5bb793477c3efacd0874946f2a61ccea6db2
3
+ size 10104
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41f28921e86366c18209a12c589c30a7e6804d8653c1ae08569de9ae968eac56
3
+ size 5240
training_params.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model": "google/paligemma-3b-pt-224",
3
+ "project_name": "autotrain-paligemma-finetuned-vqa",
4
+ "data_path": "abhishek/vqa_small",
5
+ "train_split": "train",
6
+ "valid_split": "validation",
7
+ "trainer": "vqa",
8
+ "log": "tensorboard",
9
+ "disable_gradient_checkpointing": false,
10
+ "logging_steps": -1,
11
+ "eval_strategy": "epoch",
12
+ "save_total_limit": 1,
13
+ "auto_find_batch_size": false,
14
+ "mixed_precision": "fp16",
15
+ "lr": 2e-05,
16
+ "epochs": 3,
17
+ "batch_size": 2,
18
+ "warmup_ratio": 0.1,
19
+ "gradient_accumulation": 4,
20
+ "optimizer": "adamw_torch",
21
+ "scheduler": "linear",
22
+ "weight_decay": 0.0,
23
+ "max_grad_norm": 1.0,
24
+ "seed": 42,
25
+ "quantization": "int4",
26
+ "target_modules": "all-linear",
27
+ "peft": true,
28
+ "lora_r": 16,
29
+ "lora_alpha": 32,
30
+ "lora_dropout": 0.05,
31
+ "image_column": "image",
32
+ "text_column": "multiple_choice_answer",
33
+ "prompt_text_column": "question",
34
+ "push_to_hub": true,
35
+ "username": "abhishek"
36
+ }