emendes3 commited on
Commit
b91b9ce
1 Parent(s): c78c498

End of training

Browse files
README.md ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: peft
3
+ tags:
4
+ - generated_from_trainer
5
+ base_model: liuhaotian/llava-v1.5-13b
6
+ model-index:
7
+ - name: llava_13b_exact_location_name
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
+ # llava_13b_exact_location_name
15
+
16
+ This model is a fine-tuned version of [liuhaotian/llava-v1.5-13b](https://huggingface.co/liuhaotian/llava-v1.5-13b) on an unknown dataset.
17
+ It achieves the following results on the evaluation set:
18
+ - Loss: 1.4937
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: 0.0002
38
+ - train_batch_size: 4
39
+ - eval_batch_size: 4
40
+ - seed: 42
41
+ - distributed_type: multi-GPU
42
+ - num_devices: 8
43
+ - total_train_batch_size: 32
44
+ - total_eval_batch_size: 32
45
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
46
+ - lr_scheduler_type: cosine
47
+ - lr_scheduler_warmup_ratio: 0.03
48
+ - num_epochs: 5.0
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss |
53
+ |:-------------:|:-----:|:----:|:---------------:|
54
+ | 0.8797 | 1.0 | 9 | 1.0175 |
55
+ | 0.22 | 2.0 | 18 | 1.1250 |
56
+ | 0.0773 | 3.0 | 27 | 1.1863 |
57
+ | 0.0264 | 4.0 | 36 | 1.4006 |
58
+ | 0.0141 | 5.0 | 45 | 1.4937 |
59
+
60
+
61
+ ### Framework versions
62
+
63
+ - PEFT 0.10.0
64
+ - Transformers 4.37.2
65
+ - Pytorch 2.1.2+cu121
66
+ - Tokenizers 0.15.1
adapter_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "liuhaotian/llava-v1.5-13b",
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": 256,
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": 128,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": [
23
+ "o_proj",
24
+ "gate_proj",
25
+ "up_proj",
26
+ "k_proj",
27
+ "v_proj",
28
+ "down_proj",
29
+ "q_proj"
30
+ ],
31
+ "task_type": "CAUSAL_LM",
32
+ "use_dora": false,
33
+ "use_rslora": false
34
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b59ed4aa119501a9ccc276ab4dee589585535a94338d36d45477f511b84c2471
3
+ size 1001466944
config.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "liuhaotian/llava-v1.5-13b",
3
+ "architectures": [
4
+ "LlavaLlamaForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 1,
9
+ "eos_token_id": 2,
10
+ "freeze_mm_mlp_adapter": false,
11
+ "freeze_mm_vision_resampler": false,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 5120,
14
+ "image_aspect_ratio": "pad",
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 13824,
17
+ "max_length": 4096,
18
+ "max_position_embeddings": 4096,
19
+ "mm_hidden_size": 1024,
20
+ "mm_patch_merge_type": "flat",
21
+ "mm_projector_lr": 2e-05,
22
+ "mm_projector_type": "mlp2x_gelu",
23
+ "mm_resampler_type": null,
24
+ "mm_use_im_patch_token": false,
25
+ "mm_use_im_start_end": false,
26
+ "mm_vision_select_feature": "patch",
27
+ "mm_vision_select_layer": -2,
28
+ "mm_vision_tower": "openai/clip-vit-large-patch14-336",
29
+ "model_type": "llava_llama",
30
+ "num_attention_heads": 40,
31
+ "num_hidden_layers": 40,
32
+ "num_key_value_heads": 40,
33
+ "pad_token_id": 0,
34
+ "pretraining_tp": 1,
35
+ "quantization_config": {
36
+ "bnb_4bit_compute_dtype": "bfloat16",
37
+ "bnb_4bit_quant_type": "nf4",
38
+ "bnb_4bit_use_double_quant": true,
39
+ "llm_int8_enable_fp32_cpu_offload": false,
40
+ "llm_int8_has_fp16_weight": false,
41
+ "llm_int8_skip_modules": [
42
+ "mm_projector"
43
+ ],
44
+ "llm_int8_threshold": 6.0,
45
+ "load_in_4bit": true,
46
+ "load_in_8bit": false,
47
+ "quant_method": "bitsandbytes"
48
+ },
49
+ "rms_norm_eps": 1e-05,
50
+ "rope_scaling": null,
51
+ "rope_theta": 10000.0,
52
+ "tie_word_embeddings": false,
53
+ "tokenizer_model_max_length": 2048,
54
+ "tokenizer_padding_side": "right",
55
+ "torch_dtype": "bfloat16",
56
+ "transformers_version": "4.37.2",
57
+ "tune_mm_mlp_adapter": false,
58
+ "tune_mm_vision_resampler": false,
59
+ "unfreeze_mm_vision_tower": false,
60
+ "use_cache": true,
61
+ "use_mm_proj": true,
62
+ "vocab_size": 32000
63
+ }
non_lora_trainables.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d68ddfe6ce0358ed97665d43ab246ef5884bd28da1ad884819ce894242a22ee8
3
+ size 62937264
special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<unk>",
17
+ "unk_token": {
18
+ "content": "<unk>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e556afd44213b6bd1be2b850ebbbd98f5481437a8021afaf58ee7fb1818d347
3
+ size 499723
tokenizer_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<unk>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ }
29
+ },
30
+ "bos_token": "<s>",
31
+ "clean_up_tokenization_spaces": false,
32
+ "eos_token": "</s>",
33
+ "legacy": false,
34
+ "model_max_length": 2048,
35
+ "pad_token": "<unk>",
36
+ "padding_side": "right",
37
+ "sp_model_kwargs": {},
38
+ "spaces_between_special_tokens": false,
39
+ "tokenizer_class": "LlamaTokenizer",
40
+ "unk_token": "<unk>",
41
+ "use_default_system_prompt": false
42
+ }
trainer_state.json ADDED
@@ -0,0 +1,340 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 5.0,
5
+ "eval_steps": 500,
6
+ "global_step": 45,
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.11,
13
+ "learning_rate": 0.0,
14
+ "loss": 1.8695,
15
+ "step": 1
16
+ },
17
+ {
18
+ "epoch": 0.22,
19
+ "learning_rate": 0.0002,
20
+ "loss": 1.3248,
21
+ "step": 2
22
+ },
23
+ {
24
+ "epoch": 0.33,
25
+ "learning_rate": 0.0002,
26
+ "loss": 1.4428,
27
+ "step": 3
28
+ },
29
+ {
30
+ "epoch": 0.44,
31
+ "learning_rate": 0.0002,
32
+ "loss": 1.204,
33
+ "step": 4
34
+ },
35
+ {
36
+ "epoch": 0.56,
37
+ "learning_rate": 0.0002,
38
+ "loss": 1.1179,
39
+ "step": 5
40
+ },
41
+ {
42
+ "epoch": 0.67,
43
+ "learning_rate": 0.0002,
44
+ "loss": 1.0217,
45
+ "step": 6
46
+ },
47
+ {
48
+ "epoch": 0.78,
49
+ "learning_rate": 0.0002,
50
+ "loss": 0.9761,
51
+ "step": 7
52
+ },
53
+ {
54
+ "epoch": 0.89,
55
+ "learning_rate": 0.0002,
56
+ "loss": 0.8376,
57
+ "step": 8
58
+ },
59
+ {
60
+ "epoch": 1.0,
61
+ "learning_rate": 0.0002,
62
+ "loss": 0.8797,
63
+ "step": 9
64
+ },
65
+ {
66
+ "epoch": 1.0,
67
+ "eval_loss": 1.0174624919891357,
68
+ "eval_runtime": 5.018,
69
+ "eval_samples_per_second": 9.964,
70
+ "eval_steps_per_second": 0.399,
71
+ "step": 9
72
+ },
73
+ {
74
+ "epoch": 1.11,
75
+ "learning_rate": 0.0002,
76
+ "loss": 0.6636,
77
+ "step": 10
78
+ },
79
+ {
80
+ "epoch": 1.22,
81
+ "learning_rate": 0.0002,
82
+ "loss": 0.4811,
83
+ "step": 11
84
+ },
85
+ {
86
+ "epoch": 1.33,
87
+ "learning_rate": 0.0002,
88
+ "loss": 0.4625,
89
+ "step": 12
90
+ },
91
+ {
92
+ "epoch": 1.44,
93
+ "learning_rate": 0.0002,
94
+ "loss": 0.522,
95
+ "step": 13
96
+ },
97
+ {
98
+ "epoch": 1.56,
99
+ "learning_rate": 0.0002,
100
+ "loss": 0.4689,
101
+ "step": 14
102
+ },
103
+ {
104
+ "epoch": 1.67,
105
+ "learning_rate": 0.0002,
106
+ "loss": 0.4543,
107
+ "step": 15
108
+ },
109
+ {
110
+ "epoch": 1.78,
111
+ "learning_rate": 0.0002,
112
+ "loss": 0.3022,
113
+ "step": 16
114
+ },
115
+ {
116
+ "epoch": 1.89,
117
+ "learning_rate": 0.0002,
118
+ "loss": 0.2695,
119
+ "step": 17
120
+ },
121
+ {
122
+ "epoch": 2.0,
123
+ "learning_rate": 0.0002,
124
+ "loss": 0.22,
125
+ "step": 18
126
+ },
127
+ {
128
+ "epoch": 2.0,
129
+ "eval_loss": 1.1250392198562622,
130
+ "eval_runtime": 5.1452,
131
+ "eval_samples_per_second": 9.718,
132
+ "eval_steps_per_second": 0.389,
133
+ "step": 18
134
+ },
135
+ {
136
+ "epoch": 2.11,
137
+ "learning_rate": 0.0002,
138
+ "loss": 0.1562,
139
+ "step": 19
140
+ },
141
+ {
142
+ "epoch": 2.22,
143
+ "learning_rate": 0.0002,
144
+ "loss": 0.1062,
145
+ "step": 20
146
+ },
147
+ {
148
+ "epoch": 2.33,
149
+ "learning_rate": 0.0002,
150
+ "loss": 0.1022,
151
+ "step": 21
152
+ },
153
+ {
154
+ "epoch": 2.44,
155
+ "learning_rate": 0.0002,
156
+ "loss": 0.1248,
157
+ "step": 22
158
+ },
159
+ {
160
+ "epoch": 2.56,
161
+ "learning_rate": 0.0002,
162
+ "loss": 0.0905,
163
+ "step": 23
164
+ },
165
+ {
166
+ "epoch": 2.67,
167
+ "learning_rate": 0.0002,
168
+ "loss": 0.0529,
169
+ "step": 24
170
+ },
171
+ {
172
+ "epoch": 2.78,
173
+ "learning_rate": 0.0002,
174
+ "loss": 0.0931,
175
+ "step": 25
176
+ },
177
+ {
178
+ "epoch": 2.89,
179
+ "learning_rate": 0.0002,
180
+ "loss": 0.0967,
181
+ "step": 26
182
+ },
183
+ {
184
+ "epoch": 3.0,
185
+ "learning_rate": 0.0002,
186
+ "loss": 0.0773,
187
+ "step": 27
188
+ },
189
+ {
190
+ "epoch": 3.0,
191
+ "eval_loss": 1.1862624883651733,
192
+ "eval_runtime": 5.0654,
193
+ "eval_samples_per_second": 9.871,
194
+ "eval_steps_per_second": 0.395,
195
+ "step": 27
196
+ },
197
+ {
198
+ "epoch": 3.11,
199
+ "learning_rate": 0.0002,
200
+ "loss": 0.0356,
201
+ "step": 28
202
+ },
203
+ {
204
+ "epoch": 3.22,
205
+ "learning_rate": 0.0002,
206
+ "loss": 0.0332,
207
+ "step": 29
208
+ },
209
+ {
210
+ "epoch": 3.33,
211
+ "learning_rate": 0.0002,
212
+ "loss": 0.0408,
213
+ "step": 30
214
+ },
215
+ {
216
+ "epoch": 3.44,
217
+ "learning_rate": 0.0002,
218
+ "loss": 0.0269,
219
+ "step": 31
220
+ },
221
+ {
222
+ "epoch": 3.56,
223
+ "learning_rate": 0.0002,
224
+ "loss": 0.0322,
225
+ "step": 32
226
+ },
227
+ {
228
+ "epoch": 3.67,
229
+ "learning_rate": 0.0002,
230
+ "loss": 0.0323,
231
+ "step": 33
232
+ },
233
+ {
234
+ "epoch": 3.78,
235
+ "learning_rate": 0.0002,
236
+ "loss": 0.0271,
237
+ "step": 34
238
+ },
239
+ {
240
+ "epoch": 3.89,
241
+ "learning_rate": 0.0002,
242
+ "loss": 0.0388,
243
+ "step": 35
244
+ },
245
+ {
246
+ "epoch": 4.0,
247
+ "learning_rate": 0.0002,
248
+ "loss": 0.0264,
249
+ "step": 36
250
+ },
251
+ {
252
+ "epoch": 4.0,
253
+ "eval_loss": 1.400640845298767,
254
+ "eval_runtime": 5.1318,
255
+ "eval_samples_per_second": 9.743,
256
+ "eval_steps_per_second": 0.39,
257
+ "step": 36
258
+ },
259
+ {
260
+ "epoch": 4.11,
261
+ "learning_rate": 0.0002,
262
+ "loss": 0.0098,
263
+ "step": 37
264
+ },
265
+ {
266
+ "epoch": 4.22,
267
+ "learning_rate": 0.0002,
268
+ "loss": 0.0166,
269
+ "step": 38
270
+ },
271
+ {
272
+ "epoch": 4.33,
273
+ "learning_rate": 0.0002,
274
+ "loss": 0.0182,
275
+ "step": 39
276
+ },
277
+ {
278
+ "epoch": 4.44,
279
+ "learning_rate": 0.0002,
280
+ "loss": 0.0094,
281
+ "step": 40
282
+ },
283
+ {
284
+ "epoch": 4.56,
285
+ "learning_rate": 0.0002,
286
+ "loss": 0.0087,
287
+ "step": 41
288
+ },
289
+ {
290
+ "epoch": 4.67,
291
+ "learning_rate": 0.0002,
292
+ "loss": 0.0139,
293
+ "step": 42
294
+ },
295
+ {
296
+ "epoch": 4.78,
297
+ "learning_rate": 0.0002,
298
+ "loss": 0.0253,
299
+ "step": 43
300
+ },
301
+ {
302
+ "epoch": 4.89,
303
+ "learning_rate": 0.0002,
304
+ "loss": 0.01,
305
+ "step": 44
306
+ },
307
+ {
308
+ "epoch": 5.0,
309
+ "learning_rate": 0.0002,
310
+ "loss": 0.0141,
311
+ "step": 45
312
+ },
313
+ {
314
+ "epoch": 5.0,
315
+ "eval_loss": 1.4936712980270386,
316
+ "eval_runtime": 5.0838,
317
+ "eval_samples_per_second": 9.835,
318
+ "eval_steps_per_second": 0.393,
319
+ "step": 45
320
+ },
321
+ {
322
+ "epoch": 5.0,
323
+ "step": 45,
324
+ "total_flos": 8.458794181224038e+16,
325
+ "train_loss": 0.3519387778101696,
326
+ "train_runtime": 297.6893,
327
+ "train_samples_per_second": 4.753,
328
+ "train_steps_per_second": 0.151
329
+ }
330
+ ],
331
+ "logging_steps": 1.0,
332
+ "max_steps": 45,
333
+ "num_input_tokens_seen": 0,
334
+ "num_train_epochs": 5,
335
+ "save_steps": 50000,
336
+ "total_flos": 8.458794181224038e+16,
337
+ "train_batch_size": 4,
338
+ "trial_name": null,
339
+ "trial_params": null
340
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f8d7dc8e8c67b09260cbbae5a1ec30e49b40b1d0091c44c0e3b19933221b49a
3
+ size 6840