SorenNumind commited on
Commit
cd9bf27
·
verified ·
1 Parent(s): 8bcb0f0

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ 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
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
added_tokens.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "</tool_call>": 151658,
3
+ "<tool_call>": 151657,
4
+ "<|box_end|>": 151649,
5
+ "<|box_start|>": 151648,
6
+ "<|endoftext|>": 151643,
7
+ "<|file_sep|>": 151664,
8
+ "<|fim_middle|>": 151660,
9
+ "<|fim_pad|>": 151662,
10
+ "<|fim_prefix|>": 151659,
11
+ "<|fim_suffix|>": 151661,
12
+ "<|im_end|>": 151645,
13
+ "<|im_start|>": 151644,
14
+ "<|image_pad|>": 151655,
15
+ "<|object_ref_end|>": 151647,
16
+ "<|object_ref_start|>": 151646,
17
+ "<|quad_end|>": 151651,
18
+ "<|quad_start|>": 151650,
19
+ "<|repo_name|>": 151663,
20
+ "<|video_pad|>": 151656,
21
+ "<|vision_end|>": 151653,
22
+ "<|vision_pad|>": 151654,
23
+ "<|vision_start|>": 151652
24
+ }
chat_template.json ADDED
@@ -0,0 +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
+ }
config.json ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2_5_VLForConditionalGeneration"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 151643,
7
+ "eos_token_id": 151645,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 2048,
10
+ "image_token_id": 151655,
11
+ "initializer_range": 0.02,
12
+ "intermediate_size": 11008,
13
+ "max_position_embeddings": 128000,
14
+ "max_window_layers": 70,
15
+ "model_type": "qwen2_5_vl",
16
+ "num_attention_heads": 16,
17
+ "num_hidden_layers": 36,
18
+ "num_key_value_heads": 2,
19
+ "quantization_config": {
20
+ "bits": 4,
21
+ "checkpoint_format": "gptq",
22
+ "desc_act": true,
23
+ "group_size": 128,
24
+ "lm_head": false,
25
+ "meta": {
26
+ "damp_auto_increment": 0.0025,
27
+ "damp_percent": 0.01,
28
+ "mse": 0.0,
29
+ "quantizer": [
30
+ "gptqmodel:2.2.0"
31
+ ],
32
+ "static_groups": false,
33
+ "true_sequential": true,
34
+ "uri": "https://github.com/modelcloud/gptqmodel"
35
+ },
36
+ "pack_dtype": "int32",
37
+ "quant_method": "gptq",
38
+ "sym": true
39
+ },
40
+ "rms_norm_eps": 1e-06,
41
+ "rope_scaling": {
42
+ "mrope_section": [
43
+ 16,
44
+ 24,
45
+ 24
46
+ ],
47
+ "rope_type": "default",
48
+ "type": "default"
49
+ },
50
+ "rope_theta": 1000000.0,
51
+ "sliding_window": 32768,
52
+ "tie_word_embeddings": true,
53
+ "torch_dtype": "bfloat16",
54
+ "transformers_version": "4.51.3",
55
+ "use_cache": true,
56
+ "use_sliding_window": false,
57
+ "video_token_id": 151656,
58
+ "vision_config": {
59
+ "depth": 32,
60
+ "fullatt_block_indexes": [
61
+ 7,
62
+ 15,
63
+ 23,
64
+ 31
65
+ ],
66
+ "hidden_act": "silu",
67
+ "hidden_size": 1280,
68
+ "in_channels": 3,
69
+ "in_chans": 3,
70
+ "intermediate_size": 3420,
71
+ "model_type": "qwen2_5_vl",
72
+ "num_heads": 16,
73
+ "out_hidden_size": 2048,
74
+ "patch_size": 14,
75
+ "spatial_merge_size": 2,
76
+ "spatial_patch_size": 14,
77
+ "temporal_patch_size": 2,
78
+ "tokens_per_second": 2,
79
+ "torch_dtype": "bfloat16",
80
+ "window_size": 112
81
+ },
82
+ "vision_end_token_id": 151653,
83
+ "vision_start_token_id": 151652,
84
+ "vision_token_id": 151654,
85
+ "vocab_size": 151936
86
+ }
generation_config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "attn_implementation": "flash_attention_2",
3
+ "bos_token_id": 151643,
4
+ "do_sample": true,
5
+ "eos_token_id": [
6
+ 151645,
7
+ 151643
8
+ ],
9
+ "pad_token_id": 151643,
10
+ "repetition_penalty": 1.05,
11
+ "temperature": 1e-06,
12
+ "transformers_version": "4.51.3"
13
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:595eec5e2eff5d1eb0a40f112fc904517b01b7226829657941420ad990db13c8
3
+ size 3405167488
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": 2352000,
18
+ "merge_size": 2,
19
+ "min_pixels": 200704,
20
+ "patch_size": 14,
21
+ "processor_class": "Qwen2_5_VLProcessor",
22
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "size": {
25
+ "longest_edge": 2352000,
26
+ "shortest_edge": 200704
27
+ },
28
+ "temporal_patch_size": 2
29
+ }
quant_log.csv ADDED
@@ -0,0 +1,253 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ layer,module,loss,samples,damp,time
2
+ 0,self_attn.k_proj,0.47639775,0.01000,0.535
3
+ 0,self_attn.v_proj,0.07883583,0.01000,0.357
4
+ 0,self_attn.q_proj,2.47703338,0.01000,0.351
5
+ 0,self_attn.o_proj,0.11506961,0.01000,0.349
6
+ 0,mlp.up_proj,1.98168492,0.01000,0.359
7
+ 0,mlp.gate_proj,2.49659777,0.01000,0.361
8
+ 0,mlp.down_proj,0.48027515,0.01000,2.015
9
+ 1,self_attn.k_proj,0.12130460,0.01000,0.351
10
+ 1,self_attn.v_proj,0.02214950,0.01000,0.346
11
+ 1,self_attn.q_proj,0.43165040,0.01000,0.345
12
+ 1,self_attn.o_proj,0.03740492,0.01000,0.342
13
+ 1,mlp.up_proj,45.12257767,0.01000,0.349
14
+ 1,mlp.gate_proj,54.92391968,0.01000,0.354
15
+ 1,mlp.down_proj,0.07160743,0.01000,1.997
16
+ 2,self_attn.k_proj,0.14272314,0.01000,0.353
17
+ 2,self_attn.v_proj,0.03075436,0.01000,0.345
18
+ 2,self_attn.q_proj,0.62909025,0.01000,0.352
19
+ 2,self_attn.o_proj,0.03786607,0.01000,0.354
20
+ 2,mlp.up_proj,19.92619324,0.01000,0.354
21
+ 2,mlp.gate_proj,16.12575531,0.01000,0.354
22
+ 2,mlp.down_proj,1.23383629,0.01000,2.005
23
+ 3,self_attn.k_proj,0.55605268,0.01000,0.351
24
+ 3,self_attn.v_proj,0.12625939,0.01000,0.344
25
+ 3,self_attn.q_proj,2.61799288,0.01000,0.350
26
+ 3,self_attn.o_proj,0.07996529,0.01000,0.353
27
+ 3,mlp.up_proj,27.56571579,0.01000,0.360
28
+ 3,mlp.gate_proj,26.00288391,0.01000,0.355
29
+ 3,mlp.down_proj,0.45218372,0.01000,2.007
30
+ 4,self_attn.k_proj,0.42093384,0.01000,0.347
31
+ 4,self_attn.v_proj,0.12365282,0.01000,0.347
32
+ 4,self_attn.q_proj,1.98233652,0.01000,0.351
33
+ 4,self_attn.o_proj,0.18781564,0.01000,0.355
34
+ 4,mlp.up_proj,22.99368286,0.01000,0.353
35
+ 4,mlp.gate_proj,26.84276772,0.01000,0.348
36
+ 4,mlp.down_proj,0.69326061,0.01000,2.001
37
+ 5,self_attn.k_proj,0.64253706,0.01000,0.348
38
+ 5,self_attn.v_proj,0.18757863,0.01000,0.349
39
+ 5,self_attn.q_proj,3.52685070,0.01000,0.358
40
+ 5,self_attn.o_proj,0.20589207,0.01000,0.367
41
+ 5,mlp.up_proj,36.02760315,0.01000,0.355
42
+ 5,mlp.gate_proj,44.12892914,0.01000,0.360
43
+ 5,mlp.down_proj,1.28119040,0.01000,2.020
44
+ 6,self_attn.k_proj,0.54317248,0.01000,0.350
45
+ 6,self_attn.v_proj,0.30935797,0.01000,0.345
46
+ 6,self_attn.q_proj,2.96549559,0.01000,0.342
47
+ 6,self_attn.o_proj,0.42011255,0.01000,0.356
48
+ 6,mlp.up_proj,49.88668823,0.01000,0.357
49
+ 6,mlp.gate_proj,61.06584167,0.01000,0.356
50
+ 6,mlp.down_proj,1.47490156,0.01000,2.038
51
+ 7,self_attn.k_proj,0.76744461,0.01000,0.358
52
+ 7,self_attn.v_proj,0.37570187,0.01000,0.366
53
+ 7,self_attn.q_proj,4.38668633,0.01000,0.355
54
+ 7,self_attn.o_proj,0.26040763,0.01000,0.343
55
+ 7,mlp.up_proj,54.43235016,0.01000,0.341
56
+ 7,mlp.gate_proj,66.96466064,0.01000,0.345
57
+ 7,mlp.down_proj,2.06351209,0.01000,2.019
58
+ 8,self_attn.k_proj,0.71847218,0.01000,0.352
59
+ 8,self_attn.v_proj,0.46121377,0.01000,0.347
60
+ 8,self_attn.q_proj,4.52393961,0.01000,0.361
61
+ 8,self_attn.o_proj,0.26604640,0.01000,0.362
62
+ 8,mlp.up_proj,57.88217926,0.01000,0.356
63
+ 8,mlp.gate_proj,82.81091309,0.01000,0.361
64
+ 8,mlp.down_proj,2.05172133,0.01000,2.000
65
+ 9,self_attn.k_proj,0.75053275,0.01000,0.355
66
+ 9,self_attn.v_proj,0.38040811,0.01000,0.363
67
+ 9,self_attn.q_proj,4.08993626,0.01000,0.361
68
+ 9,self_attn.o_proj,0.31248963,0.01000,0.354
69
+ 9,mlp.up_proj,50.55811310,0.01000,0.367
70
+ 9,mlp.gate_proj,76.47357178,0.01000,0.361
71
+ 9,mlp.down_proj,2.13050270,0.01000,2.065
72
+ 10,self_attn.k_proj,0.84486675,0.01000,0.353
73
+ 10,self_attn.v_proj,0.46178406,0.01000,0.352
74
+ 10,self_attn.q_proj,5.40872574,0.01000,0.354
75
+ 10,self_attn.o_proj,0.37074614,0.01000,0.353
76
+ 10,mlp.up_proj,36.80422211,0.01000,0.363
77
+ 10,mlp.gate_proj,56.75604248,0.01000,0.360
78
+ 10,mlp.down_proj,2.47812700,0.01000,2.026
79
+ 11,self_attn.k_proj,0.68764448,0.01000,0.353
80
+ 11,self_attn.v_proj,0.43616503,0.01000,0.358
81
+ 11,self_attn.q_proj,3.98019719,0.01000,0.354
82
+ 11,self_attn.o_proj,0.44827569,0.01000,0.358
83
+ 11,mlp.up_proj,21.22748375,0.01000,0.360
84
+ 11,mlp.gate_proj,29.39674377,0.01000,0.366
85
+ 11,mlp.down_proj,2.60092998,0.01000,2.000
86
+ 12,self_attn.k_proj,0.67705953,0.01000,0.348
87
+ 12,self_attn.v_proj,0.39055049,0.01000,0.343
88
+ 12,self_attn.q_proj,4.22260094,0.01000,0.333
89
+ 12,self_attn.o_proj,0.43465185,0.01000,0.348
90
+ 12,mlp.up_proj,22.20967484,0.01000,0.356
91
+ 12,mlp.gate_proj,31.79467392,0.01000,0.363
92
+ 12,mlp.down_proj,2.27273822,0.01000,2.028
93
+ 13,self_attn.k_proj,0.84612310,0.01000,0.348
94
+ 13,self_attn.v_proj,0.27276921,0.01000,0.353
95
+ 13,self_attn.q_proj,4.29369831,0.01000,0.346
96
+ 13,self_attn.o_proj,0.27510852,0.01000,0.351
97
+ 13,mlp.up_proj,15.75501060,0.01000,0.354
98
+ 13,mlp.gate_proj,16.58034897,0.01000,0.355
99
+ 13,mlp.down_proj,1.96245372,0.01000,2.117
100
+ 14,self_attn.k_proj,0.60780370,0.01000,0.339
101
+ 14,self_attn.v_proj,0.27480417,0.01000,0.338
102
+ 14,self_attn.q_proj,3.46784306,0.01000,0.341
103
+ 14,self_attn.o_proj,0.55041981,0.01000,0.340
104
+ 14,mlp.up_proj,14.70653439,0.01000,0.358
105
+ 14,mlp.gate_proj,15.58274174,0.01000,0.359
106
+ 14,mlp.down_proj,1.81650376,0.01000,1.980
107
+ 15,self_attn.k_proj,0.57443047,0.01000,0.350
108
+ 15,self_attn.v_proj,0.27507365,0.01000,0.348
109
+ 15,self_attn.q_proj,3.37030554,0.01000,0.347
110
+ 15,self_attn.o_proj,0.65812862,0.01000,0.353
111
+ 15,mlp.up_proj,13.08578873,0.01000,0.360
112
+ 15,mlp.gate_proj,12.57400513,0.01000,0.369
113
+ 15,mlp.down_proj,1.66309798,0.01000,2.048
114
+ 16,self_attn.k_proj,0.62445736,0.01000,0.358
115
+ 16,self_attn.v_proj,0.29849333,0.01000,0.345
116
+ 16,self_attn.q_proj,3.50871587,0.01000,0.344
117
+ 16,self_attn.o_proj,0.56370842,0.01000,0.355
118
+ 16,mlp.up_proj,12.91068935,0.01000,0.344
119
+ 16,mlp.gate_proj,13.37463760,0.01000,0.353
120
+ 16,mlp.down_proj,1.46269417,0.01000,2.004
121
+ 17,self_attn.k_proj,0.99160087,0.01000,0.348
122
+ 17,self_attn.v_proj,0.36263356,0.01000,0.336
123
+ 17,self_attn.q_proj,5.45891762,0.01000,0.345
124
+ 17,self_attn.o_proj,0.65637952,0.01000,0.364
125
+ 17,mlp.up_proj,11.73399544,0.01000,0.357
126
+ 17,mlp.gate_proj,11.55345917,0.01000,0.362
127
+ 17,mlp.down_proj,1.54765630,0.01000,1.972
128
+ 18,self_attn.k_proj,0.54346764,0.01000,0.340
129
+ 18,self_attn.v_proj,0.30677640,0.01000,0.342
130
+ 18,self_attn.q_proj,3.33190250,0.01000,0.357
131
+ 18,self_attn.o_proj,0.65404612,0.01000,0.358
132
+ 18,mlp.up_proj,11.26241779,0.01000,0.358
133
+ 18,mlp.gate_proj,11.59079933,0.01000,0.353
134
+ 18,mlp.down_proj,1.53053451,0.01000,2.019
135
+ 19,self_attn.k_proj,0.68312550,0.01000,0.358
136
+ 19,self_attn.v_proj,0.32015702,0.01000,0.340
137
+ 19,self_attn.q_proj,3.92224121,0.01000,0.348
138
+ 19,self_attn.o_proj,0.92777669,0.01000,0.359
139
+ 19,mlp.up_proj,11.23299217,0.01000,0.354
140
+ 19,mlp.gate_proj,10.77910995,0.01000,0.354
141
+ 19,mlp.down_proj,1.54967749,0.01000,1.989
142
+ 20,self_attn.k_proj,0.73232865,0.01000,0.342
143
+ 20,self_attn.v_proj,0.62961507,0.01000,0.342
144
+ 20,self_attn.q_proj,5.84591770,0.01000,0.344
145
+ 20,self_attn.o_proj,1.16900814,0.01000,0.346
146
+ 20,mlp.up_proj,12.03665638,0.01000,0.366
147
+ 20,mlp.gate_proj,11.68501949,0.01000,0.360
148
+ 20,mlp.down_proj,1.81549788,0.01000,1.986
149
+ 21,self_attn.k_proj,0.73328865,0.01000,0.343
150
+ 21,self_attn.v_proj,0.43035138,0.01000,0.338
151
+ 21,self_attn.q_proj,4.56182814,0.01000,0.338
152
+ 21,self_attn.o_proj,0.83677453,0.01000,0.366
153
+ 21,mlp.up_proj,12.35815144,0.01000,0.363
154
+ 21,mlp.gate_proj,13.01117897,0.01000,0.363
155
+ 21,mlp.down_proj,1.56445312,0.01000,2.003
156
+ 22,self_attn.k_proj,0.84423298,0.01000,0.352
157
+ 22,self_attn.v_proj,0.63312274,0.01000,0.345
158
+ 22,self_attn.q_proj,5.30216503,0.01000,0.354
159
+ 22,self_attn.o_proj,0.88580573,0.01000,0.349
160
+ 22,mlp.up_proj,12.89251041,0.01000,0.343
161
+ 22,mlp.gate_proj,13.00122261,0.01000,0.335
162
+ 22,mlp.down_proj,1.64435768,0.01000,1.954
163
+ 23,self_attn.k_proj,0.76918477,0.01000,0.352
164
+ 23,self_attn.v_proj,0.34251970,0.01000,0.343
165
+ 23,self_attn.q_proj,5.00206470,0.01000,0.341
166
+ 23,self_attn.o_proj,0.62123752,0.01000,0.355
167
+ 23,mlp.up_proj,13.00738239,0.01000,0.365
168
+ 23,mlp.gate_proj,12.38641357,0.01000,0.369
169
+ 23,mlp.down_proj,1.91341496,0.01000,2.019
170
+ 24,self_attn.k_proj,0.58367682,0.01000,0.361
171
+ 24,self_attn.v_proj,0.39665616,0.01000,0.347
172
+ 24,self_attn.q_proj,3.92485666,0.01000,0.357
173
+ 24,self_attn.o_proj,0.69422036,0.01000,0.349
174
+ 24,mlp.up_proj,12.58154488,0.01000,0.355
175
+ 24,mlp.gate_proj,12.13731766,0.01000,0.354
176
+ 24,mlp.down_proj,1.89018548,0.01000,1.997
177
+ 25,self_attn.k_proj,0.55985552,0.01000,0.352
178
+ 25,self_attn.v_proj,0.61911839,0.01000,0.360
179
+ 25,self_attn.q_proj,5.21534395,0.01000,0.348
180
+ 25,self_attn.o_proj,0.71602559,0.01000,0.352
181
+ 25,mlp.up_proj,14.45590019,0.01000,0.361
182
+ 25,mlp.gate_proj,14.24532509,0.01000,0.354
183
+ 25,mlp.down_proj,2.52655506,0.01000,2.048
184
+ 26,self_attn.k_proj,0.62120366,0.01000,0.356
185
+ 26,self_attn.v_proj,0.67329204,0.01000,0.356
186
+ 26,self_attn.q_proj,4.39216709,0.01000,0.354
187
+ 26,self_attn.o_proj,0.85128844,0.01000,0.360
188
+ 26,mlp.up_proj,15.34780407,0.01000,0.365
189
+ 26,mlp.gate_proj,14.43859768,0.01000,0.362
190
+ 26,mlp.down_proj,3.05534267,0.01000,2.057
191
+ 27,self_attn.k_proj,0.60259527,0.01000,0.363
192
+ 27,self_attn.v_proj,0.83670938,0.01000,0.359
193
+ 27,self_attn.q_proj,6.72910786,0.01000,0.369
194
+ 27,self_attn.o_proj,1.40344274,0.01000,0.368
195
+ 27,mlp.up_proj,16.02120972,0.01000,0.372
196
+ 27,mlp.gate_proj,15.74603081,0.01000,0.363
197
+ 27,mlp.down_proj,3.56427813,0.01000,2.087
198
+ 28,self_attn.k_proj,0.61032331,0.01000,0.363
199
+ 28,self_attn.v_proj,0.80786330,0.01000,0.345
200
+ 28,self_attn.q_proj,4.98351574,0.01000,0.349
201
+ 28,self_attn.o_proj,1.22365725,0.01000,0.349
202
+ 28,mlp.up_proj,17.86008453,0.01000,0.367
203
+ 28,mlp.gate_proj,17.92751694,0.01000,0.360
204
+ 28,mlp.down_proj,3.70085478,0.01000,1.981
205
+ 29,self_attn.k_proj,0.64153433,0.01000,0.345
206
+ 29,self_attn.v_proj,0.73555517,0.01000,0.340
207
+ 29,self_attn.q_proj,4.90493393,0.01000,0.341
208
+ 29,self_attn.o_proj,0.62442762,0.01000,0.351
209
+ 29,mlp.up_proj,20.76404190,0.01000,0.343
210
+ 29,mlp.gate_proj,20.62790489,0.01000,0.341
211
+ 29,mlp.down_proj,4.93725204,0.01000,2.021
212
+ 30,self_attn.k_proj,0.69649112,0.01000,0.351
213
+ 30,self_attn.v_proj,1.84374022,0.01000,0.353
214
+ 30,self_attn.q_proj,5.63703060,0.01000,0.344
215
+ 30,self_attn.o_proj,1.24101484,0.01000,0.351
216
+ 30,mlp.up_proj,26.59041214,0.01000,0.361
217
+ 30,mlp.gate_proj,25.44146729,0.01000,0.357
218
+ 30,mlp.down_proj,13.09652138,0.01000,1.973
219
+ 31,self_attn.k_proj,0.88555670,0.01000,0.351
220
+ 31,self_attn.v_proj,2.41409063,0.01000,0.342
221
+ 31,self_attn.q_proj,6.80245066,0.01000,0.353
222
+ 31,self_attn.o_proj,2.95441389,0.01000,0.354
223
+ 31,mlp.up_proj,32.29392624,0.01000,0.357
224
+ 31,mlp.gate_proj,29.32855034,0.01000,0.357
225
+ 31,mlp.down_proj,14.80035019,0.01000,1.949
226
+ 32,self_attn.k_proj,1.36434364,0.01000,0.348
227
+ 32,self_attn.v_proj,9.14617348,0.01000,0.342
228
+ 32,self_attn.q_proj,10.58930969,0.01000,0.353
229
+ 32,self_attn.o_proj,3.90258408,0.01000,0.349
230
+ 32,mlp.up_proj,36.99082565,0.01000,0.361
231
+ 32,mlp.gate_proj,33.20306396,0.01000,0.358
232
+ 32,mlp.down_proj,16.74304962,0.01000,2.023
233
+ 33,self_attn.k_proj,1.35363579,0.01000,0.355
234
+ 33,self_attn.v_proj,15.65682030,0.01000,0.349
235
+ 33,self_attn.q_proj,13.18994522,0.01000,0.359
236
+ 33,self_attn.o_proj,5.70710468,0.01000,0.354
237
+ 33,mlp.up_proj,39.76282883,0.01000,0.354
238
+ 33,mlp.gate_proj,33.09777832,0.01000,0.358
239
+ 33,mlp.down_proj,38.75576019,0.01000,1.999
240
+ 34,self_attn.k_proj,0.69316441,0.01000,0.348
241
+ 34,self_attn.v_proj,1.91508794,0.01000,0.338
242
+ 34,self_attn.q_proj,6.49875736,0.01000,0.347
243
+ 34,self_attn.o_proj,2.32831573,0.01000,0.359
244
+ 34,mlp.up_proj,46.86276627,0.01000,0.342
245
+ 34,mlp.gate_proj,40.59505844,0.01000,0.344
246
+ 34,mlp.down_proj,30.63180161,0.01000,2.010
247
+ 35,self_attn.k_proj,0.78077435,0.01000,0.348
248
+ 35,self_attn.v_proj,1.97707105,0.01000,0.352
249
+ 35,self_attn.q_proj,6.55226660,0.01000,0.353
250
+ 35,self_attn.o_proj,1.74587154,0.01000,0.356
251
+ 35,mlp.up_proj,64.49967194,0.01000,0.353
252
+ 35,mlp.gate_proj,59.11815643,0.01000,0.356
253
+ 35,mlp.down_proj,82.74237823,0.01000,1.973
quantize_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bits": 4,
3
+ "group_size": 128,
4
+ "desc_act": true,
5
+ "sym": true,
6
+ "lm_head": false,
7
+ "quant_method": "gptq",
8
+ "checkpoint_format": "gptq",
9
+ "pack_dtype": "int32",
10
+ "meta": {
11
+ "quantizer": [
12
+ "gptqmodel:2.2.0"
13
+ ],
14
+ "uri": "https://github.com/modelcloud/gptqmodel",
15
+ "damp_percent": 0.01,
16
+ "damp_auto_increment": 0.0025,
17
+ "static_groups": false,
18
+ "true_sequential": true,
19
+ "mse": 0.0
20
+ }
21
+ }
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:5eee858c5123a4279c3e1f7b81247343f356ac767940b2692a928ad929543214
3
+ size 11422063
tokenizer_config.json ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "151643": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "151644": {
14
+ "content": "<|im_start|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "151645": {
22
+ "content": "<|im_end|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "151646": {
30
+ "content": "<|object_ref_start|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "151647": {
38
+ "content": "<|object_ref_end|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "151648": {
46
+ "content": "<|box_start|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "151649": {
54
+ "content": "<|box_end|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "151650": {
62
+ "content": "<|quad_start|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "151651": {
70
+ "content": "<|quad_end|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": true
76
+ },
77
+ "151652": {
78
+ "content": "<|vision_start|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "151653": {
86
+ "content": "<|vision_end|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "151654": {
94
+ "content": "<|vision_pad|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "151655": {
102
+ "content": "<|image_pad|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "151656": {
110
+ "content": "<|video_pad|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "151657": {
118
+ "content": "<tool_call>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "151658": {
126
+ "content": "</tool_call>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "151659": {
134
+ "content": "<|fim_prefix|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "151660": {
142
+ "content": "<|fim_middle|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "151661": {
150
+ "content": "<|fim_suffix|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "151662": {
158
+ "content": "<|fim_pad|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "151663": {
166
+ "content": "<|repo_name|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "151664": {
174
+ "content": "<|file_sep|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ }
181
+ },
182
+ "additional_special_tokens": [
183
+ "<|im_start|>",
184
+ "<|im_end|>",
185
+ "<|object_ref_start|>",
186
+ "<|object_ref_end|>",
187
+ "<|box_start|>",
188
+ "<|box_end|>",
189
+ "<|quad_start|>",
190
+ "<|quad_end|>",
191
+ "<|vision_start|>",
192
+ "<|vision_end|>",
193
+ "<|vision_pad|>",
194
+ "<|image_pad|>",
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",
211
+ "unk_token": null
212
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff