TD788432 commited on
Commit
17d07de
·
verified ·
1 Parent(s): 0582557

Pushed the IDEFICS2 fine-tuned model.

Browse files
checkpoint-25/adapter_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "HuggingFaceM4/idefics2-8b",
5
+ "bias": "none",
6
+ "fan_in_fan_out": false,
7
+ "inference_mode": false,
8
+ "init_lora_weights": "gaussian",
9
+ "layer_replication": null,
10
+ "layers_pattern": null,
11
+ "layers_to_transform": null,
12
+ "loftq_config": {},
13
+ "lora_alpha": 8,
14
+ "lora_dropout": 0.1,
15
+ "megatron_config": null,
16
+ "megatron_core": "megatron.core",
17
+ "modules_to_save": null,
18
+ "peft_type": "LORA",
19
+ "r": 8,
20
+ "rank_pattern": {},
21
+ "revision": null,
22
+ "target_modules": ".*(text_model|modality_projection|perceiver_resampler).*(down_proj|gate_proj|up_proj|k_proj|q_proj|v_proj|o_proj).*$",
23
+ "task_type": null,
24
+ "use_dora": false,
25
+ "use_rslora": false
26
+ }
checkpoint-25/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:87cc62bbca6a2cee104071467be3cf86d3e259f60c4aa703d612021b46cbf803
3
+ size 93378688
checkpoint-25/config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Idefics2ForConditionalGeneration"
4
+ ],
5
+ "image_token_id": 32001,
6
+ "model_type": "idefics2",
7
+ "perceiver_config": {
8
+ "model_type": "idefics2"
9
+ },
10
+ "text_config": {
11
+ "max_position_embeddings": 32768,
12
+ "model_type": "mistral",
13
+ "pad_token_id": 0,
14
+ "rms_norm_eps": 1e-05,
15
+ "vocab_size": 32003
16
+ },
17
+ "tie_word_embeddings": false,
18
+ "torch_dtype": "float32",
19
+ "transformers_version": "4.39.0.dev0",
20
+ "use_cache": true,
21
+ "vision_config": {
22
+ "hidden_size": 1152,
23
+ "image_size": 980,
24
+ "intermediate_size": 4304,
25
+ "model_type": "idefics2",
26
+ "num_attention_heads": 16,
27
+ "num_hidden_layers": 27,
28
+ "patch_size": 14
29
+ }
30
+ }
checkpoint-25/generation_config.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bad_words_ids": [
4
+ [
5
+ 32000
6
+ ],
7
+ [
8
+ 32001
9
+ ]
10
+ ],
11
+ "bos_token_id": 1,
12
+ "eos_token_id": [
13
+ 2,
14
+ 32002
15
+ ],
16
+ "pad_token_id": 0,
17
+ "transformers_version": "4.41.1"
18
+ }
checkpoint-25/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:291a71b357a294f90749cce8fed801acd6609c512ae1591132ff16e3b7cec7d6
3
+ size 47425352
checkpoint-25/preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_image_splitting": true,
4
+ "do_normalize": true,
5
+ "do_pad": true,
6
+ "do_rescale": true,
7
+ "do_resize": true,
8
+ "image_mean": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ],
13
+ "image_processor_type": "Idefics2ImageProcessor",
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Idefics2Processor",
20
+ "resample": 2,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "longest_edge": 980,
24
+ "shortest_edge": 378
25
+ }
26
+ }
checkpoint-25/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3874113d512a94b4ef611411d7e032768aac4c7ab19904a72a34ea15dcec7c24
3
+ size 14244
checkpoint-25/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8531775f4e5c3819ae81b2ea1cfeb7e992dc0ca011334fb9ed6fb83e3392e473
3
+ size 1064
checkpoint-25/trainer_state.json ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.225806451612903,
5
+ "eval_steps": 10,
6
+ "global_step": 25,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 1.2903225806451613,
13
+ "grad_norm": 38.74126434326172,
14
+ "learning_rate": 6e-06,
15
+ "loss": 2.9734,
16
+ "step": 10
17
+ },
18
+ {
19
+ "epoch": 1.2903225806451613,
20
+ "eval_loss": 1.578683853149414,
21
+ "eval_runtime": 13.1475,
22
+ "eval_samples_per_second": 1.521,
23
+ "eval_steps_per_second": 0.761,
24
+ "step": 10
25
+ },
26
+ {
27
+ "epoch": 2.5806451612903225,
28
+ "grad_norm": 39.226219177246094,
29
+ "learning_rate": 2.0000000000000003e-06,
30
+ "loss": 1.2261,
31
+ "step": 20
32
+ },
33
+ {
34
+ "epoch": 2.5806451612903225,
35
+ "eval_loss": 1.026258111000061,
36
+ "eval_runtime": 13.3029,
37
+ "eval_samples_per_second": 1.503,
38
+ "eval_steps_per_second": 0.752,
39
+ "step": 20
40
+ }
41
+ ],
42
+ "logging_steps": 10,
43
+ "max_steps": 25,
44
+ "num_input_tokens_seen": 0,
45
+ "num_train_epochs": 4,
46
+ "save_steps": 25,
47
+ "stateful_callbacks": {
48
+ "TrainerControl": {
49
+ "args": {
50
+ "should_epoch_stop": false,
51
+ "should_evaluate": false,
52
+ "should_log": false,
53
+ "should_save": true,
54
+ "should_training_stop": true
55
+ },
56
+ "attributes": {}
57
+ }
58
+ },
59
+ "total_flos": 2048335432805376.0,
60
+ "train_batch_size": 2,
61
+ "trial_name": null,
62
+ "trial_params": null
63
+ }
checkpoint-25/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d7512a38cb2986a436d0d3daee19239a987baa3fa4d9adfbfc8621ab2301ed7b
3
+ size 5112