patrickbdevaney commited on
Commit
b629318
·
verified ·
1 Parent(s): b3f1bbf

Upload folder using huggingface_hub

Browse files
chat_template.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "chat_template": "{%- for message in messages -%}\n {%- if loop.first and messages[0]['role'] != 'system' -%}\n {{'<|im_system|>system<|im_middle|>You are a helpful assistant<|im_end|>'}}\n {%- endif -%}\n {%- if message['role'] == 'system' -%}\n {{'<|im_system|>'}}\n {%- endif -%}\n {%- if message['role'] == 'user' -%}\n {{'<|im_user|>'}}\n {%- endif -%}\n {%- if message['role'] == 'assistant' -%}\n {{'<|im_assistant|>'}}\n {%- endif -%}\n {{- message['role'] -}}\n {{'<|im_middle|>'}}\n {%- if message['content'] is string -%}\n {{- message['content'] + '<|im_end|>' -}}\n {%- else -%}\n {%- for content in message['content'] -%}\n {%- if content['type'] == 'image' or 'image' in content or 'image_url' in content -%}\n {{'<|media_start|>image<|media_content|><|media_pad|><|media_end|>'}}\n {%- else -%}\n {{content['text']}}\n {%- endif -%}\n {%- endfor -%}\n {{'<|im_end|>'}}\n {%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n {{'<|im_assistant|>assistant<|im_middle|>'}}\n{%- endif -%}\n"
3
+ }
config.json ADDED
@@ -0,0 +1,82 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "KimiVLForConditionalGeneration"
4
+ ],
5
+ "auto_map": {
6
+ "AutoConfig": "moonshotai/Kimi-VL-A3B-Thinking-2506--configuration_kimi_vl.KimiVLConfig",
7
+ "AutoModel": "moonshotai/Kimi-VL-A3B-Thinking-2506--modeling_kimi_vl.KimiVLForConditionalGeneration",
8
+ "AutoModelForCausalLM": "moonshotai/Kimi-VL-A3B-Thinking-2506--modeling_kimi_vl.KimiVLForConditionalGeneration"
9
+ },
10
+ "ignore_index": -100,
11
+ "media_placeholder_token_id": 163605,
12
+ "model_type": "kimi_vl",
13
+ "pad_token_id": 0,
14
+ "quantization_config": {
15
+ "group_size": 16,
16
+ "quant_algo": "NVFP4",
17
+ "quant_type": "modelopt_fp4"
18
+ },
19
+ "text_config": {
20
+ "attention_bias": false,
21
+ "attention_dropout": 0.0,
22
+ "aux_loss_alpha": 0.001,
23
+ "bos_token_id": 163584,
24
+ "eos_token_id": 163585,
25
+ "ep_size": 1,
26
+ "first_k_dense_replace": 1,
27
+ "hidden_act": "silu",
28
+ "hidden_size": 2048,
29
+ "initializer_range": 0.02,
30
+ "intermediate_size": 11264,
31
+ "kv_lora_rank": 512,
32
+ "max_position_embeddings": 131072,
33
+ "model_type": "deepseek_v3",
34
+ "moe_intermediate_size": 1408,
35
+ "moe_layer_freq": 1,
36
+ "n_group": 1,
37
+ "n_routed_experts": 64,
38
+ "n_shared_experts": 2,
39
+ "norm_topk_prob": true,
40
+ "num_attention_heads": 16,
41
+ "num_experts_per_tok": 6,
42
+ "num_hidden_layers": 27,
43
+ "num_key_value_heads": 16,
44
+ "num_nextn_predict_layers": 1,
45
+ "pad_token_id": 163839,
46
+ "pretraining_tp": 1,
47
+ "q_lora_rank": null,
48
+ "qk_nope_head_dim": 128,
49
+ "qk_rope_head_dim": 64,
50
+ "rms_norm_eps": 1e-05,
51
+ "rope_scaling": null,
52
+ "rope_theta": 800000.0,
53
+ "routed_scaling_factor": 2.446,
54
+ "scoring_func": "sigmoid",
55
+ "seq_aux": true,
56
+ "topk_group": 1,
57
+ "topk_method": "noaux_tc",
58
+ "torch_dtype": "bfloat16",
59
+ "use_cache": true,
60
+ "v_head_dim": 128,
61
+ "vocab_size": 163840
62
+ },
63
+ "tie_word_embeddings": false,
64
+ "torch_dtype": "bfloat16",
65
+ "transformers_version": "4.51.0",
66
+ "vision_config": {
67
+ "hidden_size": 1152,
68
+ "init_pos_emb_height": 64,
69
+ "init_pos_emb_width": 64,
70
+ "intermediate_size": 4304,
71
+ "merge_kernel_size": [
72
+ 2,
73
+ 2
74
+ ],
75
+ "model_type": "moonvit",
76
+ "num_attention_heads": 16,
77
+ "num_hidden_layers": 27,
78
+ "patch_size": 14,
79
+ "torch_dtype": "bfloat16"
80
+ },
81
+ "vocab_size": 163840
82
+ }
hf_quant_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "producer": {
3
+ "name": "modelopt",
4
+ "version": "0.39.0"
5
+ },
6
+ "quantization": {
7
+ "quant_algo": "NVFP4",
8
+ "kv_cache_quant_algo": null,
9
+ "group_size": 16,
10
+ "exclude_modules": [
11
+ "lm_head",
12
+ "model.layers.0.self_attn*",
13
+ "model.layers.1.self_attn*",
14
+ "model.layers.10.self_attn*",
15
+ "model.layers.11.self_attn*",
16
+ "model.layers.12.self_attn*",
17
+ "model.layers.13.self_attn*",
18
+ "model.layers.14.self_attn*",
19
+ "model.layers.15.self_attn*",
20
+ "model.layers.16.self_attn*",
21
+ "model.layers.17.self_attn*",
22
+ "model.layers.18.self_attn*",
23
+ "model.layers.19.self_attn*",
24
+ "model.layers.2.self_attn*",
25
+ "model.layers.20.self_attn*",
26
+ "model.layers.21.self_attn*",
27
+ "model.layers.22.self_attn*",
28
+ "model.layers.23.self_attn*",
29
+ "model.layers.24.self_attn*",
30
+ "model.layers.25.self_attn*",
31
+ "model.layers.26.self_attn*",
32
+ "model.layers.3.self_attn*",
33
+ "model.layers.4.self_attn*",
34
+ "model.layers.5.self_attn*",
35
+ "model.layers.6.self_attn*",
36
+ "model.layers.7.self_attn*",
37
+ "model.layers.8.self_attn*",
38
+ "model.layers.9.self_attn*",
39
+ "lm_head"
40
+ ]
41
+ }
42
+ }
model-00001-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:846282b96c84c31112932dd88ba9ac160963fb7f3ffeffb67f12715af3dc3be7
3
+ size 5000886552
model-00002-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d8dacaa71e958f216e810b9763c21b04cce172f2292a0e40be4068e7f25cfef3
3
+ size 4812303464
model-00003-of-00003.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:836c6d6df4d3755775e5d8c619daf3512c5b0af87804b426e8c09fc146ba2c4f
3
+ size 671088752
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "auto_map": {
3
+ "AutoImageProcessor": "moonshotai/Kimi-VL-A3B-Thinking-2506--image_processing_kimi_vl.KimiVLImageProcessor",
4
+ "AutoProcessor": "moonshotai/Kimi-VL-A3B-Thinking-2506--processing_kimi_vl.KimiVLProcessor"
5
+ },
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "KimiVLImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "in_token_limit": 16384,
18
+ "merge_kernel_size": [
19
+ 2,
20
+ 2
21
+ ],
22
+ "num_pooled_tokens": 1024,
23
+ "pad_input": true,
24
+ "patch_size": 14,
25
+ "processor_class": "KimiVLProcessor"
26
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|im_end|>",
4
+ "<|im_user|>",
5
+ "<|im_assistant|>",
6
+ "<|im_system|>",
7
+ "<|im_middle|>",
8
+ "<|media_start|>",
9
+ "<|media_content|>",
10
+ "<|media_end|>",
11
+ "<|media_pad|>"
12
+ ],
13
+ "bos_token": {
14
+ "content": "[BOS]",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "eos_token": {
21
+ "content": "[EOS]",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "pad_token": {
28
+ "content": "[PAD]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ },
34
+ "unk_token": {
35
+ "content": "[UNK]",
36
+ "lstrip": false,
37
+ "normalized": false,
38
+ "rstrip": false,
39
+ "single_word": false
40
+ }
41
+ }
tiktoken.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6c497a7469b33ced9c38afb1ad6e47f03f5e5dc05f15930799210ec050c5103
3
+ size 2795286
tokenizer_config.json ADDED
@@ -0,0 +1,135 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "163584": {
4
+ "content": "[BOS]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "163585": {
12
+ "content": "[EOS]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "163586": {
20
+ "content": "<|im_end|>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "163587": {
28
+ "content": "<|im_user|>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "163588": {
36
+ "content": "<|im_assistant|>",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "163594": {
44
+ "content": "<|im_system|>",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ },
51
+ "163601": {
52
+ "content": "<|im_middle|>",
53
+ "lstrip": false,
54
+ "normalized": false,
55
+ "rstrip": false,
56
+ "single_word": false,
57
+ "special": true
58
+ },
59
+ "163602": {
60
+ "content": "<|media_start|>",
61
+ "lstrip": false,
62
+ "normalized": false,
63
+ "rstrip": false,
64
+ "single_word": false,
65
+ "special": true
66
+ },
67
+ "163603": {
68
+ "content": "<|media_content|>",
69
+ "lstrip": false,
70
+ "normalized": false,
71
+ "rstrip": false,
72
+ "single_word": false,
73
+ "special": true
74
+ },
75
+ "163604": {
76
+ "content": "<|media_end|>",
77
+ "lstrip": false,
78
+ "normalized": false,
79
+ "rstrip": false,
80
+ "single_word": false,
81
+ "special": true
82
+ },
83
+ "163605": {
84
+ "content": "<|media_pad|>",
85
+ "lstrip": false,
86
+ "normalized": false,
87
+ "rstrip": false,
88
+ "single_word": false,
89
+ "special": true
90
+ },
91
+ "163838": {
92
+ "content": "[PAD]",
93
+ "lstrip": false,
94
+ "normalized": false,
95
+ "rstrip": false,
96
+ "single_word": false,
97
+ "special": true
98
+ },
99
+ "163839": {
100
+ "content": "[UNK]",
101
+ "lstrip": false,
102
+ "normalized": false,
103
+ "rstrip": false,
104
+ "single_word": false,
105
+ "special": true
106
+ }
107
+ },
108
+ "additional_special_tokens": [
109
+ "<|im_end|>",
110
+ "<|im_user|>",
111
+ "<|im_assistant|>",
112
+ "<|im_system|>",
113
+ "<|im_middle|>",
114
+ "<|media_start|>",
115
+ "<|media_content|>",
116
+ "<|media_end|>",
117
+ "<|media_pad|>"
118
+ ],
119
+ "auto_map": {
120
+ "AutoTokenizer": [
121
+ "moonshotai/Kimi-VL-A3B-Thinking-2506--tokenization_moonshot.TikTokenTokenizer",
122
+ null
123
+ ]
124
+ },
125
+ "bos_token": "[BOS]",
126
+ "chat_template": "{%- for message in messages -%}\n {%- if loop.first and messages[0]['role'] != 'system' -%}\n {{'<|im_system|>system<|im_middle|>You are a helpful assistant<|im_end|>'}}\n {%- endif -%}\n {%- if message['role'] == 'system' -%}\n {{'<|im_system|>'}}\n {%- endif -%}\n {%- if message['role'] == 'user' -%}\n {{'<|im_user|>'}}\n {%- endif -%}\n {%- if message['role'] == 'assistant' -%}\n {{'<|im_assistant|>'}}\n {%- endif -%}\n {{- message['role'] -}}\n {{'<|im_middle|>'}}\n {%- if message['content'] is string -%}\n {{- message['content'] + '<|im_end|>' -}}\n {%- else -%}\n {%- for content in message['content'] -%}\n {%- if content['type'] == 'image' or 'image' in content or 'image_url' in content -%}\n {{'<|media_start|>image<|media_content|><|media_pad|><|media_end|>'}}\n {%- else -%}\n {{content['text']}}\n {%- endif -%}\n {%- endfor -%}\n {{'<|im_end|>'}}\n {%- endif -%}\n{%- endfor -%}\n{%- if add_generation_prompt -%}\n {{'<|im_assistant|>assistant<|im_middle|>'}}\n{%- endif -%}\n",
127
+ "clean_up_tokenization_spaces": false,
128
+ "eos_token": "[EOS]",
129
+ "extra_special_tokens": {},
130
+ "model_max_length": 1048576,
131
+ "pad_token": "[PAD]",
132
+ "processor_class": "KimiVLProcessor",
133
+ "tokenizer_class": "TikTokenTokenizer",
134
+ "unk_token": "[UNK]"
135
+ }
vision_model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:622d06355905894c2f218c3909ea577c44941f2814b2c067a4365cf362a802da
3
+ size 895130216