SorenNumind commited on
Commit
14db392
·
verified ·
1 Parent(s): 5dc5e54

Upload folder using huggingface_hub

Browse files
chat_template.json CHANGED
@@ -1,3 +1,3 @@
1
  {
2
- "chat_template": "{% set image_placeholder = '<|vision_start|><|image_pad|><|vision_end|>' %}\n{% for message in messages %}\n {#--- Handle User Messages with Template and Examples ---#}\n {%- if message['role'] == 'user' and template -%}\n {% if loop.first and message['role'] != 'system' %}\n {{- '<|im_start|>system\\nYou are NuExtract, an information extraction tool created by NuMind.<|im_end|>' }}\n {% endif %}\n \n {{- '<|im_start|>' + message['role'] -}}\n \n {#--- Template Section ---#}\n {{ '\\n# Template:' }}\n {{- '\\n' + template + '\\n' }}\n \n {#--- Examples Section (if provided) ---#}\n {% if examples -%}\n {{- '# Examples:' }}\n {% for example in examples %}\n {{- '## Input:\\n' }}\n {#--- Handle image examples ---#}\n {% if example['input'] is mapping and example['input']['type'] == 'image' %}\n {{- image_placeholder | trim -}}\n {% elif example['input'] == '<image>' %}\n {{- image_placeholder | trim -}}\n {% else %}\n {{- example['input'] -}}\n {% endif %}\n {{- '\\n## Output:\\n' ~ example['output'] }}\n {% endfor %}\n {%- endif %}\n \n {#--- Context Section: Handle various content types ---#}\n {{- '# Context:\\n' }}\n {%- if message['content'] is string -%}\n {#--- Simple string content ---#}\n {{- message['content'] | trim -}}\n {%- elif message['content'] is mapping and message['content']['type'] == 'image' -%}\n {#--- Single image document ---#}\n {{- image_placeholder | trim -}}\n {%- else -%}\n {#--- List of content items (mixed text/images) ---#}\n {#--- First, determine what the actual input content is (not ICL images) ---#}\n {%- set ns = namespace(has_text_input=false, text_content='') -%}\n \n {#--- Count content types and identify actual input document ---#}\n {%- for content in message['content'] -%}\n {%- if content is mapping and content.get('type') == 'text' -%}\n {%- if content.get('text') != '<image>' -%}\n {%- set ns.has_text_input = true -%}\n {%- set ns.text_content = content['text'] -%}\n {%- endif -%}\n {%- elif content is string -%}\n {%- if content != '<image>' -%}\n {%- set ns.has_text_input = true -%}\n {%- set ns.text_content = content -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n \n {#--- Determine what to output based on actual input type ---#}\n {%- if ns.has_text_input -%}\n {#--- Main input is text, so output the text content ---#}\n {{- ns.text_content | trim -}}\n {%- else -%}\n {#--- Main input is image or <image> placeholder ---#}\n {%- set ns2 = namespace(found_image=false) -%}\n {%- for content in message['content'] -%}\n {%- if content is mapping and content.get('type') == 'image' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- elif content is mapping and content.get('type') == 'text' and content.get('text') == '<image>' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- elif content is string and content == '<image>' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- endif -%}\n {{- '<|im_end|>\\n'}}\n \n {#--- Handle All Other Messages (Assistant, System, etc.) ---#}\n {% else %}\n {% if loop.first and message['role'] != 'system' %}\n {{- '<|im_start|>system\\nYou are a helpful assistant.<|im_end|>' }}\n {% endif %}\n \n {{- '<|im_start|>' + message['role'] + '\\n' }}\n \n {#--- Same content handling logic as above but without template/examples ---#}\n {%- if message['content'] is string -%}\n {{- message['content'] | trim }}\n {%- elif message['content'] is mapping and message['content']['type'] == 'image' -%}\n {{- image_placeholder | trim }}\n {%- else -%}\n {%- set ns = namespace(found=false) -%}\n {%- for content in message['content'] -%}\n {%- if content is string -%}\n {{- content | trim -}}\n {%- elif content is mapping and content.get('type') == 'text' -%}\n {{- content['text'] | trim -}}\n {%- elif content is mapping and content.get('type') == 'image' -%}\n {# Skip adding image placeholder - it's already in the text #}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {{- '<|im_end|>'}}\n {% endif %}\n{% endfor -%}\n{#--- Add Generation Prompt if Requested ---#}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant' }}\n{% endif -%}"
3
  }
 
1
  {
2
+ "chat_template": "{% set image_placeholder = '<|vision_start|><|image_pad|><|vision_end|>' %}\n{% for message in messages %}\n {#--- Handle User Messages with Template and Examples ---#}\n {%- if message['role'] == 'user' and template -%}\n {% if loop.first and message['role'] != 'system' %}\n {{- '<|im_start|>system\nYou are NuExtract, an information extraction tool created by NuMind.<|im_end|>' }}\n {% endif %}\n \n {{- '<|im_start|>' + message['role'] -}}\n \n {#--- Template Section ---#}\n {{ '\n# Template:' }}\n {{- '\n' + template + '\n' }}\n \n {#--- Examples Section (if provided) ---#}\n {% if examples -%}\n {{- '# Examples:' }}\n {% for example in examples %}\n {{- '## Input:\n' }}\n {#--- Handle image examples ---#}\n {% if example['input'] is mapping and example['input']['type'] == 'image' %}\n {{- image_placeholder | trim -}}\n {% elif example['input'] == '<image>' %}\n {{- image_placeholder | trim -}}\n {% else %}\n {{- example['input'] -}}\n {% endif %}\n {{- '\n## Output:\n' ~ example['output'] }}\n {% endfor %}\n {%- endif %}\n \n {#--- Context Section: Handle various content types ---#}\n {{- '# Context:\n' }}\n {%- if message['content'] is string -%}\n {#--- Simple string content ---#}\n {{- message['content'] | trim -}}\n {%- elif message['content'] is mapping and message['content']['type'] == 'image' -%}\n {#--- Single image document ---#}\n {{- image_placeholder | trim -}}\n {%- else -%}\n {#--- List of content items (mixed text/images) ---#}\n {#--- First, determine what the actual input content is (not ICL images) ---#}\n {%- set ns = namespace(has_text_input=false, text_content='') -%}\n \n {#--- Count content types and identify actual input document ---#}\n {%- for content in message['content'] -%}\n {%- if content is mapping and content.get('type') == 'text' -%}\n {%- if content.get('text') != '<image>' -%}\n {%- set ns.has_text_input = true -%}\n {%- set ns.text_content = content['text'] -%}\n {%- endif -%}\n {%- elif content is string -%}\n {%- if content != '<image>' -%}\n {%- set ns.has_text_input = true -%}\n {%- set ns.text_content = content -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n \n {#--- Determine what to output based on actual input type ---#}\n {%- if ns.has_text_input -%}\n {#--- Main input is text, so output the text content ---#}\n {{- ns.text_content | trim -}}\n {%- else -%}\n {#--- Main input is image or <image> placeholder ---#}\n {%- set ns2 = namespace(found_image=false) -%}\n {%- for content in message['content'] -%}\n {%- if content is mapping and content.get('type') == 'image' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- elif content is mapping and content.get('type') == 'text' and content.get('text') == '<image>' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- elif content is string and content == '<image>' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- endif -%}\n {{- '<|im_end|>\n'}}\n \n {#--- Handle All Other Messages (Assistant, System, etc.) ---#}\n {% else %}\n {% if loop.first and message['role'] != 'system' %}\n {{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>' }}\n {% endif %}\n \n {{- '<|im_start|>' + message['role'] + '\n' }}\n \n {#--- Same content handling logic as above but without template/examples ---#}\n {%- if message['content'] is string -%}\n {{- message['content'] | trim }}\n {%- elif message['content'] is mapping and message['content']['type'] == 'image' -%}\n {{- image_placeholder | trim }}\n {%- else -%}\n {%- for content in message['content'] -%}\n {%- if content is string -%}\n {{- content | trim -}}\n {%- elif content is mapping and content.get('type') == 'text' and content.get('text') == '<image>' -%}\n {{- image_placeholder | trim }}\n {%- elif content is mapping and content.get('type') == 'text' -%}\n {{- content['text'] | trim -}}\n {%- elif content is mapping and content.get('type') == 'image' -%}\n {# Skip adding image placeholder - it's already in the text #}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {{- '<|im_end|>'}}\n {% endif %}\n{% endfor -%}\n{#--- Add Generation Prompt if Requested ---#}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant' }}\n{% endif -%}"
3
  }
model-00001-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f316f7d32005bf1d3cdea03bf96ea17162ca4d6e60e351979e7cd7bf52e30f3f
3
  size 3984201128
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c031e6ade26c8bd2f3ebb988be752737479f30658c76e6738b90d7099dd7f4a5
3
  size 3984201128
model-00002-of-00002.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:bbbcf658394272c859398721880f3d6ad9994faeb641234d983a837ff9557e68
3
  size 2944322576
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b377f9bec88da826022e7a0b469bd3189a45b4716b7587ac902aaed1a175ce68
3
  size 2944322576
preprocessor_config.json CHANGED
@@ -14,7 +14,7 @@
14
  0.26130258,
15
  0.27577711
16
  ],
17
- "max_pixels": 2352000,
18
  "merge_size": 2,
19
  "min_pixels": 200704,
20
  "patch_size": 14,
@@ -22,7 +22,7 @@
22
  "resample": 3,
23
  "rescale_factor": 0.00392156862745098,
24
  "size": {
25
- "longest_edge": 2352000,
26
  "shortest_edge": 200704
27
  },
28
  "temporal_patch_size": 2
 
14
  0.26130258,
15
  0.27577711
16
  ],
17
+ "max_pixels": 23000000,
18
  "merge_size": 2,
19
  "min_pixels": 200704,
20
  "patch_size": 14,
 
22
  "resample": 3,
23
  "rescale_factor": 0.00392156862745098,
24
  "size": {
25
+ "longest_edge": 23000000,
26
  "shortest_edge": 200704
27
  },
28
  "temporal_patch_size": 2
quant_log.csv CHANGED
@@ -1,197 +1,197 @@
1
  layer,module,loss,samples,damp,time
2
- 0,self_attn.k_proj,0.22934364,0.01000,0.892
3
- 0,self_attn.v_proj,0.03837002,0.01000,0.661
4
- 0,self_attn.q_proj,1.04664111,0.01000,0.683
5
- 0,self_attn.o_proj,0.18172245,0.01000,0.757
6
- 0,mlp.up_proj,1.13388586,0.01000,0.656
7
- 0,mlp.gate_proj,3.09285045,0.01000,0.665
8
- 0,mlp.down_proj,0.35983995,0.01000,4.150
9
- 1,self_attn.k_proj,0.15428428,0.01000,0.671
10
- 1,self_attn.v_proj,0.03529196,0.01000,0.664
11
- 1,self_attn.q_proj,0.55903387,0.01000,0.666
12
- 1,self_attn.o_proj,0.04787841,0.01000,0.712
13
- 1,mlp.up_proj,18.38950729,0.01000,0.704
14
- 1,mlp.gate_proj,28.34197617,0.01000,0.689
15
- 1,mlp.down_proj,0.70064735,0.01000,4.124
16
- 2,self_attn.k_proj,0.65991199,0.01000,0.691
17
- 2,self_attn.v_proj,0.10460287,0.01000,0.670
18
- 2,self_attn.q_proj,2.31665039,0.01000,0.680
19
- 2,self_attn.o_proj,0.11942939,0.01000,0.671
20
- 2,mlp.up_proj,24.11547470,0.01000,0.712
21
- 2,mlp.gate_proj,39.89593887,0.01000,0.708
22
- 2,mlp.down_proj,1.31074762,0.01000,4.236
23
- 3,self_attn.k_proj,0.84950960,0.01000,0.666
24
- 3,self_attn.v_proj,0.19167003,0.01000,0.671
25
- 3,self_attn.q_proj,3.01005602,0.01000,0.688
26
- 3,self_attn.o_proj,0.32401937,0.01000,0.745
27
- 3,mlp.up_proj,68.73696899,0.01000,0.708
28
- 3,mlp.gate_proj,89.53257751,0.01000,0.708
29
- 3,mlp.down_proj,0.00898164,0.01250,4.775
30
- 4,self_attn.k_proj,1.53517699,0.01000,0.665
31
- 4,self_attn.v_proj,0.40849376,0.01000,0.663
32
- 4,self_attn.q_proj,6.51189804,0.01000,0.670
33
- 4,self_attn.o_proj,0.26355922,0.01000,0.677
34
- 4,mlp.up_proj,66.49259186,0.01000,0.707
35
- 4,mlp.gate_proj,97.14162445,0.01000,0.705
36
- 4,mlp.down_proj,1.66220617,0.01000,3.796
37
- 5,self_attn.k_proj,1.43371511,0.01000,0.615
38
- 5,self_attn.v_proj,0.50023222,0.01000,0.591
39
- 5,self_attn.q_proj,6.66476917,0.01000,0.597
40
- 5,self_attn.o_proj,0.30378860,0.01000,0.618
41
- 5,mlp.up_proj,101.89800262,0.01000,0.638
42
- 5,mlp.gate_proj,125.24084473,0.01000,0.627
43
- 5,mlp.down_proj,1.60059404,0.01000,3.778
44
- 6,self_attn.k_proj,0.92172015,0.01000,0.613
45
- 6,self_attn.v_proj,0.42535174,0.01000,0.591
46
- 6,self_attn.q_proj,4.48267555,0.01000,0.595
47
- 6,self_attn.o_proj,0.36357266,0.01000,0.611
48
- 6,mlp.up_proj,24.59759331,0.01000,0.624
49
- 6,mlp.gate_proj,35.07592392,0.01000,0.638
50
- 6,mlp.down_proj,2.50812578,0.01000,3.835
51
- 7,self_attn.k_proj,1.01294935,0.01000,0.609
52
- 7,self_attn.v_proj,0.77045107,0.01000,0.613
53
- 7,self_attn.q_proj,5.43582582,0.01000,0.614
54
- 7,self_attn.o_proj,0.80026621,0.01000,0.620
55
- 7,mlp.up_proj,22.76921463,0.01000,0.628
56
- 7,mlp.gate_proj,25.30647087,0.01000,0.629
57
- 7,mlp.down_proj,3.32554030,0.01000,3.785
58
- 8,self_attn.k_proj,1.85888863,0.01000,0.604
59
- 8,self_attn.v_proj,0.64720315,0.01000,0.599
60
- 8,self_attn.q_proj,8.09165096,0.01000,0.613
61
- 8,self_attn.o_proj,0.81129563,0.01000,0.613
62
- 8,mlp.up_proj,23.76294708,0.01000,0.626
63
- 8,mlp.gate_proj,24.66311836,0.01000,0.645
64
- 8,mlp.down_proj,3.01938772,0.01000,3.814
65
- 9,self_attn.k_proj,1.35928941,0.01000,0.614
66
- 9,self_attn.v_proj,0.89568245,0.01000,0.592
67
- 9,self_attn.q_proj,7.29413176,0.01000,0.588
68
- 9,self_attn.o_proj,1.05590606,0.01000,0.615
69
- 9,mlp.up_proj,44.35252380,0.01000,0.630
70
- 9,mlp.gate_proj,70.72398376,0.01000,0.624
71
- 9,mlp.down_proj,2.76210523,0.01000,3.845
72
- 10,self_attn.k_proj,1.23918748,0.01000,0.607
73
- 10,self_attn.v_proj,0.55778021,0.01000,0.607
74
- 10,self_attn.q_proj,6.26078033,0.01000,0.614
75
- 10,self_attn.o_proj,0.77913922,0.01000,0.618
76
- 10,mlp.up_proj,23.32112503,0.01000,0.634
77
- 10,mlp.gate_proj,25.68299103,0.01000,0.638
78
- 10,mlp.down_proj,2.54661942,0.01000,3.813
79
- 11,self_attn.k_proj,1.53753209,0.01000,0.607
80
- 11,self_attn.v_proj,0.51970351,0.01000,0.604
81
- 11,self_attn.q_proj,6.50641966,0.01000,0.616
82
- 11,self_attn.o_proj,0.92502165,0.01000,0.608
83
- 11,mlp.up_proj,20.66933441,0.01000,0.638
84
- 11,mlp.gate_proj,21.23263741,0.01000,0.635
85
- 11,mlp.down_proj,2.25344348,0.01000,4.033
86
- 12,self_attn.k_proj,1.53166485,0.01000,0.626
87
- 12,self_attn.v_proj,0.64538920,0.01000,0.610
88
- 12,self_attn.q_proj,6.94316101,0.01000,0.605
89
- 12,self_attn.o_proj,0.87411481,0.01000,0.625
90
- 12,mlp.up_proj,20.04409599,0.01000,0.652
91
- 12,mlp.gate_proj,19.51464081,0.01000,0.637
92
- 12,mlp.down_proj,2.57592607,0.01000,3.873
93
- 13,self_attn.k_proj,1.32833993,0.01000,0.618
94
- 13,self_attn.v_proj,0.81650221,0.01000,0.629
95
- 13,self_attn.q_proj,7.09064341,0.01000,0.627
96
- 13,self_attn.o_proj,1.31635439,0.01000,0.630
97
- 13,mlp.up_proj,18.86554718,0.01000,0.611
98
- 13,mlp.gate_proj,19.77309418,0.01000,0.610
99
- 13,mlp.down_proj,2.35630417,0.01000,3.936
100
- 14,self_attn.k_proj,1.82241821,0.01000,0.634
101
- 14,self_attn.v_proj,0.73135352,0.01000,0.604
102
- 14,self_attn.q_proj,9.67517090,0.01000,0.602
103
- 14,self_attn.o_proj,1.25940311,0.01000,0.608
104
- 14,mlp.up_proj,20.62960625,0.01000,0.645
105
- 14,mlp.gate_proj,20.46133423,0.01000,0.616
106
- 14,mlp.down_proj,2.82057142,0.01000,3.900
107
- 15,self_attn.k_proj,1.70337152,0.01000,0.631
108
- 15,self_attn.v_proj,0.67042011,0.01000,0.613
109
- 15,self_attn.q_proj,7.78093481,0.01000,0.612
110
- 15,self_attn.o_proj,1.17886329,0.01000,0.643
111
- 15,mlp.up_proj,19.40904999,0.01000,0.653
112
- 15,mlp.gate_proj,18.71631050,0.01000,0.644
113
- 15,mlp.down_proj,2.82252669,0.01000,3.906
114
- 16,self_attn.k_proj,1.62367511,0.01000,0.608
115
- 16,self_attn.v_proj,0.81770545,0.01000,0.627
116
- 16,self_attn.q_proj,8.22268105,0.01000,0.620
117
- 16,self_attn.o_proj,1.57963610,0.01000,0.617
118
- 16,mlp.up_proj,21.05099106,0.01000,0.628
119
- 16,mlp.gate_proj,20.19021988,0.01000,0.608
120
- 16,mlp.down_proj,2.81001258,0.01000,3.875
121
- 17,self_attn.k_proj,1.57098889,0.01000,0.629
122
- 17,self_attn.v_proj,0.99635255,0.01000,0.619
123
- 17,self_attn.q_proj,8.82118225,0.01000,0.623
124
- 17,self_attn.o_proj,1.32361174,0.01000,0.617
125
- 17,mlp.up_proj,24.42174530,0.01000,0.646
126
- 17,mlp.gate_proj,22.89795303,0.01000,0.641
127
- 17,mlp.down_proj,3.81908369,0.01000,3.904
128
- 18,self_attn.k_proj,1.23440194,0.01000,0.620
129
- 18,self_attn.v_proj,1.10619903,0.01000,0.606
130
- 18,self_attn.q_proj,7.51200390,0.01000,0.599
131
- 18,self_attn.o_proj,1.73457372,0.01000,0.609
132
- 18,mlp.up_proj,25.92087555,0.01000,0.643
133
- 18,mlp.gate_proj,23.99379730,0.01000,0.640
134
- 18,mlp.down_proj,4.36758852,0.01000,3.931
135
- 19,self_attn.k_proj,1.25790572,0.01000,0.614
136
- 19,self_attn.v_proj,1.34400010,0.01000,0.611
137
- 19,self_attn.q_proj,8.63450813,0.01000,0.614
138
- 19,self_attn.o_proj,1.89839542,0.01000,0.635
139
- 19,mlp.up_proj,27.69528198,0.01000,0.645
140
- 19,mlp.gate_proj,26.82501984,0.01000,0.648
141
- 19,mlp.down_proj,4.74956894,0.01000,3.905
142
- 20,self_attn.k_proj,1.25337625,0.01000,0.622
143
- 20,self_attn.v_proj,1.42921281,0.01000,0.617
144
- 20,self_attn.q_proj,7.67919111,0.01000,0.621
145
- 20,self_attn.o_proj,1.30257142,0.01000,0.628
146
- 20,mlp.up_proj,32.92043304,0.01000,0.629
147
- 20,mlp.gate_proj,31.62638092,0.01000,0.638
148
- 20,mlp.down_proj,8.67299080,0.01000,3.894
149
- 21,self_attn.k_proj,1.36191201,0.01000,0.618
150
- 21,self_attn.v_proj,2.07398558,0.01000,0.618
151
- 21,self_attn.q_proj,8.82353687,0.01000,0.618
152
- 21,self_attn.o_proj,3.09994173,0.01000,0.624
153
- 21,mlp.up_proj,38.89333344,0.01000,0.637
154
- 21,mlp.gate_proj,39.41935349,0.01000,0.638
155
- 21,mlp.down_proj,11.07148075,0.01000,3.856
156
- 22,self_attn.k_proj,1.76161993,0.01000,0.612
157
- 22,self_attn.v_proj,3.56185842,0.01000,0.622
158
- 22,self_attn.q_proj,11.30374718,0.01000,0.615
159
- 22,self_attn.o_proj,3.15226030,0.01000,0.680
160
- 22,mlp.up_proj,54.62146759,0.01000,0.651
161
- 22,mlp.gate_proj,55.30439758,0.01000,0.639
162
- 22,mlp.down_proj,21.54609680,0.01000,3.876
163
- 23,self_attn.k_proj,2.53168511,0.01000,0.625
164
- 23,self_attn.v_proj,6.27215004,0.01000,0.619
165
- 23,self_attn.q_proj,15.55590439,0.01000,0.619
166
- 23,self_attn.o_proj,8.35873032,0.01000,0.613
167
- 23,mlp.up_proj,77.19926453,0.01000,0.635
168
- 23,mlp.gate_proj,79.10525513,0.01000,0.631
169
- 23,mlp.down_proj,28.26859283,0.01000,3.882
170
- 24,self_attn.k_proj,2.05039835,0.01000,0.635
171
- 24,self_attn.v_proj,6.27515268,0.01000,0.616
172
- 24,self_attn.q_proj,14.22914314,0.01000,0.623
173
- 24,self_attn.o_proj,3.39730763,0.01000,0.604
174
- 24,mlp.up_proj,85.59671021,0.01000,0.635
175
- 24,mlp.gate_proj,81.40880585,0.01000,0.619
176
- 24,mlp.down_proj,39.02641296,0.01000,3.923
177
- 25,self_attn.k_proj,2.47165418,0.01000,0.627
178
- 25,self_attn.v_proj,10.35423660,0.01000,0.603
179
- 25,self_attn.q_proj,16.47983932,0.01000,0.597
180
- 25,self_attn.o_proj,6.00129890,0.01000,0.617
181
- 25,mlp.up_proj,105.36215210,0.01000,0.627
182
- 25,mlp.gate_proj,94.51289368,0.01000,0.619
183
- 25,mlp.down_proj,53.65631866,0.01000,3.914
184
- 26,self_attn.k_proj,3.47986841,0.01000,0.615
185
- 26,self_attn.v_proj,25.66146660,0.01000,0.594
186
- 26,self_attn.q_proj,27.72456932,0.01000,0.613
187
- 26,self_attn.o_proj,14.51625061,0.01000,0.640
188
- 26,mlp.up_proj,105.19096375,0.01000,0.652
189
- 26,mlp.gate_proj,92.72835541,0.01000,0.626
190
- 26,mlp.down_proj,0.00014774,0.01250,4.497
191
- 27,self_attn.k_proj,3.90117908,0.01000,0.626
192
- 27,self_attn.v_proj,36.91463470,0.01000,0.619
193
- 27,self_attn.q_proj,42.00445557,0.01000,0.626
194
- 27,self_attn.o_proj,25.07783699,0.01000,0.632
195
- 27,mlp.up_proj,139.82276917,0.01000,0.650
196
- 27,mlp.gate_proj,135.11968994,0.01000,0.643
197
- 27,mlp.down_proj,280.19879150,0.01000,3.917
 
