Xinxiong0912 commited on
Commit
c7ade17
·
verified ·
1 Parent(s): 101ddf7

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
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 %}
compressed_config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format": "mindpipe_hf_save_pretrained_debug",
3
+ "algorithm": "splitquant",
4
+ "model_path": "/mnt/82_store/LLM-weights/Qwen2.5-VL-7B-Instruct",
5
+ "result_dir": "/mnt/82_store/wxx/HWQuant/Mindpipe/results/Qwen2.5-VL-7B-Instruct/splitquant/splitquant_w8a8_q16k16v16_seq512",
6
+ "weight_bits": 8,
7
+ "activation_bits": 8,
8
+ "sequence_length": 512,
9
+ "group_size": 128,
10
+ "output_dir": "/mnt/82_store/wxx/HWQuant/Mindpipe/tmp_hf_save/Qwen2.5-VL-7B-Instruct-SplitQuant-w8a8g128/_pre_save_workflow",
11
+ "pre_save_metrics": {
12
+ "perplexity": 11.440711999124886,
13
+ "evaluation_dataset": "wikitext2",
14
+ "sequence_length": 512,
15
+ "evaluated_chunks": 4,
16
+ "batch_size": 1,
17
+ "elapsed_seconds": 2.33213147521019,
18
+ "tokens_per_second": 876.4514444091445,
19
+ "model_path": "/mnt/82_store/LLM-weights/Qwen2.5-VL-7B-Instruct",
20
+ "quantization_algorithm": "splitquant",
21
+ "weight_bits": 8,
22
+ "activation_bits": 8,
23
+ "device": "cuda:0",
24
+ "dtype": "float16",
25
+ "artifacts_path": "artifacts.json"
26
+ },
27
+ "load_note": "Use MindPipe to rebuild the compression structure before loading the HF state dict."
28
+ }
config.json ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2_5_VLForConditionalGeneration"
4
+ ],
5
+ "dtype": "float16",
6
+ "image_token_id": 151655,
7
+ "model_type": "qwen2_5_vl",
8
+ "text_config": {
9
+ "attention_dropout": 0.0,
10
+ "bos_token_id": 151643,
11
+ "dtype": "float16",
12
+ "eos_token_id": 151645,
13
+ "hidden_act": "silu",
14
+ "hidden_size": 3584,
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 18944,
17
+ "layer_types": [
18
+ "full_attention",
19
+ "full_attention",
20
+ "full_attention",
21
+ "full_attention",
22
+ "full_attention",
23
+ "full_attention",
24
+ "full_attention",
25
+ "full_attention",
26
+ "full_attention",
27
+ "full_attention",
28
+ "full_attention",
29
+ "full_attention",
30
+ "full_attention",
31
+ "full_attention",
32
+ "full_attention",
33
+ "full_attention",
34
+ "full_attention",
35
+ "full_attention",
36
+ "full_attention",
37
+ "full_attention",
38
+ "full_attention",
39
+ "full_attention",
40
+ "full_attention",
41
+ "full_attention",
42
+ "full_attention",
43
+ "full_attention",
44
+ "full_attention",
45
+ "full_attention"
46
+ ],
47
+ "max_position_embeddings": 128000,
48
+ "max_window_layers": 28,
49
+ "model_type": "qwen2_5_vl_text",
50
+ "num_attention_heads": 28,
51
+ "num_hidden_layers": 28,
52
+ "num_key_value_heads": 4,
53
+ "pad_token_id": null,
54
+ "rms_norm_eps": 1e-06,
55
+ "rope_parameters": {
56
+ "mrope_section": [
57
+ 16,
58
+ 24,
59
+ 24
60
+ ],
61
+ "rope_theta": 1000000.0,
62
+ "rope_type": "default",
63
+ "type": "mrope"
64
+ },
65
+ "sliding_window": null,
66
+ "use_cache": true,
67
+ "use_sliding_window": false,
68
+ "vocab_size": 152064
69
+ },
70
+ "tie_word_embeddings": false,
71
+ "transformers_version": "5.5.2",
72
+ "video_token_id": 151656,
73
+ "vision_config": {
74
+ "depth": 32,
75
+ "dtype": "float16",
76
+ "fullatt_block_indexes": [
77
+ 7,
78
+ 15,
79
+ 23,
80
+ 31
81
+ ],
82
+ "hidden_act": "silu",
83
+ "hidden_size": 1280,
84
+ "in_channels": 3,
85
+ "in_chans": 3,
86
+ "initializer_range": 0.02,
87
+ "intermediate_size": 3420,
88
+ "model_type": "qwen2_5_vl",
89
+ "num_heads": 16,
90
+ "out_hidden_size": 3584,
91
+ "patch_size": 14,
92
+ "spatial_merge_size": 2,
93
+ "spatial_patch_size": 14,
94
+ "temporal_patch_size": 2,
95
+ "tokens_per_second": 2,
96
+ "window_size": 112
97
+ },
98
+ "vision_end_token_id": 151653,
99
+ "vision_start_token_id": 151652,
100
+ "vision_token_id": 151654
101
+ }
extra_artifacts/splitquant_parameters.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c95531b7d4d15411f4952edc96f2580492c197ff0a3351a7acbcf6d9a13e7a1
3
+ size 1172464535
generation_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 151643,
3
+ "do_sample": true,
4
+ "eos_token_id": [
5
+ 151645,
6
+ 151643
7
+ ],
8
+ "pad_token_id": 151643,
9
+ "repetition_penalty": 1.05,
10
+ "temperature": 0.1,
11
+ "top_k": 1,
12
+ "top_p": 0.001,
13
+ "transformers_version": "5.5.2"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0300cebccb4df729ed71a9a54648e359286d73263f7a3b77d3be6d801c36cb83
3
+ size 17751042936
processor_config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "image_mean": [
8
+ 0.48145466,
9
+ 0.4578275,
10
+ 0.40821073
11
+ ],
12
+ "image_processor_type": "Qwen2VLImageProcessor",
13
+ "image_std": [
14
+ 0.26862954,
15
+ 0.26130258,
16
+ 0.27577711
17
+ ],
18
+ "merge_size": 2,
19
+ "patch_size": 14,
20
+ "resample": 3,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "size": {
23
+ "longest_edge": 12845056,
24
+ "shortest_edge": 3136
25
+ },
26
+ "temporal_patch_size": 2
27
+ },
28
+ "processor_class": "Qwen2_5_VLProcessor",
29
+ "video_processor": {
30
+ "do_convert_rgb": true,
31
+ "do_normalize": true,
32
+ "do_rescale": true,
33
+ "do_resize": true,
34
+ "do_sample_frames": false,
35
+ "image_mean": [
36
+ 0.48145466,
37
+ 0.4578275,
38
+ 0.40821073
39
+ ],
40
+ "image_std": [
41
+ 0.26862954,
42
+ 0.26130258,
43
+ 0.27577711
44
+ ],
45
+ "max_frames": 768,
46
+ "merge_size": 2,
47
+ "min_frames": 4,
48
+ "patch_size": 14,
49
+ "resample": 3,
50
+ "rescale_factor": 0.00392156862745098,
51
+ "return_metadata": false,
52
+ "size": {
53
+ "longest_edge": 12845056,
54
+ "shortest_edge": 3136
55
+ },
56
+ "temporal_patch_size": 2,
57
+ "video_processor_type": "Qwen2VLVideoProcessor"
58
+ }
59
+ }
reload_metrics.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "perplexity": 11.440711999124886,
3
+ "evaluation_dataset": "wikitext2",
4
+ "sequence_length": 512,
5
+ "evaluated_chunks": 4,
6
+ "batch_size": 1,
7
+ "elapsed_seconds": 2.3610186986625195,
8
+ "tokens_per_second": 865.7280017129447,
9
+ "ppl_comparison": {
10
+ "checked": true,
11
+ "passed": true,
12
+ "pre_save_ppl": 11.440711999124886,
13
+ "reload_ppl": 11.440711999124886,
14
+ "abs_diff": 0.0,
15
+ "rel_diff": 0.0,
16
+ "abs_tol": 0.0001,
17
+ "rel_tol": 1e-05
18
+ },
19
+ "original_ppl_comparison": {
20
+ "checked": true,
21
+ "passed": false,
22
+ "original_result_ppl": 10.96408460299306,
23
+ "pre_save_ppl": 11.440711999124886,
24
+ "reload_ppl": 11.440711999124886,
25
+ "pre_abs_diff": 0.4766273961318266,
26
+ "pre_rel_diff": 0.04347169995402199,
27
+ "reload_abs_diff": 0.4766273961318266,
28
+ "reload_rel_diff": 0.04347169995402199,
29
+ "abs_tol": 0.0001,
30
+ "rel_tol": 1e-05
31
+ }
32
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fd169731d2cbde95e10bf356d66d5997fd885dd8dbb6fb4684da3f23b2585d8
3
+ size 11421892
tokenizer_config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": null,
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "errors": "replace",
8
+ "extra_special_tokens": [
9
+ "<|im_start|>",
10
+ "<|im_end|>",
11
+ "<|object_ref_start|>",
12
+ "<|object_ref_end|>",
13
+ "<|box_start|>",
14
+ "<|box_end|>",
15
+ "<|quad_start|>",
16
+ "<|quad_end|>",
17
+ "<|vision_start|>",
18
+ "<|vision_end|>",
19
+ "<|vision_pad|>",
20
+ "<|image_pad|>",
21
+ "<|video_pad|>"
22
+ ],
23
+ "is_local": true,
24
+ "model_max_length": 131072,
25
+ "pad_token": "<|endoftext|>",
26
+ "processor_class": "Qwen2_5_VLProcessor",
27
+ "split_special_tokens": false,
28
+ "tokenizer_class": "Qwen2Tokenizer",
29
+ "unk_token": null
30
+ }