khanhduong commited on
Commit
6cd0921
·
verified ·
1 Parent(s): af39966

Upload 24_10_20_08_23_42_log.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. 24_10_20_08_23_42_log.txt +531 -0
24_10_20_08_23_42_log.txt ADDED
@@ -0,0 +1,531 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "run": {
3
+ "task": "image_text_pretrain",
4
+ "lr_sched": "linear_warmup_cosine_lr",
5
+ "init_lr": 3e-05,
6
+ "min_lr": 1e-05,
7
+ "warmup_lr": 1e-06,
8
+ "weight_decay": 0.05,
9
+ "max_epoch": 1,
10
+ "iters_per_epoch": 2501,
11
+ "batch_size_train": 20,
12
+ "batch_size_eval": 1,
13
+ "num_workers": 4,
14
+ "warmup_steps": 200,
15
+ "seed": 42,
16
+ "output_dir": "output/xraygpt_openi_finetune",
17
+ "amp": true,
18
+ "resume_ckpt_path": null,
19
+ "evaluate": false,
20
+ "train_splits": [
21
+ "train"
22
+ ],
23
+ "device": "cuda",
24
+ "world_size": 1,
25
+ "dist_url": "env://",
26
+ "distributed": true,
27
+ "rank": 0,
28
+ "gpu": 0,
29
+ "dist_backend": "nccl"
30
+ },
31
+ "model": {
32
+ "arch": "mini_gpt4",
33
+ "image_size": 224,
34
+ "drop_path_rate": 0,
35
+ "use_grad_checkpoint": false,
36
+ "vit_precision": "fp16",
37
+ "freeze_vit": true,
38
+ "freeze_qformer": true,
39
+ "num_query_token": 32,
40
+ "llama_model": "Joycean0301/Llama-3.2-3B-Instruct-Medical-Conversational",
41
+ "prompt": "",
42
+ "model_type": "pretrain_vicuna",
43
+ "max_txt_len": 160,
44
+ "end_sym": "<|eot_id|>",
45
+ "prompt_path": "prompts/alignment.txt",
46
+ "prompt_template": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nIf you are a doctor, please answer the medical questions based on chest xray image and the patient's description.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n{}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n ",
47
+ "ckpt": "24_10_19_23_35_50_epoch17.pth"
48
+ },
49
+ "preprocess": {
50
+ "vis_processor": {
51
+ "train": {
52
+ "name": "blip2_image_train",
53
+ "image_size": 224
54
+ },
55
+ "eval": {
56
+ "name": "blip2_image_eval",
57
+ "image_size": 224
58
+ }
59
+ },
60
+ "text_processor": {
61
+ "train": {
62
+ "name": "blip_caption"
63
+ },
64
+ "eval": {
65
+ "name": "blip_caption"
66
+ }
67
+ }
68
+ },
69
+ "datasets": {
70
+ "openi": {
71
+ "data_type": "images",
72
+ "build_info": {
73
+ "storage": "dataset/openi"
74
+ },
75
+ "vis_processor": {
76
+ "train": {
77
+ "name": "blip2_image_train",
78
+ "image_size": 224
79
+ }
80
+ },
81
+ "text_processor": {
82
+ "train": {
83
+ "name": "blip_caption"
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ {
90
+ "run": {
91
+ "task": "image_text_pretrain",
92
+ "lr_sched": "linear_warmup_cosine_lr",
93
+ "init_lr": 3e-05,
94
+ "min_lr": 1e-05,
95
+ "warmup_lr": 1e-06,
96
+ "weight_decay": 0.05,
97
+ "max_epoch": 1,
98
+ "iters_per_epoch": 2501,
99
+ "batch_size_train": 20,
100
+ "batch_size_eval": 1,
101
+ "num_workers": 4,
102
+ "warmup_steps": 200,
103
+ "seed": 42,
104
+ "output_dir": "output/xraygpt_openi_finetune",
105
+ "amp": true,
106
+ "resume_ckpt_path": null,
107
+ "evaluate": false,
108
+ "train_splits": [
109
+ "train"
110
+ ],
111
+ "device": "cuda",
112
+ "world_size": 1,
113
+ "dist_url": "env://",
114
+ "distributed": true,
115
+ "rank": 0,
116
+ "gpu": 0,
117
+ "dist_backend": "nccl"
118
+ },
119
+ "model": {
120
+ "arch": "mini_gpt4",
121
+ "image_size": 224,
122
+ "drop_path_rate": 0,
123
+ "use_grad_checkpoint": false,
124
+ "vit_precision": "fp16",
125
+ "freeze_vit": true,
126
+ "freeze_qformer": true,
127
+ "num_query_token": 32,
128
+ "llama_model": "Joycean0301/Llama-3.2-3B-Instruct-Medical-Conversational",
129
+ "prompt": "",
130
+ "model_type": "pretrain_vicuna",
131
+ "max_txt_len": 160,
132
+ "end_sym": "<|eot_id|>",
133
+ "prompt_path": "prompts/alignment.txt",
134
+ "prompt_template": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nIf you are a doctor, please answer the medical questions based on chest xray image and the patient's description.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n{}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n ",
135
+ "ckpt": "24_10_19_23_35_50_epoch17.pth"
136
+ },
137
+ "preprocess": {
138
+ "vis_processor": {
139
+ "train": {
140
+ "name": "blip2_image_train",
141
+ "image_size": 224
142
+ },
143
+ "eval": {
144
+ "name": "blip2_image_eval",
145
+ "image_size": 224
146
+ }
147
+ },
148
+ "text_processor": {
149
+ "train": {
150
+ "name": "blip_caption"
151
+ },
152
+ "eval": {
153
+ "name": "blip_caption"
154
+ }
155
+ }
156
+ },
157
+ "datasets": {
158
+ "openi": {
159
+ "data_type": "images",
160
+ "build_info": {
161
+ "storage": "dataset/openi"
162
+ },
163
+ "vis_processor": {
164
+ "train": {
165
+ "name": "blip2_image_train",
166
+ "image_size": 224
167
+ }
168
+ },
169
+ "text_processor": {
170
+ "train": {
171
+ "name": "blip_caption"
172
+ }
173
+ }
174
+ }
175
+ }
176
+ }
177
+ {
178
+ "run": {
179
+ "task": "image_text_pretrain",
180
+ "lr_sched": "linear_warmup_cosine_lr",
181
+ "init_lr": 3e-05,
182
+ "min_lr": 1e-05,
183
+ "warmup_lr": 1e-06,
184
+ "weight_decay": 0.05,
185
+ "max_epoch": 1,
186
+ "iters_per_epoch": 2501,
187
+ "batch_size_train": 25,
188
+ "batch_size_eval": 1,
189
+ "num_workers": 4,
190
+ "warmup_steps": 200,
191
+ "seed": 42,
192
+ "output_dir": "output/xraygpt_openi_finetune",
193
+ "amp": true,
194
+ "resume_ckpt_path": null,
195
+ "evaluate": false,
196
+ "train_splits": [
197
+ "train"
198
+ ],
199
+ "device": "cuda",
200
+ "world_size": 1,
201
+ "dist_url": "env://",
202
+ "distributed": true,
203
+ "rank": 0,
204
+ "gpu": 0,
205
+ "dist_backend": "nccl"
206
+ },
207
+ "model": {
208
+ "arch": "mini_gpt4",
209
+ "image_size": 224,
210
+ "drop_path_rate": 0,
211
+ "use_grad_checkpoint": false,
212
+ "vit_precision": "fp16",
213
+ "freeze_vit": true,
214
+ "freeze_qformer": true,
215
+ "num_query_token": 32,
216
+ "llama_model": "Joycean0301/Llama-3.2-3B-Instruct-Medical-Conversational",
217
+ "prompt": "",
218
+ "model_type": "pretrain_vicuna",
219
+ "max_txt_len": 160,
220
+ "end_sym": "<|eot_id|>",
221
+ "prompt_path": "prompts/alignment.txt",
222
+ "prompt_template": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nIf you are a doctor, please answer the medical questions based on chest xray image and the patient's description.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n{}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n ",
223
+ "ckpt": "24_10_19_23_35_50_epoch17.pth"
224
+ },
225
+ "preprocess": {
226
+ "vis_processor": {
227
+ "train": {
228
+ "name": "blip2_image_train",
229
+ "image_size": 224
230
+ },
231
+ "eval": {
232
+ "name": "blip2_image_eval",
233
+ "image_size": 224
234
+ }
235
+ },
236
+ "text_processor": {
237
+ "train": {
238
+ "name": "blip_caption"
239
+ },
240
+ "eval": {
241
+ "name": "blip_caption"
242
+ }
243
+ }
244
+ },
245
+ "datasets": {
246
+ "openi": {
247
+ "data_type": "images",
248
+ "build_info": {
249
+ "storage": "dataset/openi"
250
+ },
251
+ "vis_processor": {
252
+ "train": {
253
+ "name": "blip2_image_train",
254
+ "image_size": 224
255
+ }
256
+ },
257
+ "text_processor": {
258
+ "train": {
259
+ "name": "blip_caption"
260
+ }
261
+ }
262
+ }
263
+ }
264
+ }
265
+ {
266
+ "run": {
267
+ "task": "image_text_pretrain",
268
+ "lr_sched": "linear_warmup_cosine_lr",
269
+ "init_lr": 3e-05,
270
+ "min_lr": 1e-05,
271
+ "warmup_lr": 1e-06,
272
+ "weight_decay": 0.05,
273
+ "max_epoch": 1,
274
+ "iters_per_epoch": 2501,
275
+ "batch_size_train": 30,
276
+ "batch_size_eval": 1,
277
+ "num_workers": 4,
278
+ "warmup_steps": 200,
279
+ "seed": 42,
280
+ "output_dir": "output/xraygpt_openi_finetune",
281
+ "amp": true,
282
+ "resume_ckpt_path": null,
283
+ "evaluate": false,
284
+ "train_splits": [
285
+ "train"
286
+ ],
287
+ "device": "cuda",
288
+ "world_size": 1,
289
+ "dist_url": "env://",
290
+ "distributed": true,
291
+ "rank": 0,
292
+ "gpu": 0,
293
+ "dist_backend": "nccl"
294
+ },
295
+ "model": {
296
+ "arch": "mini_gpt4",
297
+ "image_size": 224,
298
+ "drop_path_rate": 0,
299
+ "use_grad_checkpoint": false,
300
+ "vit_precision": "fp16",
301
+ "freeze_vit": true,
302
+ "freeze_qformer": true,
303
+ "num_query_token": 32,
304
+ "llama_model": "Joycean0301/Llama-3.2-3B-Instruct-Medical-Conversational",
305
+ "prompt": "",
306
+ "model_type": "pretrain_vicuna",
307
+ "max_txt_len": 160,
308
+ "end_sym": "<|eot_id|>",
309
+ "prompt_path": "prompts/alignment.txt",
310
+ "prompt_template": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nIf you are a doctor, please answer the medical questions based on chest xray image and the patient's description.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n{}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n ",
311
+ "ckpt": "24_10_19_23_35_50_epoch17.pth"
312
+ },
313
+ "preprocess": {
314
+ "vis_processor": {
315
+ "train": {
316
+ "name": "blip2_image_train",
317
+ "image_size": 224
318
+ },
319
+ "eval": {
320
+ "name": "blip2_image_eval",
321
+ "image_size": 224
322
+ }
323
+ },
324
+ "text_processor": {
325
+ "train": {
326
+ "name": "blip_caption"
327
+ },
328
+ "eval": {
329
+ "name": "blip_caption"
330
+ }
331
+ }
332
+ },
333
+ "datasets": {
334
+ "openi": {
335
+ "data_type": "images",
336
+ "build_info": {
337
+ "storage": "dataset/openi"
338
+ },
339
+ "vis_processor": {
340
+ "train": {
341
+ "name": "blip2_image_train",
342
+ "image_size": 224
343
+ }
344
+ },
345
+ "text_processor": {
346
+ "train": {
347
+ "name": "blip_caption"
348
+ }
349
+ }
350
+ }
351
+ }
352
+ }
353
+ {
354
+ "run": {
355
+ "task": "image_text_pretrain",
356
+ "lr_sched": "linear_warmup_cosine_lr",
357
+ "init_lr": 3e-05,
358
+ "min_lr": 1e-05,
359
+ "warmup_lr": 1e-06,
360
+ "weight_decay": 0.05,
361
+ "max_epoch": 1,
362
+ "iters_per_epoch": 2501,
363
+ "batch_size_train": 25,
364
+ "batch_size_eval": 1,
365
+ "num_workers": 4,
366
+ "warmup_steps": 200,
367
+ "seed": 42,
368
+ "output_dir": "output/xraygpt_openi_finetune",
369
+ "amp": true,
370
+ "resume_ckpt_path": null,
371
+ "evaluate": false,
372
+ "train_splits": [
373
+ "train"
374
+ ],
375
+ "device": "cuda",
376
+ "world_size": 1,
377
+ "dist_url": "env://",
378
+ "distributed": true,
379
+ "rank": 0,
380
+ "gpu": 0,
381
+ "dist_backend": "nccl"
382
+ },
383
+ "model": {
384
+ "arch": "mini_gpt4",
385
+ "image_size": 224,
386
+ "drop_path_rate": 0,
387
+ "use_grad_checkpoint": false,
388
+ "vit_precision": "fp16",
389
+ "freeze_vit": true,
390
+ "freeze_qformer": true,
391
+ "num_query_token": 32,
392
+ "llama_model": "Joycean0301/Llama-3.2-3B-Instruct-Medical-Conversational",
393
+ "prompt": "",
394
+ "model_type": "pretrain_vicuna",
395
+ "max_txt_len": 160,
396
+ "end_sym": "<|eot_id|>",
397
+ "prompt_path": "prompts/alignment.txt",
398
+ "prompt_template": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nIf you are a doctor, please answer the medical questions based on chest xray image and the patient's description.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n{}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n ",
399
+ "ckpt": "24_10_19_23_35_50_epoch17.pth"
400
+ },
401
+ "preprocess": {
402
+ "vis_processor": {
403
+ "train": {
404
+ "name": "blip2_image_train",
405
+ "image_size": 224
406
+ },
407
+ "eval": {
408
+ "name": "blip2_image_eval",
409
+ "image_size": 224
410
+ }
411
+ },
412
+ "text_processor": {
413
+ "train": {
414
+ "name": "blip_caption"
415
+ },
416
+ "eval": {
417
+ "name": "blip_caption"
418
+ }
419
+ }
420
+ },
421
+ "datasets": {
422
+ "openi": {
423
+ "data_type": "images",
424
+ "build_info": {
425
+ "storage": "dataset/openi"
426
+ },
427
+ "vis_processor": {
428
+ "train": {
429
+ "name": "blip2_image_train",
430
+ "image_size": 224
431
+ }
432
+ },
433
+ "text_processor": {
434
+ "train": {
435
+ "name": "blip_caption"
436
+ }
437
+ }
438
+ }
439
+ }
440
+ }
441
+ {
442
+ "run": {
443
+ "task": "image_text_pretrain",
444
+ "lr_sched": "linear_warmup_cosine_lr",
445
+ "init_lr": 3e-05,
446
+ "min_lr": 1e-05,
447
+ "warmup_lr": 1e-06,
448
+ "weight_decay": 0.05,
449
+ "max_epoch": 3,
450
+ "iters_per_epoch": 3000,
451
+ "batch_size_train": 25,
452
+ "batch_size_eval": 1,
453
+ "num_workers": 4,
454
+ "warmup_steps": 200,
455
+ "seed": 42,
456
+ "output_dir": "output/xraygpt_openi_finetune",
457
+ "amp": true,
458
+ "resume_ckpt_path": null,
459
+ "evaluate": false,
460
+ "train_splits": [
461
+ "train"
462
+ ],
463
+ "device": "cuda",
464
+ "world_size": 1,
465
+ "dist_url": "env://",
466
+ "distributed": true,
467
+ "rank": 0,
468
+ "gpu": 0,
469
+ "dist_backend": "nccl"
470
+ },
471
+ "model": {
472
+ "arch": "mini_gpt4",
473
+ "image_size": 224,
474
+ "drop_path_rate": 0,
475
+ "use_grad_checkpoint": false,
476
+ "vit_precision": "fp16",
477
+ "freeze_vit": true,
478
+ "freeze_qformer": true,
479
+ "num_query_token": 32,
480
+ "llama_model": "Joycean0301/Llama-3.2-3B-Instruct-Medical-Conversational",
481
+ "prompt": "",
482
+ "model_type": "pretrain_vicuna",
483
+ "max_txt_len": 160,
484
+ "end_sym": "<|eot_id|>",
485
+ "prompt_path": "prompts/alignment.txt",
486
+ "prompt_template": "<|begin_of_text|><|start_header_id|>system<|end_header_id|>\n\nIf you are a doctor, please answer the medical questions based on chest xray image and the patient's description.<|eot_id|><|start_header_id|>user<|end_header_id|>\n\n{}<|eot_id|><|start_header_id|>assistant<|end_header_id|>\n\n ",
487
+ "ckpt": "24_10_19_23_35_50_epoch17.pth"
488
+ },
489
+ "preprocess": {
490
+ "vis_processor": {
491
+ "train": {
492
+ "name": "blip2_image_train",
493
+ "image_size": 224
494
+ },
495
+ "eval": {
496
+ "name": "blip2_image_eval",
497
+ "image_size": 224
498
+ }
499
+ },
500
+ "text_processor": {
501
+ "train": {
502
+ "name": "blip_caption"
503
+ },
504
+ "eval": {
505
+ "name": "blip_caption"
506
+ }
507
+ }
508
+ },
509
+ "datasets": {
510
+ "openi": {
511
+ "data_type": "images",
512
+ "build_info": {
513
+ "storage": "dataset/openi"
514
+ },
515
+ "vis_processor": {
516
+ "train": {
517
+ "name": "blip2_image_train",
518
+ "image_size": 224
519
+ }
520
+ },
521
+ "text_processor": {
522
+ "train": {
523
+ "name": "blip_caption"
524
+ }
525
+ }
526
+ }
527
+ }
528
+ }
529
+ {"train_lr": "0.000", "train_loss": "1.346"}
530
+ {"train_lr": "0.000", "train_loss": "1.249"}
531
+ {"train_lr": "0.000", "train_loss": "1.220"}