Training in progress, step 20
Browse files- adapter_config.json +4 -2
- adapter_model.safetensors +2 -2
- chat_template.jinja +7 -0
- preprocessor_config.json +29 -0
- tokenizer_config.json +1 -1
- training_args.bin +1 -1
- video_preprocessor_config.json +86 -0
adapter_config.json
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
"auto_mapping": null,
|
4 |
"base_model_name_or_path": "Qwen/Qwen2.5-VL-7B-Instruct",
|
5 |
"bias": "none",
|
|
|
6 |
"eva_config": null,
|
7 |
"exclude_modules": null,
|
8 |
"fan_in_fan_out": false,
|
@@ -23,10 +24,11 @@
|
|
23 |
"rank_pattern": {},
|
24 |
"revision": null,
|
25 |
"target_modules": [
|
26 |
-
"
|
27 |
-
"
|
28 |
],
|
29 |
"task_type": "CAUSAL_LM",
|
|
|
30 |
"use_dora": false,
|
31 |
"use_rslora": false
|
32 |
}
|
|
|
3 |
"auto_mapping": null,
|
4 |
"base_model_name_or_path": "Qwen/Qwen2.5-VL-7B-Instruct",
|
5 |
"bias": "none",
|
6 |
+
"corda_config": null,
|
7 |
"eva_config": null,
|
8 |
"exclude_modules": null,
|
9 |
"fan_in_fan_out": false,
|
|
|
24 |
"rank_pattern": {},
|
25 |
"revision": null,
|
26 |
"target_modules": [
|
27 |
+
"v_proj",
|
28 |
+
"q_proj"
|
29 |
],
|
30 |
"task_type": "CAUSAL_LM",
|
31 |
+
"trainable_token_indices": null,
|
32 |
"use_dora": false,
|
33 |
"use_rslora": false
|
34 |
}
|
adapter_model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
-
size
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:70be61e5ec5ed5fd644839e5f2e2afb8bacfe0f6e0e649f3d165d3a238f6a258
|
3 |
+
size 10108960
|
chat_template.jinja
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{% 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
|
2 |
+
You are a helpful assistant.<|im_end|>
|
3 |
+
{% endif %}<|im_start|>{{ message['role'] }}
|
4 |
+
{% if message['content'] is string %}{{ message['content'] }}<|im_end|>
|
5 |
+
{% 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|>
|
6 |
+
{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant
|
7 |
+
{% endif %}
|
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": "Qwen2_5_VLProcessor",
|
22 |
+
"resample": 3,
|
23 |
+
"rescale_factor": 0.00392156862745098,
|
24 |
+
"size": {
|
25 |
+
"longest_edge": 12845056,
|
26 |
+
"shortest_edge": 3136
|
27 |
+
},
|
28 |
+
"temporal_patch_size": 2
|
29 |
+
}
|
tokenizer_config.json
CHANGED
@@ -195,13 +195,13 @@
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
-
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
"eos_token": "<|im_end|>",
|
201 |
"errors": "replace",
|
202 |
"extra_special_tokens": {},
|
203 |
"model_max_length": 131072,
|
204 |
"pad_token": "<|endoftext|>",
|
|
|
205 |
"split_special_tokens": false,
|
206 |
"tokenizer_class": "Qwen2Tokenizer",
|
207 |
"unk_token": null
|
|
|
195 |
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
|
|
198 |
"clean_up_tokenization_spaces": false,
|
199 |
"eos_token": "<|im_end|>",
|
200 |
"errors": "replace",
|
201 |
"extra_special_tokens": {},
|
202 |
"model_max_length": 131072,
|
203 |
"pad_token": "<|endoftext|>",
|
204 |
+
"processor_class": "Qwen2_5_VLProcessor",
|
205 |
"split_special_tokens": false,
|
206 |
"tokenizer_class": "Qwen2Tokenizer",
|
207 |
"unk_token": null
|
training_args.bin
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 5688
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1dac9fc13b92e29c1aebd85ce905595f91b701715359ab6ad0d06a06eb07bc8d
|
3 |
size 5688
|
video_preprocessor_config.json
ADDED
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_valid_kwargs_names": [
|
3 |
+
"do_convert_rgb",
|
4 |
+
"do_resize",
|
5 |
+
"size",
|
6 |
+
"size_divisor",
|
7 |
+
"default_to_square",
|
8 |
+
"resample",
|
9 |
+
"do_rescale",
|
10 |
+
"rescale_factor",
|
11 |
+
"do_normalize",
|
12 |
+
"image_mean",
|
13 |
+
"image_std",
|
14 |
+
"do_pad",
|
15 |
+
"do_center_crop",
|
16 |
+
"crop_size",
|
17 |
+
"data_format",
|
18 |
+
"input_data_format",
|
19 |
+
"device",
|
20 |
+
"min_pixels",
|
21 |
+
"max_pixels",
|
22 |
+
"patch_size",
|
23 |
+
"temporal_patch_size",
|
24 |
+
"merge_size"
|
25 |
+
],
|
26 |
+
"crop_size": null,
|
27 |
+
"data_format": "channels_first",
|
28 |
+
"default_to_square": true,
|
29 |
+
"device": null,
|
30 |
+
"do_center_crop": null,
|
31 |
+
"do_convert_rgb": true,
|
32 |
+
"do_normalize": true,
|
33 |
+
"do_pad": null,
|
34 |
+
"do_rescale": true,
|
35 |
+
"do_resize": true,
|
36 |
+
"image_mean": [
|
37 |
+
0.48145466,
|
38 |
+
0.4578275,
|
39 |
+
0.40821073
|
40 |
+
],
|
41 |
+
"image_processor_type": "Qwen2VLImageProcessor",
|
42 |
+
"image_std": [
|
43 |
+
0.26862954,
|
44 |
+
0.26130258,
|
45 |
+
0.27577711
|
46 |
+
],
|
47 |
+
"input_data_format": null,
|
48 |
+
"max_pixels": 12845056,
|
49 |
+
"merge_size": 2,
|
50 |
+
"min_pixels": 3136,
|
51 |
+
"model_valid_processing_keys": [
|
52 |
+
"do_convert_rgb",
|
53 |
+
"do_resize",
|
54 |
+
"size",
|
55 |
+
"size_divisor",
|
56 |
+
"default_to_square",
|
57 |
+
"resample",
|
58 |
+
"do_rescale",
|
59 |
+
"rescale_factor",
|
60 |
+
"do_normalize",
|
61 |
+
"image_mean",
|
62 |
+
"image_std",
|
63 |
+
"do_pad",
|
64 |
+
"do_center_crop",
|
65 |
+
"crop_size",
|
66 |
+
"data_format",
|
67 |
+
"input_data_format",
|
68 |
+
"device",
|
69 |
+
"min_pixels",
|
70 |
+
"max_pixels",
|
71 |
+
"patch_size",
|
72 |
+
"temporal_patch_size",
|
73 |
+
"merge_size"
|
74 |
+
],
|
75 |
+
"patch_size": 14,
|
76 |
+
"processor_class": "Qwen2_5_VLProcessor",
|
77 |
+
"resample": 3,
|
78 |
+
"rescale_factor": 0.00392156862745098,
|
79 |
+
"size": {
|
80 |
+
"longest_edge": 12845056,
|
81 |
+
"shortest_edge": 3136
|
82 |
+
},
|
83 |
+
"size_divisor": null,
|
84 |
+
"temporal_patch_size": 2,
|
85 |
+
"video_processor_type": "Qwen2VLVideoProcessor"
|
86 |
+
}
|