1
  layer,module,loss,samples,damp,time
2
+ 0,self_attn.k_proj,0.37272908,0.01000,0.963
3
+ 0,self_attn.v_proj,0.06249057,0.01000,0.568
4
+ 0,self_attn.q_proj,1.71414546,0.01000,0.582
5
+ 0,self_attn.o_proj,0.27218719,0.01000,0.579
6
+ 0,mlp.up_proj,1.97148761,0.01000,0.602
7
+ 0,mlp.gate_proj,5.45231162,0.01000,0.596
8
+ 0,mlp.down_proj,0.61297246,0.01000,3.775
9
+ 1,self_attn.k_proj,0.27201448,0.01000,0.597
10
+ 1,self_attn.v_proj,0.06198664,0.01000,0.593
11
+ 1,self_attn.q_proj,0.98380148,0.01000,0.580
12
+ 1,self_attn.o_proj,0.07505655,0.01000,0.641
13
+ 1,mlp.up_proj,29.94800979,0.01000,0.609
14
+ 1,mlp.gate_proj,46.14816320,0.01000,0.605
15
+ 1,mlp.down_proj,1.18726570,0.01000,3.571
16
+ 2,self_attn.k_proj,1.10431638,0.01000,0.573
17
+ 2,self_attn.v_proj,0.17621659,0.01000,0.580
18
+ 2,self_attn.q_proj,3.89487222,0.01000,0.582
19
+ 2,self_attn.o_proj,0.19335656,0.01000,0.599
20
+ 2,mlp.up_proj,39.82002804,0.01000,0.599
21
+ 2,mlp.gate_proj,65.63606855,0.01000,0.596
22
+ 2,mlp.down_proj,2.19458135,0.01000,3.704
23
+ 3,self_attn.k_proj,1.41276497,0.01000,0.583
24
+ 3,self_attn.v_proj,0.32184546,0.01000,0.565
25
+ 3,self_attn.q_proj,5.03698810,0.01000,0.568
26
+ 3,self_attn.o_proj,0.52726446,0.01000,0.599
27
+ 3,mlp.up_proj,114.33669945,0.01000,0.638
28
+ 3,mlp.gate_proj,148.85794254,0.01000,0.621
29
+ 3,mlp.down_proj,0.01009648,0.01250,4.438
30
+ 4,self_attn.k_proj,2.52166661,0.01000,0.639
31
+ 4,self_attn.v_proj,0.67622127,0.01000,0.620
32
+ 4,self_attn.q_proj,10.74245164,0.01000,0.600
33
+ 4,self_attn.o_proj,0.42747642,0.01000,0.602
34
+ 4,mlp.up_proj,110.46822172,0.01000,0.661
35
+ 4,mlp.gate_proj,161.16622643,0.01000,0.668
36
+ 4,mlp.down_proj,2.72548815,0.01000,3.644
37
+ 5,self_attn.k_proj,2.36542153,0.01000,0.596
38
+ 5,self_attn.v_proj,0.82987875,0.01000,0.580
39
+ 5,self_attn.q_proj,10.98670529,0.01000,0.583
40
+ 5,self_attn.o_proj,0.48163516,0.01000,0.578
41
+ 5,mlp.up_proj,169.33053275,0.01000,0.606
42
+ 5,mlp.gate_proj,208.03480575,0.01000,0.632
43
+ 5,mlp.down_proj,2.63673970,0.01000,3.785
44
+ 6,self_attn.k_proj,1.51797450,0.01000,0.567
45
+ 6,self_attn.v_proj,0.70319183,0.01000,0.574
46
+ 6,self_attn.q_proj,7.39946994,0.01000,0.575
47
+ 6,self_attn.o_proj,0.58445273,0.01000,0.597
48
+ 6,mlp.up_proj,40.56810539,0.01000,0.589
49
+ 6,mlp.gate_proj,57.70911391,0.01000,0.594
50
+ 6,mlp.down_proj,4.15842980,0.01000,3.864
51
+ 7,self_attn.k_proj,1.65347762,0.01000,0.605
52
+ 7,self_attn.v_proj,1.26919441,0.01000,0.621
53
+ 7,self_attn.q_proj,8.91557116,0.01000,0.617
54
+ 7,self_attn.o_proj,1.26652386,0.01000,0.634
55
+ 7,mlp.up_proj,37.50803346,0.01000,0.644
56
+ 7,mlp.gate_proj,41.65068270,0.01000,0.663
57
+ 7,mlp.down_proj,5.51070028,0.01000,3.738
58
+ 8,self_attn.k_proj,3.05815341,0.01000,0.599
59
+ 8,self_attn.v_proj,1.05918791,0.01000,0.605
60
+ 8,self_attn.q_proj,13.26367949,0.01000,0.607
61
+ 8,self_attn.o_proj,1.30098944,0.01000,0.605
62
+ 8,mlp.up_proj,39.01938902,0.01000,0.591
63
+ 8,mlp.gate_proj,40.47557959,0.01000,0.582
64
+ 8,mlp.down_proj,5.03287961,0.01000,3.769
65
+ 9,self_attn.k_proj,2.22347360,0.01000,0.609
66
+ 9,self_attn.v_proj,1.48193391,0.01000,0.608
67
+ 9,self_attn.q_proj,11.94389274,0.01000,0.585
68
+ 9,self_attn.o_proj,1.67733308,0.01000,0.602
69
+ 9,mlp.up_proj,72.89947883,0.01000,0.633
70
+ 9,mlp.gate_proj,116.10071928,0.01000,0.614
71
+ 9,mlp.down_proj,4.55470750,0.01000,3.589
72
+ 10,self_attn.k_proj,2.02291953,0.01000,0.587
73
+ 10,self_attn.v_proj,0.91743158,0.01000,0.572
74
+ 10,self_attn.q_proj,10.23927115,0.01000,0.586
75
+ 10,self_attn.o_proj,1.26303708,0.01000,0.628
76
+ 10,mlp.up_proj,38.33327576,0.01000,0.631
77
+ 10,mlp.gate_proj,42.22324041,0.01000,0.631
78
+ 10,mlp.down_proj,4.19643478,0.01000,3.880
79
+ 11,self_attn.k_proj,2.49720556,0.01000,0.604
80
+ 11,self_attn.v_proj,0.84860099,0.01000,0.604
81
+ 11,self_attn.q_proj,10.59318743,0.01000,0.614
82
+ 11,self_attn.o_proj,1.44926018,0.01000,0.613
83
+ 11,mlp.up_proj,34.05972397,0.01000,0.600
84
+ 11,mlp.gate_proj,34.98881461,0.01000,0.621
85
+ 11,mlp.down_proj,3.78504640,0.01000,3.701
86
+ 12,self_attn.k_proj,2.51501925,0.01000,0.643
87
+ 12,self_attn.v_proj,1.06571939,0.01000,0.612
88
+ 12,self_attn.q_proj,11.37260368,0.01000,0.595
89
+ 12,self_attn.o_proj,1.42345318,0.01000,0.574
90
+ 12,mlp.up_proj,33.02424516,0.01000,0.609
91
+ 12,mlp.gate_proj,32.15129480,0.01000,0.631
92
+ 12,mlp.down_proj,4.32310599,0.01000,3.762
93
+ 13,self_attn.k_proj,2.17874396,0.01000,0.600
94
+ 13,self_attn.v_proj,1.34991701,0.01000,0.585
95
+ 13,self_attn.q_proj,11.63673653,0.01000,0.595
96
+ 13,self_attn.o_proj,2.12498794,0.01000,0.577
97
+ 13,mlp.up_proj,31.13961415,0.01000,0.606
98
+ 13,mlp.gate_proj,32.60532906,0.01000,0.599
99
+ 13,mlp.down_proj,3.95873230,0.01000,3.753
100
+ 14,self_attn.k_proj,2.99430476,0.01000,0.563
101
+ 14,self_attn.v_proj,1.20193668,0.01000,0.557
102
+ 14,self_attn.q_proj,15.81873781,0.01000,0.563
103
+ 14,self_attn.o_proj,2.06551350,0.01000,0.634
104
+ 14,mlp.up_proj,33.95725983,0.01000,0.578
105
+ 14,mlp.gate_proj,33.69845680,0.01000,0.593
106
+ 14,mlp.down_proj,4.71709626,0.01000,3.694
107
+ 15,self_attn.k_proj,2.77116690,0.01000,0.609
108
+ 15,self_attn.v_proj,1.10220412,0.01000,0.591
109
+ 15,self_attn.q_proj,12.72785654,0.01000,0.599
110
+ 15,self_attn.o_proj,1.87682963,0.01000,0.609
111
+ 15,mlp.up_proj,31.97431222,0.01000,0.659
112
+ 15,mlp.gate_proj,30.82866852,0.01000,0.627
113
+ 15,mlp.down_proj,4.68322897,0.01000,3.653
114
+ 16,self_attn.k_proj,2.65178245,0.01000,0.597
115
+ 16,self_attn.v_proj,1.33414724,0.01000,0.595
116
+ 16,self_attn.q_proj,13.40043761,0.01000,0.587
117
+ 16,self_attn.o_proj,2.56995311,0.01000,0.605
118
+ 16,mlp.up_proj,34.49688110,0.01000,0.593
119
+ 16,mlp.gate_proj,33.07141986,0.01000,0.594
120
+ 16,mlp.down_proj,4.67668955,0.01000,3.801
121
+ 17,self_attn.k_proj,2.56790221,0.01000,0.573
122
+ 17,self_attn.v_proj,1.63155973,0.01000,0.569
123
+ 17,self_attn.q_proj,14.37411106,0.01000,0.567
124
+ 17,self_attn.o_proj,2.11580409,0.01000,0.613
125
+ 17,mlp.up_proj,40.19091352,0.01000,0.624
126
+ 17,mlp.gate_proj,37.72127967,0.01000,0.617
127
+ 17,mlp.down_proj,6.41667661,0.01000,3.904
128
+ 18,self_attn.k_proj,2.01086315,0.01000,0.627
129
+ 18,self_attn.v_proj,1.82605520,0.01000,0.622
130
+ 18,self_attn.q_proj,12.26445795,0.01000,0.628
131
+ 18,self_attn.o_proj,2.60375627,0.01000,0.626
132
+ 18,mlp.up_proj,42.72995571,0.01000,0.637
133
+ 18,mlp.gate_proj,39.51592978,0.01000,0.633
134
+ 18,mlp.down_proj,7.30472941,0.01000,3.770
135
+ 19,self_attn.k_proj,2.03734621,0.01000,0.609
136
+ 19,self_attn.v_proj,2.17895159,0.01000,0.608
137
+ 19,self_attn.q_proj,13.97130506,0.01000,0.602
138
+ 19,self_attn.o_proj,2.98630336,0.01000,0.589
139
+ 19,mlp.up_proj,45.40066239,0.01000,0.608
140
+ 19,mlp.gate_proj,43.89151394,0.01000,0.612
141
+ 19,mlp.down_proj,7.82231198,0.01000,3.688
142
+ 20,self_attn.k_proj,2.03618901,0.01000,0.600
143
+ 20,self_attn.v_proj,2.32651697,0.01000,0.609
144
+ 20,self_attn.q_proj,12.49319835,0.01000,0.644
145
+ 20,self_attn.o_proj,2.02054115,0.01000,0.607
146
+ 20,mlp.up_proj,53.92699021,0.01000,0.606
147
+ 20,mlp.gate_proj,51.74172017,0.01000,0.599
148
+ 20,mlp.down_proj,14.09048887,0.01000,3.809
149
+ 21,self_attn.k_proj,2.22723000,0.01000,0.632
150
+ 21,self_attn.v_proj,3.41219732,0.01000,0.620
151
+ 21,self_attn.q_proj,14.44116497,0.01000,0.618
152
+ 21,self_attn.o_proj,4.64260670,0.01000,0.616
153
+ 21,mlp.up_proj,64.68185143,0.01000,0.632
154
+ 21,mlp.gate_proj,65.52687134,0.01000,0.628
155
+ 21,mlp.down_proj,17.97917598,0.01000,3.809
156
+ 22,self_attn.k_proj,2.89653644,0.01000,0.588
157
+ 22,self_attn.v_proj,5.82066236,0.01000,0.582
158
+ 22,self_attn.q_proj,18.60508524,0.01000,0.594
159
+ 22,self_attn.o_proj,5.02134183,0.01000,0.634
160
+ 22,mlp.up_proj,90.02371180,0.01000,0.611
161
+ 22,mlp.gate_proj,91.14663930,0.01000,0.615
162
+ 22,mlp.down_proj,34.05776069,0.01000,3.731
163
+ 23,self_attn.k_proj,4.18426553,0.01000,0.582
164
+ 23,self_attn.v_proj,10.33130930,0.01000,0.578
165
+ 23,self_attn.q_proj,25.64362199,0.01000,0.571
166
+ 23,self_attn.o_proj,13.37783952,0.01000,0.588
167
+ 23,mlp.up_proj,125.68233908,0.01000,0.604
168
+ 23,mlp.gate_proj,128.76723017,0.01000,0.603
169
+ 23,mlp.down_proj,43.81595416,0.01000,3.752
170
+ 24,self_attn.k_proj,3.36082683,0.01000,0.582
171
+ 24,self_attn.v_proj,10.30109492,0.01000,0.590
172
+ 24,self_attn.q_proj,23.33862463,0.01000,0.593
173
+ 24,self_attn.o_proj,5.05974270,0.01000,0.585
174
+ 24,mlp.up_proj,139.16557624,0.01000,0.603
175
+ 24,mlp.gate_proj,132.34724480,0.01000,0.586
176
+ 24,mlp.down_proj,59.95090011,0.01000,3.698
177
+ 25,self_attn.k_proj,4.10498364,0.01000,0.576
178
+ 25,self_attn.v_proj,17.18356073,0.01000,0.562
179
+ 25,self_attn.q_proj,27.32380730,0.01000,0.571
180
+ 25,self_attn.o_proj,9.62589656,0.01000,0.578
181
+ 25,mlp.up_proj,171.75121912,0.01000,0.598
182
+ 25,mlp.gate_proj,154.04677341,0.01000,0.583
183
+ 25,mlp.down_proj,83.74196908,0.01000,3.576
184
+ 26,self_attn.k_proj,5.83665500,0.01000,0.589
185
+ 26,self_attn.v_proj,42.81872257,0.01000,0.590
186
+ 26,self_attn.q_proj,46.47709586,0.01000,0.595
187
+ 26,self_attn.o_proj,23.30883757,0.01000,0.583
188
+ 26,mlp.up_proj,170.47679616,0.01000,0.612
189
+ 26,mlp.gate_proj,150.27404706,0.01000,0.595
190
+ 26,mlp.down_proj,0.00017362,0.01250,4.201
191
+ 27,self_attn.k_proj,6.51690253,0.01000,0.592
192
+ 27,self_attn.v_proj,61.79766743,0.01000,0.568
193
+ 27,self_attn.q_proj,64.76963792,0.01000,0.587
194
+ 27,self_attn.o_proj,43.01269404,0.01000,0.577
195
+ 27,mlp.up_proj,221.63391986,0.01000,0.607
196
+ 27,mlp.gate_proj,214.62520319,0.01000,0.615
197
+ 27,mlp.down_proj,415.36760403,0.01000,3.916
tokenizer.json CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:5eee858c5123a4279c3e1f7b81247343f356ac767940b2692a928ad929543214
3
- size 11422063
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba0c439f7be467bf47d12a7e6f9adc6116201056fc60c67f431c679b7c16afc8
3
+ size 11422064
tokenizer_config.json CHANGED
@@ -1,4 +1,5 @@
1
  {
 
2
  "add_bos_token": false,
3
  "add_prefix_space": false,
4
  "added_tokens_decoder": {
@@ -195,16 +196,15 @@
195
  "<|video_pad|>"
196
  ],
197
  "bos_token": null,
198
- "chat_template": "{% set image_placeholder = '<|vision_start|><|image_pad|><|vision_end|>' %}\n{% for message in messages %}\n {#--- Handle User Messages with Template and Examples ---#}\n {%- if message['role'] == 'user' and template -%}\n {% if loop.first and message['role'] != 'system' %}\n {{- '<|im_start|>system\\nYou are NuExtract, an information extraction tool created by NuMind.<|im_end|>' }}\n {% endif %}\n \n {{- '<|im_start|>' + message['role'] -}}\n \n {#--- Template Section ---#}\n {{ '\\n# Template:' }}\n {{- '\\n' + template + '\\n' }}\n \n {#--- Examples Section (if provided) ---#}\n {% if examples -%}\n {{- '# Examples:' }}\n {% for example in examples %}\n {{- '## Input:\\n' }}\n {#--- Handle image examples ---#}\n {% if example['input'] is mapping and example['input']['type'] == 'image' %}\n {{- image_placeholder | trim -}}\n {% elif example['input'] == '<image>' %}\n {{- image_placeholder | trim -}}\n {% else %}\n {{- example['input'] -}}\n {% endif %}\n {{- '\\n## Output:\\n' ~ example['output'] }}\n {% endfor %}\n {%- endif %}\n \n {#--- Context Section: Handle various content types ---#}\n {{- '# Context:\\n' }}\n {%- if message['content'] is string -%}\n {#--- Simple string content ---#}\n {{- message['content'] | trim -}}\n {%- elif message['content'] is mapping and message['content']['type'] == 'image' -%}\n {#--- Single image document ---#}\n {{- image_placeholder | trim -}}\n {%- else -%}\n {#--- List of content items (mixed text/images) ---#}\n {#--- First, determine what the actual input content is (not ICL images) ---#}\n {%- set ns = namespace(has_text_input=false, text_content='') -%}\n \n {#--- Count content types and identify actual input document ---#}\n {%- for content in message['content'] -%}\n {%- if content is mapping and content.get('type') == 'text' -%}\n {%- if content.get('text') != '<image>' -%}\n {%- set ns.has_text_input = true -%}\n {%- set ns.text_content = content['text'] -%}\n {%- endif -%}\n {%- elif content is string -%}\n {%- if content != '<image>' -%}\n {%- set ns.has_text_input = true -%}\n {%- set ns.text_content = content -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n \n {#--- Determine what to output based on actual input type ---#}\n {%- if ns.has_text_input -%}\n {#--- Main input is text, so output the text content ---#}\n {{- ns.text_content | trim -}}\n {%- else -%}\n {#--- Main input is image or <image> placeholder ---#}\n {%- set ns2 = namespace(found_image=false) -%}\n {%- for content in message['content'] -%}\n {%- if content is mapping and content.get('type') == 'image' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- elif content is mapping and content.get('type') == 'text' and content.get('text') == '<image>' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- elif content is string and content == '<image>' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- endif -%}\n {{- '<|im_end|>\\n'}}\n \n {#--- Handle All Other Messages (Assistant, System, etc.) ---#}\n {% else %}\n {% if loop.first and message['role'] != 'system' %}\n {{- '<|im_start|>system\\nYou are a helpful assistant.<|im_end|>' }}\n {% endif %}\n \n {{- '<|im_start|>' + message['role'] + '\\n' }}\n \n {#--- Same content handling logic as above but without template/examples ---#}\n {%- if message['content'] is string -%}\n {{- message['content'] | trim }}\n {%- elif message['content'] is mapping and message['content']['type'] == 'image' -%}\n {{- image_placeholder | trim }}\n {%- else -%}\n {%- set ns = namespace(found=false) -%}\n {%- for content in message['content'] -%}\n {%- if content is string -%}\n {{- content | trim -}}\n {%- elif content is mapping and content.get('type') == 'text' -%}\n {{- content['text'] | trim -}}\n {%- elif content is mapping and content.get('type') == 'image' -%}\n {# Skip adding image placeholder - it's already in the text #}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {{- '<|im_end|>'}}\n {% endif %}\n{% endfor -%}\n{#--- Add Generation Prompt if Requested ---#}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant' }}\n{% endif -%}",
199
  "clean_up_tokenization_spaces": false,
200
  "eos_token": "<|im_end|>",
201
  "errors": "replace",
202
  "extra_special_tokens": {},
203
- "max_pixels": 2352000,
204
  "min_pixels": 200704,
205
  "model_max_length": 131072,
206
  "pad_token": "<|endoftext|>",
207
- "padding_side": "left",
208
  "processor_class": "Qwen2_5_VLProcessor",
209
  "split_special_tokens": false,
210
  "tokenizer_class": "Qwen2Tokenizer",
 
1
  {
2
+ "_commit_hash": null,
3
  "add_bos_token": false,
4
  "add_prefix_space": false,
5
  "added_tokens_decoder": {
 
196
  "<|video_pad|>"
197
  ],
198
  "bos_token": null,
199
+ "chat_template": "{% set image_placeholder = '<|vision_start|><|image_pad|><|vision_end|>' %}\n{% for message in messages %}\n {#--- Handle User Messages with Template and Examples ---#}\n {%- if message['role'] == 'user' and template -%}\n {% if loop.first and message['role'] != 'system' %}\n {{- '<|im_start|>system\nYou are NuExtract, an information extraction tool created by NuMind.<|im_end|>' }}\n {% endif %}\n \n {{- '<|im_start|>' + message['role'] -}}\n \n {#--- Template Section ---#}\n {{ '\n# Template:' }}\n {{- '\n' + template + '\n' }}\n \n {#--- Examples Section (if provided) ---#}\n {% if examples -%}\n {{- '# Examples:' }}\n {% for example in examples %}\n {{- '## Input:\n' }}\n {#--- Handle image examples ---#}\n {% if example['input'] is mapping and example['input']['type'] == 'image' %}\n {{- image_placeholder | trim -}}\n {% elif example['input'] == '<image>' %}\n {{- image_placeholder | trim -}}\n {% else %}\n {{- example['input'] -}}\n {% endif %}\n {{- '\n## Output:\n' ~ example['output'] }}\n {% endfor %}\n {%- endif %}\n \n {#--- Context Section: Handle various content types ---#}\n {{- '# Context:\n' }}\n {%- if message['content'] is string -%}\n {#--- Simple string content ---#}\n {{- message['content'] | trim -}}\n {%- elif message['content'] is mapping and message['content']['type'] == 'image' -%}\n {#--- Single image document ---#}\n {{- image_placeholder | trim -}}\n {%- else -%}\n {#--- List of content items (mixed text/images) ---#}\n {#--- First, determine what the actual input content is (not ICL images) ---#}\n {%- set ns = namespace(has_text_input=false, text_content='') -%}\n \n {#--- Count content types and identify actual input document ---#}\n {%- for content in message['content'] -%}\n {%- if content is mapping and content.get('type') == 'text' -%}\n {%- if content.get('text') != '<image>' -%}\n {%- set ns.has_text_input = true -%}\n {%- set ns.text_content = content['text'] -%}\n {%- endif -%}\n {%- elif content is string -%}\n {%- if content != '<image>' -%}\n {%- set ns.has_text_input = true -%}\n {%- set ns.text_content = content -%}\n {%- endif -%}\n {%- endif -%}\n {%- endfor -%}\n \n {#--- Determine what to output based on actual input type ---#}\n {%- if ns.has_text_input -%}\n {#--- Main input is text, so output the text content ---#}\n {{- ns.text_content | trim -}}\n {%- else -%}\n {#--- Main input is image or <image> placeholder ---#}\n {%- set ns2 = namespace(found_image=false) -%}\n {%- for content in message['content'] -%}\n {%- if content is mapping and content.get('type') == 'image' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- elif content is mapping and content.get('type') == 'text' and content.get('text') == '<image>' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- elif content is string and content == '<image>' and not ns2.found_image -%}\n {{- image_placeholder | trim -}}\n {%- set ns2.found_image = true -%}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {%- endif -%}\n {{- '<|im_end|>\n'}}\n \n {#--- Handle All Other Messages (Assistant, System, etc.) ---#}\n {% else %}\n {% if loop.first and message['role'] != 'system' %}\n {{- '<|im_start|>system\nYou are a helpful assistant.<|im_end|>' }}\n {% endif %}\n \n {{- '<|im_start|>' + message['role'] + '\n' }}\n \n {#--- Same content handling logic as above but without template/examples ---#}\n {%- if message['content'] is string -%}\n {{- message['content'] | trim }}\n {%- elif message['content'] is mapping and message['content']['type'] == 'image' -%}\n {{- image_placeholder | trim }}\n {%- else -%}\n {%- for content in message['content'] -%}\n {%- if content is string -%}\n {{- content | trim -}}\n {%- elif content is mapping and content.get('type') == 'text' and content.get('text') == '<image>' -%}\n {{- image_placeholder | trim }}\n {%- elif content is mapping and content.get('type') == 'text' -%}\n {{- content['text'] | trim -}}\n {%- elif content is mapping and content.get('type') == 'image' -%}\n {# Skip adding image placeholder - it's already in the text #}\n {%- endif -%}\n {%- endfor -%}\n {%- endif -%}\n {{- '<|im_end|>'}}\n {% endif %}\n{% endfor -%}\n{#--- Add Generation Prompt if Requested ---#}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant' }}\n{% endif -%}",
200
  "clean_up_tokenization_spaces": false,
201
  "eos_token": "<|im_end|>",
202
  "errors": "replace",
203
  "extra_special_tokens": {},
204
+ "max_pixels": 23000000,
205
  "min_pixels": 200704,
206
  "model_max_length": 131072,
207
  "pad_token": "<|endoftext|>",
 
208
  "processor_class": "Qwen2_5_VLProcessor",
209
  "split_special_tokens": false,
210
  "tokenizer_class": "Qwen2Tokenizer",