mahmoudkamal105 commited on
Commit
fc43b92
·
verified ·
1 Parent(s): e8d5cfc

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ checkpoint-18/tokenizer.json filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2-VL-2B-Instruct
3
+ library_name: peft
4
+ license: other
5
+ tags:
6
+ - llama-factory
7
+ - lora
8
+ - generated_from_trainer
9
+ model-index:
10
+ - name: train_2024-10-08-07-24-35
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # train_2024-10-08-07-24-35
18
+
19
+ This model is a fine-tuned version of [Qwen/Qwen2-VL-2B-Instruct](https://huggingface.co/Qwen/Qwen2-VL-2B-Instruct) on the my_chartQA dataset.
20
+
21
+ ## Model description
22
+
23
+ More information needed
24
+
25
+ ## Intended uses & limitations
26
+
27
+ More information needed
28
+
29
+ ## Training and evaluation data
30
+
31
+ More information needed
32
+
33
+ ## Training procedure
34
+
35
+ ### Training hyperparameters
36
+
37
+ The following hyperparameters were used during training:
38
+ - learning_rate: 5e-05
39
+ - train_batch_size: 2
40
+ - eval_batch_size: 8
41
+ - seed: 42
42
+ - gradient_accumulation_steps: 8
43
+ - total_train_batch_size: 16
44
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
+ - lr_scheduler_type: cosine
46
+ - num_epochs: 3.0
47
+
48
+ ### Training results
49
+
50
+
51
+
52
+ ### Framework versions
53
+
54
+ - PEFT 0.12.0
55
+ - Transformers 4.45.0
56
+ - Pytorch 2.4.1+cu121
57
+ - Datasets 2.21.0
58
+ - Tokenizers 0.20.0
adapter_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Qwen/Qwen2-VL-2B-Instruct",
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": 16,
14
+ "lora_dropout": 0,
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": "^(?!.*visual).*(?:down_proj|v_proj|k_proj|gate_proj|q_proj|o_proj|up_proj).*",
23
+ "task_type": "CAUSAL_LM",
24
+ "use_dora": false,
25
+ "use_rslora": false
26
+ }
adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89558bbbfeff0f196d771ea3401fd2928ee3046d49a4583b664d903d8d4d146a
3
+ size 36981072
added_tokens.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "<|box_end|>": 151649,
3
+ "<|box_start|>": 151648,
4
+ "<|endoftext|>": 151643,
5
+ "<|im_end|>": 151645,
6
+ "<|im_start|>": 151644,
7
+ "<|image_pad|>": 151655,
8
+ "<|object_ref_end|>": 151647,
9
+ "<|object_ref_start|>": 151646,
10
+ "<|quad_end|>": 151651,
11
+ "<|quad_start|>": 151650,
12
+ "<|video_pad|>": 151656,
13
+ "<|vision_end|>": 151653,
14
+ "<|vision_pad|>": 151654,
15
+ "<|vision_start|>": 151652
16
+ }
all_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.88,
3
+ "num_input_tokens_seen": 90320,
4
+ "total_flos": 1075626816552960.0,
5
+ "train_loss": 2.124886062410143,
6
+ "train_runtime": 88.8196,
7
+ "train_samples_per_second": 3.378,
8
+ "train_steps_per_second": 0.203
9
+ }
checkpoint-18/README.md ADDED
@@ -0,0 +1,202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Qwen/Qwen2-VL-2B-Instruct
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.12.0
checkpoint-18/adapter_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alpha_pattern": {},
3
+ "auto_mapping": null,
4
+ "base_model_name_or_path": "Qwen/Qwen2-VL-2B-Instruct",
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": 16,
14
+ "lora_dropout": 0,
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": "^(?!.*visual).*(?:down_proj|v_proj|k_proj|gate_proj|q_proj|o_proj|up_proj).*",
23
+ "task_type": "CAUSAL_LM",
24
+ "use_dora": false,
25
+ "use_rslora": false
26
+ }
checkpoint-18/adapter_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89558bbbfeff0f196d771ea3401fd2928ee3046d49a4583b664d903d8d4d146a
3
+ size 36981072
checkpoint-18/added_tokens.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "<|box_end|>": 151649,
3
+ "<|box_start|>": 151648,
4
+ "<|endoftext|>": 151643,
5
+ "<|im_end|>": 151645,
6
+ "<|im_start|>": 151644,
7
+ "<|image_pad|>": 151655,
8
+ "<|object_ref_end|>": 151647,
9
+ "<|object_ref_start|>": 151646,
10
+ "<|quad_end|>": 151651,
11
+ "<|quad_start|>": 151650,
12
+ "<|video_pad|>": 151656,
13
+ "<|vision_end|>": 151653,
14
+ "<|vision_pad|>": 151654,
15
+ "<|vision_start|>": 151652
16
+ }
checkpoint-18/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
checkpoint-18/optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b9615747de0ec0d1e12cb6d596d11d38460105f2b2bfbeb6bcdcaeeb581014e
3
+ size 74188650
checkpoint-18/preprocessor_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.48145466,
8
+ 0.4578275,
9
+ 0.40821073
10
+ ],
11
+ "image_processor_type": "Qwen2VLImageProcessor",
12
+ "image_std": [
13
+ 0.26862954,
14
+ 0.26130258,
15
+ 0.27577711
16
+ ],
17
+ "max_pixels": 12845056,
18
+ "merge_size": 2,
19
+ "min_pixels": 3136,
20
+ "patch_size": 14,
21
+ "processor_class": "Qwen2VLProcessor",
22
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "max_pixels": 12845056,
26
+ "min_pixels": 3136
27
+ },
28
+ "temporal_patch_size": 2
29
+ }
checkpoint-18/rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9196a1e708bf24d6abba41cce3f8558820acc3e50f9394c5955e29eb41ffea3d
3
+ size 14244
checkpoint-18/scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:88ba1e4effc421166914f0f22734677942b1ec5fd39f9ce3e71e50dcdc92a2b0
3
+ size 1064
checkpoint-18/special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
checkpoint-18/tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:091aa7594dc2fcfbfa06b9e3c22a5f0562ac14f30375c13af7309407a0e67b8a
3
+ size 11420371
checkpoint-18/tokenizer_config.json ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151646": {
29
+ "content": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "151647": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "151648": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "151649": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "151650": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "151651": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "151652": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "151653": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "151654": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "151655": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "151656": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ }
116
+ },
117
+ "additional_special_tokens": [
118
+ "<|im_start|>",
119
+ "<|im_end|>",
120
+ "<|object_ref_start|>",
121
+ "<|object_ref_end|>",
122
+ "<|box_start|>",
123
+ "<|box_end|>",
124
+ "<|quad_start|>",
125
+ "<|quad_end|>",
126
+ "<|vision_start|>",
127
+ "<|vision_end|>",
128
+ "<|vision_pad|>",
129
+ "<|image_pad|>",
130
+ "<|video_pad|>"
131
+ ],
132
+ "bos_token": null,
133
+ "chat_template": "{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
134
+ "clean_up_tokenization_spaces": false,
135
+ "eos_token": "<|im_end|>",
136
+ "errors": "replace",
137
+ "model_max_length": 32768,
138
+ "pad_token": "<|endoftext|>",
139
+ "padding_side": "right",
140
+ "split_special_tokens": false,
141
+ "tokenizer_class": "Qwen2Tokenizer",
142
+ "unk_token": null
143
+ }
checkpoint-18/trainer_state.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.88,
5
+ "eval_steps": 500,
6
+ "global_step": 18,
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.8,
13
+ "grad_norm": 5.393312454223633,
14
+ "learning_rate": 4.1069690242163484e-05,
15
+ "loss": 2.9277,
16
+ "num_input_tokens_seen": 24896,
17
+ "step": 5
18
+ },
19
+ {
20
+ "epoch": 1.6,
21
+ "grad_norm": 4.3577046394348145,
22
+ "learning_rate": 2.0658795558326743e-05,
23
+ "loss": 2.0351,
24
+ "num_input_tokens_seen": 50000,
25
+ "step": 10
26
+ },
27
+ {
28
+ "epoch": 2.4,
29
+ "grad_norm": 3.4381613731384277,
30
+ "learning_rate": 3.3493649053890326e-06,
31
+ "loss": 1.731,
32
+ "num_input_tokens_seen": 74784,
33
+ "step": 15
34
+ }
35
+ ],
36
+ "logging_steps": 5,
37
+ "max_steps": 18,
38
+ "num_input_tokens_seen": 90320,
39
+ "num_train_epochs": 3,
40
+ "save_steps": 100,
41
+ "stateful_callbacks": {
42
+ "TrainerControl": {
43
+ "args": {
44
+ "should_epoch_stop": false,
45
+ "should_evaluate": false,
46
+ "should_log": false,
47
+ "should_save": true,
48
+ "should_training_stop": true
49
+ },
50
+ "attributes": {}
51
+ }
52
+ },
53
+ "total_flos": 1075626816552960.0,
54
+ "train_batch_size": 2,
55
+ "trial_name": null,
56
+ "trial_params": null
57
+ }
checkpoint-18/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db089b3a417d8fcdedd0b43510f5de06917cb4d26e14d6b4f9c3a5e2a9cb7cc3
3
+ size 5432
checkpoint-18/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
llamaboard_config.yaml ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ top.booster: auto
2
+ top.checkpoint_path: []
3
+ top.finetuning_type: lora
4
+ top.model_name: Qwen2-VL-2B-Instruct
5
+ top.quantization_bit: none
6
+ top.quantization_method: bitsandbytes
7
+ top.rope_scaling: none
8
+ top.template: qwen2_vl
9
+ train.additional_target: ''
10
+ train.badam_mode: layer
11
+ train.badam_switch_interval: 50
12
+ train.badam_switch_mode: ascending
13
+ train.badam_update_ratio: 0.05
14
+ train.batch_size: 2
15
+ train.compute_type: bf16
16
+ train.create_new_adapter: false
17
+ train.cutoff_len: 1024
18
+ train.dataset:
19
+ - my_chartQA
20
+ train.dataset_dir: data
21
+ train.ds_offload: false
22
+ train.ds_stage: none
23
+ train.freeze_extra_modules: ''
24
+ train.freeze_trainable_layers: 2
25
+ train.freeze_trainable_modules: all
26
+ train.galore_rank: 16
27
+ train.galore_scale: 0.25
28
+ train.galore_target: all
29
+ train.galore_update_interval: 200
30
+ train.gradient_accumulation_steps: 8
31
+ train.learning_rate: 5e-5
32
+ train.logging_steps: 5
33
+ train.lora_alpha: 16
34
+ train.lora_dropout: 0
35
+ train.lora_rank: 8
36
+ train.lora_target: ''
37
+ train.loraplus_lr_ratio: 0
38
+ train.lr_scheduler_type: cosine
39
+ train.mask_history: false
40
+ train.max_grad_norm: '1.0'
41
+ train.max_samples: '100000'
42
+ train.neat_packing: false
43
+ train.neftune_alpha: 0
44
+ train.num_train_epochs: '3.0'
45
+ train.optim: adamw_torch
46
+ train.packing: false
47
+ train.ppo_score_norm: false
48
+ train.ppo_whiten_rewards: false
49
+ train.pref_beta: 0.1
50
+ train.pref_ftx: 0
51
+ train.pref_loss: sigmoid
52
+ train.report_to: false
53
+ train.resize_vocab: false
54
+ train.reward_model: null
55
+ train.save_steps: 100
56
+ train.shift_attn: false
57
+ train.train_on_prompt: false
58
+ train.training_stage: Supervised Fine-Tuning
59
+ train.use_badam: false
60
+ train.use_dora: false
61
+ train.use_galore: false
62
+ train.use_llama_pro: false
63
+ train.use_pissa: false
64
+ train.use_rslora: false
65
+ train.val_size: 0
66
+ train.warmup_steps: 0
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "do_convert_rgb": true,
3
+ "do_normalize": true,
4
+ "do_rescale": true,
5
+ "do_resize": true,
6
+ "image_mean": [
7
+ 0.48145466,
8
+ 0.4578275,
9
+ 0.40821073
10
+ ],
11
+ "image_processor_type": "Qwen2VLImageProcessor",
12
+ "image_std": [
13
+ 0.26862954,
14
+ 0.26130258,
15
+ 0.27577711
16
+ ],
17
+ "max_pixels": 12845056,
18
+ "merge_size": 2,
19
+ "min_pixels": 3136,
20
+ "patch_size": 14,
21
+ "processor_class": "Qwen2VLProcessor",
22
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "max_pixels": 12845056,
26
+ "min_pixels": 3136
27
+ },
28
+ "temporal_patch_size": 2
29
+ }
running_log.txt ADDED
@@ -0,0 +1,407 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [INFO|configuration_utils.py:672] 2024-10-08 07:24:54,054 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/config.json
2
+
3
+ [WARNING|modeling_rope_utils.py:379] 2024-10-08 07:24:54,055 >> Unrecognized keys in `rope_scaling` for 'rope_type'='default': {'mrope_section'}
4
+
5
+ [INFO|configuration_utils.py:739] 2024-10-08 07:24:54,057 >> Model config Qwen2VLConfig {
6
+ "_name_or_path": "Qwen/Qwen2-VL-2B-Instruct",
7
+ "architectures": [
8
+ "Qwen2VLForConditionalGeneration"
9
+ ],
10
+ "attention_dropout": 0.0,
11
+ "bos_token_id": 151643,
12
+ "eos_token_id": 151645,
13
+ "hidden_act": "silu",
14
+ "hidden_size": 1536,
15
+ "image_token_id": 151655,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 8960,
18
+ "max_position_embeddings": 32768,
19
+ "max_window_layers": 28,
20
+ "model_type": "qwen2_vl",
21
+ "num_attention_heads": 12,
22
+ "num_hidden_layers": 28,
23
+ "num_key_value_heads": 2,
24
+ "rms_norm_eps": 1e-06,
25
+ "rope_scaling": {
26
+ "mrope_section": [
27
+ 16,
28
+ 24,
29
+ 24
30
+ ],
31
+ "rope_type": "default",
32
+ "type": "default"
33
+ },
34
+ "rope_theta": 1000000.0,
35
+ "sliding_window": 32768,
36
+ "tie_word_embeddings": true,
37
+ "torch_dtype": "bfloat16",
38
+ "transformers_version": "4.45.0",
39
+ "use_cache": true,
40
+ "use_sliding_window": false,
41
+ "video_token_id": 151656,
42
+ "vision_config": {
43
+ "hidden_size": 1536,
44
+ "in_chans": 3,
45
+ "model_type": "qwen2_vl",
46
+ "spatial_patch_size": 14
47
+ },
48
+ "vision_end_token_id": 151653,
49
+ "vision_start_token_id": 151652,
50
+ "vision_token_id": 151654,
51
+ "vocab_size": 151936
52
+ }
53
+
54
+
55
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:54,290 >> loading file vocab.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/vocab.json
56
+
57
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:54,290 >> loading file merges.txt from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/merges.txt
58
+
59
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:54,290 >> loading file tokenizer.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/tokenizer.json
60
+
61
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:54,290 >> loading file added_tokens.json from cache at None
62
+
63
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:54,290 >> loading file special_tokens_map.json from cache at None
64
+
65
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:54,290 >> loading file tokenizer_config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/tokenizer_config.json
66
+
67
+ [INFO|tokenization_utils_base.py:2478] 2024-10-08 07:24:54,670 >> Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
68
+
69
+ [INFO|image_processing_base.py:375] 2024-10-08 07:24:55,378 >> loading configuration file preprocessor_config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/preprocessor_config.json
70
+
71
+ [INFO|image_processing_base.py:375] 2024-10-08 07:24:55,609 >> loading configuration file preprocessor_config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/preprocessor_config.json
72
+
73
+ [INFO|image_processing_base.py:429] 2024-10-08 07:24:55,609 >> Image processor Qwen2VLImageProcessor {
74
+ "do_convert_rgb": true,
75
+ "do_normalize": true,
76
+ "do_rescale": true,
77
+ "do_resize": true,
78
+ "image_mean": [
79
+ 0.48145466,
80
+ 0.4578275,
81
+ 0.40821073
82
+ ],
83
+ "image_processor_type": "Qwen2VLImageProcessor",
84
+ "image_std": [
85
+ 0.26862954,
86
+ 0.26130258,
87
+ 0.27577711
88
+ ],
89
+ "max_pixels": 12845056,
90
+ "merge_size": 2,
91
+ "min_pixels": 3136,
92
+ "patch_size": 14,
93
+ "processor_class": "Qwen2VLProcessor",
94
+ "resample": 3,
95
+ "rescale_factor": 0.00392156862745098,
96
+ "size": {
97
+ "max_pixels": 12845056,
98
+ "min_pixels": 3136
99
+ },
100
+ "temporal_patch_size": 2
101
+ }
102
+
103
+
104
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:55,836 >> loading file vocab.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/vocab.json
105
+
106
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:55,836 >> loading file merges.txt from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/merges.txt
107
+
108
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:55,836 >> loading file tokenizer.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/tokenizer.json
109
+
110
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:55,836 >> loading file added_tokens.json from cache at None
111
+
112
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:55,836 >> loading file special_tokens_map.json from cache at None
113
+
114
+ [INFO|tokenization_utils_base.py:2214] 2024-10-08 07:24:55,836 >> loading file tokenizer_config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/tokenizer_config.json
115
+
116
+ [INFO|tokenization_utils_base.py:2478] 2024-10-08 07:24:56,214 >> Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
117
+
118
+ [INFO|processing_utils.py:744] 2024-10-08 07:24:57,333 >> Processor Qwen2VLProcessor:
119
+ - image_processor: Qwen2VLImageProcessor {
120
+ "do_convert_rgb": true,
121
+ "do_normalize": true,
122
+ "do_rescale": true,
123
+ "do_resize": true,
124
+ "image_mean": [
125
+ 0.48145466,
126
+ 0.4578275,
127
+ 0.40821073
128
+ ],
129
+ "image_processor_type": "Qwen2VLImageProcessor",
130
+ "image_std": [
131
+ 0.26862954,
132
+ 0.26130258,
133
+ 0.27577711
134
+ ],
135
+ "max_pixels": 12845056,
136
+ "merge_size": 2,
137
+ "min_pixels": 3136,
138
+ "patch_size": 14,
139
+ "processor_class": "Qwen2VLProcessor",
140
+ "resample": 3,
141
+ "rescale_factor": 0.00392156862745098,
142
+ "size": {
143
+ "max_pixels": 12845056,
144
+ "min_pixels": 3136
145
+ },
146
+ "temporal_patch_size": 2
147
+ }
148
+
149
+ - tokenizer: Qwen2TokenizerFast(name_or_path='Qwen/Qwen2-VL-2B-Instruct', vocab_size=151643, model_max_length=32768, is_fast=True, padding_side='left', truncation_side='right', special_tokens={'eos_token': '<|im_end|>', 'pad_token': '<|endoftext|>', 'additional_special_tokens': ['<|im_start|>', '<|im_end|>', '<|object_ref_start|>', '<|object_ref_end|>', '<|box_start|>', '<|box_end|>', '<|quad_start|>', '<|quad_end|>', '<|vision_start|>', '<|vision_end|>', '<|vision_pad|>', '<|image_pad|>', '<|video_pad|>']}, clean_up_tokenization_spaces=False), added_tokens_decoder={
150
+ 151643: AddedToken("<|endoftext|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
151
+ 151644: AddedToken("<|im_start|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
152
+ 151645: AddedToken("<|im_end|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
153
+ 151646: AddedToken("<|object_ref_start|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
154
+ 151647: AddedToken("<|object_ref_end|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
155
+ 151648: AddedToken("<|box_start|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
156
+ 151649: AddedToken("<|box_end|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
157
+ 151650: AddedToken("<|quad_start|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
158
+ 151651: AddedToken("<|quad_end|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
159
+ 151652: AddedToken("<|vision_start|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
160
+ 151653: AddedToken("<|vision_end|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
161
+ 151654: AddedToken("<|vision_pad|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
162
+ 151655: AddedToken("<|image_pad|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
163
+ 151656: AddedToken("<|video_pad|>", rstrip=False, lstrip=False, single_word=False, normalized=False, special=True),
164
+ }
165
+
166
+ {
167
+ "processor_class": "Qwen2VLProcessor"
168
+ }
169
+
170
+
171
+ [INFO|configuration_utils.py:672] 2024-10-08 07:25:02,808 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/config.json
172
+
173
+ [WARNING|modeling_rope_utils.py:379] 2024-10-08 07:25:02,809 >> Unrecognized keys in `rope_scaling` for 'rope_type'='default': {'mrope_section'}
174
+
175
+ [INFO|configuration_utils.py:739] 2024-10-08 07:25:02,810 >> Model config Qwen2VLConfig {
176
+ "_name_or_path": "Qwen/Qwen2-VL-2B-Instruct",
177
+ "architectures": [
178
+ "Qwen2VLForConditionalGeneration"
179
+ ],
180
+ "attention_dropout": 0.0,
181
+ "bos_token_id": 151643,
182
+ "eos_token_id": 151645,
183
+ "hidden_act": "silu",
184
+ "hidden_size": 1536,
185
+ "image_token_id": 151655,
186
+ "initializer_range": 0.02,
187
+ "intermediate_size": 8960,
188
+ "max_position_embeddings": 32768,
189
+ "max_window_layers": 28,
190
+ "model_type": "qwen2_vl",
191
+ "num_attention_heads": 12,
192
+ "num_hidden_layers": 28,
193
+ "num_key_value_heads": 2,
194
+ "rms_norm_eps": 1e-06,
195
+ "rope_scaling": {
196
+ "mrope_section": [
197
+ 16,
198
+ 24,
199
+ 24
200
+ ],
201
+ "rope_type": "default",
202
+ "type": "default"
203
+ },
204
+ "rope_theta": 1000000.0,
205
+ "sliding_window": 32768,
206
+ "tie_word_embeddings": true,
207
+ "torch_dtype": "bfloat16",
208
+ "transformers_version": "4.45.0",
209
+ "use_cache": true,
210
+ "use_sliding_window": false,
211
+ "video_token_id": 151656,
212
+ "vision_config": {
213
+ "hidden_size": 1536,
214
+ "in_chans": 3,
215
+ "model_type": "qwen2_vl",
216
+ "spatial_patch_size": 14
217
+ },
218
+ "vision_end_token_id": 151653,
219
+ "vision_start_token_id": 151652,
220
+ "vision_token_id": 151654,
221
+ "vocab_size": 151936
222
+ }
223
+
224
+
225
+ [INFO|modeling_utils.py:3726] 2024-10-08 07:25:02,826 >> loading weights file model.safetensors from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/model.safetensors.index.json
226
+
227
+ [INFO|modeling_utils.py:1622] 2024-10-08 07:25:02,828 >> Instantiating Qwen2VLForConditionalGeneration model under default dtype torch.bfloat16.
228
+
229
+ [INFO|configuration_utils.py:1099] 2024-10-08 07:25:02,829 >> Generate config GenerationConfig {
230
+ "bos_token_id": 151643,
231
+ "eos_token_id": 151645
232
+ }
233
+
234
+
235
+ [WARNING|logging.py:328] 2024-10-08 07:25:02,855 >> `Qwen2VLRotaryEmbedding` can now be fully parameterized by passing the model config through the `config` argument. All other arguments will be removed in v4.46
236
+
237
+ [INFO|modeling_utils.py:4568] 2024-10-08 07:25:05,453 >> All model checkpoint weights were used when initializing Qwen2VLForConditionalGeneration.
238
+
239
+
240
+ [INFO|modeling_utils.py:4576] 2024-10-08 07:25:05,453 >> All the weights of Qwen2VLForConditionalGeneration were initialized from the model checkpoint at Qwen/Qwen2-VL-2B-Instruct.
241
+ If your task is similar to the task the model of the checkpoint was trained on, you can already use Qwen2VLForConditionalGeneration for predictions without further training.
242
+
243
+ [INFO|configuration_utils.py:1054] 2024-10-08 07:25:05,690 >> loading configuration file generation_config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/generation_config.json
244
+
245
+ [INFO|configuration_utils.py:1099] 2024-10-08 07:25:05,690 >> Generate config GenerationConfig {
246
+ "bos_token_id": 151643,
247
+ "do_sample": true,
248
+ "eos_token_id": [
249
+ 151645,
250
+ 151643
251
+ ],
252
+ "pad_token_id": 151643,
253
+ "temperature": 0.01,
254
+ "top_k": 1,
255
+ "top_p": 0.001
256
+ }
257
+
258
+
259
+ [INFO|trainer.py:667] 2024-10-08 07:25:06,169 >> Using auto half precision backend
260
+
261
+ [INFO|trainer.py:2243] 2024-10-08 07:25:06,740 >> ***** Running training *****
262
+
263
+ [INFO|trainer.py:2244] 2024-10-08 07:25:06,740 >> Num examples = 100
264
+
265
+ [INFO|trainer.py:2245] 2024-10-08 07:25:06,740 >> Num Epochs = 3
266
+
267
+ [INFO|trainer.py:2246] 2024-10-08 07:25:06,740 >> Instantaneous batch size per device = 2
268
+
269
+ [INFO|trainer.py:2249] 2024-10-08 07:25:06,740 >> Total train batch size (w. parallel, distributed & accumulation) = 16
270
+
271
+ [INFO|trainer.py:2250] 2024-10-08 07:25:06,740 >> Gradient Accumulation steps = 8
272
+
273
+ [INFO|trainer.py:2251] 2024-10-08 07:25:06,740 >> Total optimization steps = 18
274
+
275
+ [INFO|trainer.py:2252] 2024-10-08 07:25:06,746 >> Number of trainable parameters = 9,232,384
276
+
277
+ [INFO|trainer.py:3705] 2024-10-08 07:26:34,621 >> Saving model checkpoint to saves/Qwen2-VL-2B-Instruct/lora/train_2024-10-08-07-24-35/checkpoint-18
278
+
279
+ [INFO|configuration_utils.py:672] 2024-10-08 07:26:35,108 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/config.json
280
+
281
+ [WARNING|modeling_rope_utils.py:379] 2024-10-08 07:26:35,108 >> Unrecognized keys in `rope_scaling` for 'rope_type'='default': {'mrope_section'}
282
+
283
+ [INFO|configuration_utils.py:739] 2024-10-08 07:26:35,110 >> Model config Qwen2VLConfig {
284
+ "architectures": [
285
+ "Qwen2VLForConditionalGeneration"
286
+ ],
287
+ "attention_dropout": 0.0,
288
+ "bos_token_id": 151643,
289
+ "eos_token_id": 151645,
290
+ "hidden_act": "silu",
291
+ "hidden_size": 1536,
292
+ "image_token_id": 151655,
293
+ "initializer_range": 0.02,
294
+ "intermediate_size": 8960,
295
+ "max_position_embeddings": 32768,
296
+ "max_window_layers": 28,
297
+ "model_type": "qwen2_vl",
298
+ "num_attention_heads": 12,
299
+ "num_hidden_layers": 28,
300
+ "num_key_value_heads": 2,
301
+ "rms_norm_eps": 1e-06,
302
+ "rope_scaling": {
303
+ "mrope_section": [
304
+ 16,
305
+ 24,
306
+ 24
307
+ ],
308
+ "rope_type": "default",
309
+ "type": "default"
310
+ },
311
+ "rope_theta": 1000000.0,
312
+ "sliding_window": 32768,
313
+ "tie_word_embeddings": true,
314
+ "torch_dtype": "bfloat16",
315
+ "transformers_version": "4.45.0",
316
+ "use_cache": true,
317
+ "use_sliding_window": false,
318
+ "video_token_id": 151656,
319
+ "vision_config": {
320
+ "hidden_size": 1536,
321
+ "in_chans": 3,
322
+ "model_type": "qwen2_vl",
323
+ "spatial_patch_size": 14
324
+ },
325
+ "vision_end_token_id": 151653,
326
+ "vision_start_token_id": 151652,
327
+ "vision_token_id": 151654,
328
+ "vocab_size": 151936
329
+ }
330
+
331
+
332
+ [INFO|tokenization_utils_base.py:2649] 2024-10-08 07:26:35,193 >> tokenizer config file saved in saves/Qwen2-VL-2B-Instruct/lora/train_2024-10-08-07-24-35/checkpoint-18/tokenizer_config.json
333
+
334
+ [INFO|tokenization_utils_base.py:2658] 2024-10-08 07:26:35,193 >> Special tokens file saved in saves/Qwen2-VL-2B-Instruct/lora/train_2024-10-08-07-24-35/checkpoint-18/special_tokens_map.json
335
+
336
+ [INFO|image_processing_base.py:258] 2024-10-08 07:26:35,565 >> Image processor saved in saves/Qwen2-VL-2B-Instruct/lora/train_2024-10-08-07-24-35/checkpoint-18/preprocessor_config.json
337
+
338
+ [INFO|trainer.py:2505] 2024-10-08 07:26:35,566 >>
339
+
340
+ Training completed. Do not forget to share your model on huggingface.co/models =)
341
+
342
+
343
+
344
+ [INFO|image_processing_base.py:258] 2024-10-08 07:26:35,568 >> Image processor saved in saves/Qwen2-VL-2B-Instruct/lora/train_2024-10-08-07-24-35/preprocessor_config.json
345
+
346
+ [INFO|trainer.py:3705] 2024-10-08 07:26:35,568 >> Saving model checkpoint to saves/Qwen2-VL-2B-Instruct/lora/train_2024-10-08-07-24-35
347
+
348
+ [INFO|configuration_utils.py:672] 2024-10-08 07:26:36,065 >> loading configuration file config.json from cache at /root/.cache/huggingface/hub/models--Qwen--Qwen2-VL-2B-Instruct/snapshots/aca78372505e6cb469c4fa6a35c60265b00ff5a4/config.json
349
+
350
+ [WARNING|modeling_rope_utils.py:379] 2024-10-08 07:26:36,065 >> Unrecognized keys in `rope_scaling` for 'rope_type'='default': {'mrope_section'}
351
+
352
+ [INFO|configuration_utils.py:739] 2024-10-08 07:26:36,067 >> Model config Qwen2VLConfig {
353
+ "architectures": [
354
+ "Qwen2VLForConditionalGeneration"
355
+ ],
356
+ "attention_dropout": 0.0,
357
+ "bos_token_id": 151643,
358
+ "eos_token_id": 151645,
359
+ "hidden_act": "silu",
360
+ "hidden_size": 1536,
361
+ "image_token_id": 151655,
362
+ "initializer_range": 0.02,
363
+ "intermediate_size": 8960,
364
+ "max_position_embeddings": 32768,
365
+ "max_window_layers": 28,
366
+ "model_type": "qwen2_vl",
367
+ "num_attention_heads": 12,
368
+ "num_hidden_layers": 28,
369
+ "num_key_value_heads": 2,
370
+ "rms_norm_eps": 1e-06,
371
+ "rope_scaling": {
372
+ "mrope_section": [
373
+ 16,
374
+ 24,
375
+ 24
376
+ ],
377
+ "rope_type": "default",
378
+ "type": "default"
379
+ },
380
+ "rope_theta": 1000000.0,
381
+ "sliding_window": 32768,
382
+ "tie_word_embeddings": true,
383
+ "torch_dtype": "bfloat16",
384
+ "transformers_version": "4.45.0",
385
+ "use_cache": true,
386
+ "use_sliding_window": false,
387
+ "video_token_id": 151656,
388
+ "vision_config": {
389
+ "hidden_size": 1536,
390
+ "in_chans": 3,
391
+ "model_type": "qwen2_vl",
392
+ "spatial_patch_size": 14
393
+ },
394
+ "vision_end_token_id": 151653,
395
+ "vision_start_token_id": 151652,
396
+ "vision_token_id": 151654,
397
+ "vocab_size": 151936
398
+ }
399
+
400
+
401
+ [INFO|tokenization_utils_base.py:2649] 2024-10-08 07:26:36,146 >> tokenizer config file saved in saves/Qwen2-VL-2B-Instruct/lora/train_2024-10-08-07-24-35/tokenizer_config.json
402
+
403
+ [INFO|tokenization_utils_base.py:2658] 2024-10-08 07:26:36,147 >> Special tokens file saved in saves/Qwen2-VL-2B-Instruct/lora/train_2024-10-08-07-24-35/special_tokens_map.json
404
+
405
+ [INFO|modelcard.py:449] 2024-10-08 07:26:36,523 >> Dropping the following result as it does not have all the necessary fields:
406
+ {'task': {'name': 'Causal Language Modeling', 'type': 'text-generation'}}
407
+
special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_start|>",
4
+ "<|im_end|>",
5
+ "<|object_ref_start|>",
6
+ "<|object_ref_end|>",
7
+ "<|box_start|>",
8
+ "<|box_end|>",
9
+ "<|quad_start|>",
10
+ "<|quad_end|>",
11
+ "<|vision_start|>",
12
+ "<|vision_end|>",
13
+ "<|vision_pad|>",
14
+ "<|image_pad|>",
15
+ "<|video_pad|>"
16
+ ],
17
+ "eos_token": {
18
+ "content": "<|im_end|>",
19
+ "lstrip": false,
20
+ "normalized": false,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "pad_token": {
25
+ "content": "<|endoftext|>",
26
+ "lstrip": false,
27
+ "normalized": false,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:091aa7594dc2fcfbfa06b9e3c22a5f0562ac14f30375c13af7309407a0e67b8a
3
+ size 11420371
tokenizer_config.json ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "151643": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": false,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "151644": {
13
+ "content": "<|im_start|>",
14
+ "lstrip": false,
15
+ "normalized": false,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "151645": {
21
+ "content": "<|im_end|>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "151646": {
29
+ "content": "<|object_ref_start|>",
30
+ "lstrip": false,
31
+ "normalized": false,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "151647": {
37
+ "content": "<|object_ref_end|>",
38
+ "lstrip": false,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ },
44
+ "151648": {
45
+ "content": "<|box_start|>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "151649": {
53
+ "content": "<|box_end|>",
54
+ "lstrip": false,
55
+ "normalized": false,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
+ },
60
+ "151650": {
61
+ "content": "<|quad_start|>",
62
+ "lstrip": false,
63
+ "normalized": false,
64
+ "rstrip": false,
65
+ "single_word": false,
66
+ "special": true
67
+ },
68
+ "151651": {
69
+ "content": "<|quad_end|>",
70
+ "lstrip": false,
71
+ "normalized": false,
72
+ "rstrip": false,
73
+ "single_word": false,
74
+ "special": true
75
+ },
76
+ "151652": {
77
+ "content": "<|vision_start|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false,
82
+ "special": true
83
+ },
84
+ "151653": {
85
+ "content": "<|vision_end|>",
86
+ "lstrip": false,
87
+ "normalized": false,
88
+ "rstrip": false,
89
+ "single_word": false,
90
+ "special": true
91
+ },
92
+ "151654": {
93
+ "content": "<|vision_pad|>",
94
+ "lstrip": false,
95
+ "normalized": false,
96
+ "rstrip": false,
97
+ "single_word": false,
98
+ "special": true
99
+ },
100
+ "151655": {
101
+ "content": "<|image_pad|>",
102
+ "lstrip": false,
103
+ "normalized": false,
104
+ "rstrip": false,
105
+ "single_word": false,
106
+ "special": true
107
+ },
108
+ "151656": {
109
+ "content": "<|video_pad|>",
110
+ "lstrip": false,
111
+ "normalized": false,
112
+ "rstrip": false,
113
+ "single_word": false,
114
+ "special": true
115
+ }
116
+ },
117
+ "additional_special_tokens": [
118
+ "<|im_start|>",
119
+ "<|im_end|>",
120
+ "<|object_ref_start|>",
121
+ "<|object_ref_end|>",
122
+ "<|box_start|>",
123
+ "<|box_end|>",
124
+ "<|quad_start|>",
125
+ "<|quad_end|>",
126
+ "<|vision_start|>",
127
+ "<|vision_end|>",
128
+ "<|vision_pad|>",
129
+ "<|image_pad|>",
130
+ "<|video_pad|>"
131
+ ],
132
+ "bos_token": null,
133
+ "chat_template": "{% set image_count = namespace(value=0) %}{% set video_count = namespace(value=0) %}{% for message in messages %}{% if loop.first and message['role'] != 'system' %}<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{% if message['content'] is string %}{{ message['content'] }}<|im_end|>\n{% else %}{% for content in message['content'] %}{% if content['type'] == 'image' or 'image' in content or 'image_url' in content %}{% set image_count.value = image_count.value + 1 %}{% if add_vision_id %}Picture {{ image_count.value }}: {% endif %}<|vision_start|><|image_pad|><|vision_end|>{% elif content['type'] == 'video' or 'video' in content %}{% set video_count.value = video_count.value + 1 %}{% if add_vision_id %}Video {{ video_count.value }}: {% endif %}<|vision_start|><|video_pad|><|vision_end|>{% elif 'text' in content %}{{ content['text'] }}{% endif %}{% endfor %}<|im_end|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
134
+ "clean_up_tokenization_spaces": false,
135
+ "eos_token": "<|im_end|>",
136
+ "errors": "replace",
137
+ "model_max_length": 32768,
138
+ "pad_token": "<|endoftext|>",
139
+ "padding_side": "right",
140
+ "split_special_tokens": false,
141
+ "tokenizer_class": "Qwen2Tokenizer",
142
+ "unk_token": null
143
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 2.88,
3
+ "num_input_tokens_seen": 90320,
4
+ "total_flos": 1075626816552960.0,
5
+ "train_loss": 2.124886062410143,
6
+ "train_runtime": 88.8196,
7
+ "train_samples_per_second": 3.378,
8
+ "train_steps_per_second": 0.203
9
+ }
trainer_log.jsonl ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {"current_steps": 5, "total_steps": 18, "loss": 2.9277, "learning_rate": 4.1069690242163484e-05, "epoch": 0.8, "percentage": 27.78, "elapsed_time": "0:00:25", "remaining_time": "0:01:05", "throughput": 989.42, "total_tokens": 24896}
2
+ {"current_steps": 10, "total_steps": 18, "loss": 2.0351, "learning_rate": 2.0658795558326743e-05, "epoch": 1.6, "percentage": 55.56, "elapsed_time": "0:00:49", "remaining_time": "0:00:39", "throughput": 1014.57, "total_tokens": 50000}
3
+ {"current_steps": 15, "total_steps": 18, "loss": 1.731, "learning_rate": 3.3493649053890326e-06, "epoch": 2.4, "percentage": 83.33, "elapsed_time": "0:01:13", "remaining_time": "0:00:14", "throughput": 1019.0, "total_tokens": 74784}
4
+ {"current_steps": 18, "total_steps": 18, "epoch": 2.88, "percentage": 100.0, "elapsed_time": "0:01:28", "remaining_time": "0:00:00", "throughput": 1016.96, "total_tokens": 90320}
trainer_state.json ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 2.88,
5
+ "eval_steps": 500,
6
+ "global_step": 18,
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.8,
13
+ "grad_norm": 5.393312454223633,
14
+ "learning_rate": 4.1069690242163484e-05,
15
+ "loss": 2.9277,
16
+ "num_input_tokens_seen": 24896,
17
+ "step": 5
18
+ },
19
+ {
20
+ "epoch": 1.6,
21
+ "grad_norm": 4.3577046394348145,
22
+ "learning_rate": 2.0658795558326743e-05,
23
+ "loss": 2.0351,
24
+ "num_input_tokens_seen": 50000,
25
+ "step": 10
26
+ },
27
+ {
28
+ "epoch": 2.4,
29
+ "grad_norm": 3.4381613731384277,
30
+ "learning_rate": 3.3493649053890326e-06,
31
+ "loss": 1.731,
32
+ "num_input_tokens_seen": 74784,
33
+ "step": 15
34
+ },
35
+ {
36
+ "epoch": 2.88,
37
+ "num_input_tokens_seen": 90320,
38
+ "step": 18,
39
+ "total_flos": 1075626816552960.0,
40
+ "train_loss": 2.124886062410143,
41
+ "train_runtime": 88.8196,
42
+ "train_samples_per_second": 3.378,
43
+ "train_steps_per_second": 0.203
44
+ }
45
+ ],
46
+ "logging_steps": 5,
47
+ "max_steps": 18,
48
+ "num_input_tokens_seen": 90320,
49
+ "num_train_epochs": 3,
50
+ "save_steps": 100,
51
+ "stateful_callbacks": {
52
+ "TrainerControl": {
53
+ "args": {
54
+ "should_epoch_stop": false,
55
+ "should_evaluate": false,
56
+ "should_log": false,
57
+ "should_save": true,
58
+ "should_training_stop": true
59
+ },
60
+ "attributes": {}
61
+ }
62
+ },
63
+ "total_flos": 1075626816552960.0,
64
+ "train_batch_size": 2,
65
+ "trial_name": null,
66
+ "trial_params": null
67
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:db089b3a417d8fcdedd0b43510f5de06917cb4d26e14d6b4f9c3a5e2a9cb7cc3
3
+ size 5432
training_args.yaml ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ bf16: true
2
+ cutoff_len: 1024
3
+ dataset: my_chartQA
4
+ dataset_dir: data
5
+ ddp_timeout: 180000000
6
+ do_train: true
7
+ finetuning_type: lora
8
+ flash_attn: auto
9
+ gradient_accumulation_steps: 8
10
+ include_num_input_tokens_seen: true
11
+ learning_rate: 5.0e-05
12
+ logging_steps: 5
13
+ lora_alpha: 16
14
+ lora_dropout: 0
15
+ lora_rank: 8
16
+ lora_target: all
17
+ lr_scheduler_type: cosine
18
+ max_grad_norm: 1.0
19
+ max_samples: 100000
20
+ model_name_or_path: Qwen/Qwen2-VL-2B-Instruct
21
+ num_train_epochs: 3.0
22
+ optim: adamw_torch
23
+ output_dir: saves/Qwen2-VL-2B-Instruct/lora/train_2024-10-08-07-24-35
24
+ packing: false
25
+ per_device_train_batch_size: 2
26
+ plot_loss: true
27
+ preprocessing_num_workers: 16
28
+ report_to: none
29
+ save_steps: 100
30
+ stage: sft
31
+ template: qwen2_vl
32
+ warmup_steps: 0
training_loss.png ADDED
vocab.json ADDED
The diff for this file is too large to render. See raw diff