OpenIntelligenceNet commited on
Commit
88a9dee
·
verified ·
1 Parent(s): 67ce120

Upload merged FP16 Spark-X-2.5-Cyber (4B Offensive Cybersecurity fine-tune)

Browse files
chat_template.jinja ADDED
@@ -0,0 +1,110 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {#- 0826版本 -#}
2
+ {%- if not messages %}
3
+ {{- raise_exception('No messages provided.') }}
4
+ {%- endif %}
5
+ {%- set enable_thinking = enable_thinking | default(true) %}
6
+
7
+ {#- Render a string or a list of text blocks. -#}
8
+ {%- macro render_content(content, context_name) %}
9
+ {%- if content is string %}
10
+ {{- content }}
11
+ {%- elif content is none or content is undefined %}
12
+ {{- '' }}
13
+ {%- elif content is iterable and content is not mapping %}
14
+ {%- for block in content %}
15
+ {%- if block.type == 'text' %}
16
+ {{- block.text }}
17
+ {%- else %}
18
+ {{- raise_exception('Unsupported ' ~ context_name ~ ' content block type: ' ~ (block.type | string)) }}
19
+ {%- endif %}
20
+ {%- endfor %}
21
+ {%- else %}
22
+ {{- raise_exception(context_name ~ ' content must be a string or a list of text blocks') }}
23
+ {%- endif %}
24
+ {%- endmacro %}
25
+
26
+ {#- Default system prompt -#}
27
+ {%- set default_system = "you are a helpful assistant." %}
28
+
29
+ {#- The first message-level system is placed in the initial system block. -#}
30
+ {%- set ns = namespace(initial_system='') %}
31
+ {%- if messages[0].role == "system" %}
32
+ {%- set ns.initial_system = render_content(messages[0].content, 'system') %}
33
+ {%- endif %}
34
+
35
+ {#- System block -#}
36
+ {{- '<|start▁of▁sentence|><|System|>' + '\n' + default_system }}
37
+ {%- if tools %}
38
+ {{- '## Tools' + '\n' + 'You have access to the following functions:' + '\n' + '<tools>' }}
39
+ {%- for tool in tools %}
40
+ {{- '\n' + tool.function | tojson}}
41
+ {%- endfor %}
42
+ {{- '\n' + '</tools>' }}
43
+ {%- endif %}
44
+ {%- if ns.initial_system %}
45
+ {{- '\n\n' + ns.initial_system }}
46
+ {%- endif %}
47
+ {{- '<|end▁of▁sentence|>'}}
48
+
49
+ {#- Conversation turns -#}
50
+ {%- for message in messages %}
51
+ {%- if message.role == "system" %}
52
+ {#- The first system message was consumed by the initial block. -#}
53
+ {%- if not loop.first %}
54
+ {{- '<|start▁of▁sentence|><|System|>\n' + render_content(message.content, 'system') + '<|end▁of▁sentence|>' }}
55
+ {%- endif %}
56
+ {%- elif message.role == "user" %}
57
+ {{- '<|start▁of▁sentence|><|User|>' + render_content(message.content, 'user') + '<|end▁of▁sentence|>' }}
58
+ {%- elif message.role == "assistant" %}
59
+ {%- set assistant_content = render_content(message.content, 'assistant') %}
60
+ {%- if message.reasoning_content is defined and message.reasoning_content %}
61
+ {%- set reasoning_content = message.reasoning_content %}
62
+ {%- else %}
63
+ {%- set reasoning_content = '' %}
64
+ {%- endif %}
65
+ {{- '<|start▁of▁sentence|><|Bot|>'}}
66
+ {%- if reasoning_content %}
67
+ {{- '<think>' + reasoning_content + '</think>'}}
68
+ {%- else %}
69
+ {{- '</think>' }}
70
+ {%- endif %}
71
+ {%- if assistant_content %}
72
+ {{- assistant_content }}
73
+ {%- endif %}
74
+ {%- if message.tool_calls is defined and message.tool_calls is not none %}
75
+ {%- for tool_call in message.tool_calls %}
76
+ {%- if tool_call.function.arguments is not mapping %}
77
+ {{- raise_exception('tool_call.function.arguments must be a dictionary; normalize JSON strings before apply_chat_template') }}
78
+ {%- endif %}
79
+ {%- set args = tool_call.function.arguments %}
80
+ {{- '<tool_call>' + tool_call.function.name }}
81
+ {%- for k, v in args.items() %}
82
+ {{- '<arg_key>' ~ k ~ '</arg_key><arg_value>' ~ (v if v is string else v | tojson) ~ '</arg_value>' }}
83
+ {%- endfor %}
84
+ {{- '</tool_call>' }}
85
+ {%- endfor %}
86
+ {%- endif %}
87
+ {{- '<|end▁of▁sentence|>' }}
88
+ {%- elif message.role == "tool" %}
89
+ {%- if loop.previtem is undefined or loop.previtem.role != "tool" %}
90
+ {{- '<|start▁of▁sentence|><|Tool|>' }}
91
+ {%- endif %}
92
+ {{- '<tool_response>' ~ message.content ~ '</tool_response>' }}
93
+ {%- if loop.nextitem is undefined or loop.nextitem.role != "tool" %}
94
+ {{- '<|end▁of▁sentence|>' }}
95
+ {%- endif %}
96
+ {%- else %}
97
+ {{- raise_exception('Unsupported message role: ' ~ message.role) }}
98
+ {%- endif %}
99
+ {%- endfor %}
100
+
101
+ {#- Generation prompt -#}
102
+ {%- if add_generation_prompt %}
103
+ {{- '<|start▁of▁sentence|><|Bot|>' }}
104
+ {%- if enable_thinking is defined and enable_thinking %}
105
+ {{- '<think>' }}
106
+ {%- endif %}
107
+ {%- if enable_thinking is defined and not enable_thinking %}
108
+ {{- '</think>' }}
109
+ {%- endif %}
110
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,83 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Spark2_5ForCausalLM"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "auto_map": {
8
+ "AutoConfig": "configuration_spark.Spark2_5Config",
9
+ "AutoModel": "modeling_spark.Spark2_5Model",
10
+ "AutoModelForCausalLM": "modeling_spark.Spark2_5ForCausalLM"
11
+ },
12
+ "bos_token_id": 0,
13
+ "dtype": "float16",
14
+ "eos_token_id": 1,
15
+ "gate_attn_act_mode": "sigmoid",
16
+ "head_dim": 256,
17
+ "headwise_attn_output_gate": true,
18
+ "hidden_act": "gelu",
19
+ "hidden_size": 2560,
20
+ "initializer_range": 0.01976,
21
+ "intermediate_size": 10240,
22
+ "layer_types": [
23
+ "sliding_attention",
24
+ "sliding_attention",
25
+ "sliding_attention",
26
+ "full_attention",
27
+ "sliding_attention",
28
+ "sliding_attention",
29
+ "sliding_attention",
30
+ "full_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "sliding_attention",
34
+ "full_attention",
35
+ "sliding_attention",
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "full_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "full_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "sliding_attention",
46
+ "full_attention",
47
+ "sliding_attention",
48
+ "sliding_attention",
49
+ "sliding_attention",
50
+ "full_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "sliding_attention",
54
+ "full_attention",
55
+ "sliding_attention",
56
+ "sliding_attention",
57
+ "sliding_attention",
58
+ "full_attention"
59
+ ],
60
+ "max_position_embeddings": 1048576,
61
+ "mlp_bias": false,
62
+ "model_type": "spark2_5",
63
+ "num_attention_heads": 16,
64
+ "num_hidden_layers": 36,
65
+ "num_key_value_heads": 4,
66
+ "pad_token_id": 2,
67
+ "rms_norm_eps": 1e-06,
68
+ "rope_parameters": {
69
+ "full_attention": {
70
+ "partial_rotary_factor": 0.25,
71
+ "rope_theta": 5000000
72
+ },
73
+ "sliding_attention": {
74
+ "partial_rotary_factor": 1.0,
75
+ "rope_theta": 10000
76
+ }
77
+ },
78
+ "sliding_window": 512,
79
+ "tie_word_embeddings": true,
80
+ "transformers_version": "4.57.1",
81
+ "use_cache": true,
82
+ "vocab_size": 131072
83
+ }
configuration_spark.py ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2026 The XHToken team and the HuggingFace Inc. team. All rights reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ from transformers import PretrainedConfig
17
+
18
+
19
+ class Spark2_5Config(PretrainedConfig):
20
+ model_type = "spark2_5"
21
+ keys_to_ignore_at_inference = ["past_key_values"]
22
+
23
+ base_model_tp_plan = {
24
+ "layers.*.self_attn.q_k_v_proj": "colwise",
25
+ "layers.*.self_attn.g_proj": "colwise",
26
+ "layers.*.self_attn.out_proj": "rowwise",
27
+ "layers.*.mlp.gate_proj": "colwise",
28
+ "layers.*.mlp.up_proj": "colwise",
29
+ "layers.*.mlp.down_proj": "rowwise",
30
+ }
31
+ base_model_pp_plan = {
32
+ "embedding": (["input_ids"], ["inputs_embeds"]),
33
+ "layers": (["hidden_states", "attention_mask"], ["hidden_states"]),
34
+ "norm": (["hidden_states"], ["hidden_states"]),
35
+ }
36
+
37
+ def __init__(
38
+ self,
39
+ vocab_size=32000,
40
+ hidden_size=4096,
41
+ intermediate_size=11008,
42
+ num_hidden_layers=32,
43
+ num_attention_heads=32,
44
+ num_key_value_heads=None,
45
+ hidden_act="gelu",
46
+ max_position_embeddings=2048,
47
+ initializer_range=0.02,
48
+ rms_norm_eps=1e-6,
49
+ use_cache=True,
50
+ pad_token_id=None,
51
+ bos_token_id=1,
52
+ eos_token_id=2,
53
+ tie_word_embeddings=False,
54
+ rope_parameters=None,
55
+ attention_bias=False,
56
+ attention_dropout=0.0,
57
+ mlp_bias=False,
58
+ head_dim=None,
59
+ headwise_attn_output_gate=False,
60
+ gate_attn_act_mode="sigmoid",
61
+ sliding_window=None,
62
+ layer_types=None,
63
+ **kwargs,
64
+ ):
65
+ self.vocab_size = vocab_size
66
+ self.max_position_embeddings = max_position_embeddings
67
+ self.hidden_size = hidden_size
68
+ self.intermediate_size = intermediate_size
69
+ self.num_hidden_layers = num_hidden_layers
70
+ self.num_attention_heads = num_attention_heads
71
+
72
+ if num_key_value_heads is None:
73
+ num_key_value_heads = num_attention_heads
74
+ if num_attention_heads % num_key_value_heads != 0:
75
+ raise ValueError(
76
+ f"num_attention_heads ({num_attention_heads}) must be divisible by num_key_value_heads ({num_key_value_heads})"
77
+ )
78
+ self.num_key_value_heads = num_key_value_heads
79
+
80
+ self.hidden_act = hidden_act
81
+ self.initializer_range = initializer_range
82
+ self.rms_norm_eps = rms_norm_eps
83
+ self.use_cache = use_cache
84
+ self.attention_bias = attention_bias
85
+ self.attention_dropout = attention_dropout
86
+ self.mlp_bias = mlp_bias
87
+ self.head_dim = head_dim if head_dim is not None else self.hidden_size // self.num_attention_heads
88
+ self.headwise_attn_output_gate = headwise_attn_output_gate
89
+ self.gate_attn_act_mode = gate_attn_act_mode
90
+ self.sliding_window = sliding_window
91
+ self.rope_parameters = rope_parameters
92
+
93
+ if layer_types is None:
94
+ layer_types = ["full_attention"] * num_hidden_layers
95
+ if len(layer_types) != num_hidden_layers:
96
+ raise ValueError(
97
+ f"layer_types length ({len(layer_types)}) must match num_hidden_layers ({num_hidden_layers})"
98
+ )
99
+ self.layer_types = layer_types
100
+
101
+ super().__init__(
102
+ pad_token_id=pad_token_id,
103
+ bos_token_id=bos_token_id,
104
+ eos_token_id=eos_token_id,
105
+ tie_word_embeddings=tie_word_embeddings,
106
+ **kwargs,
107
+ )
108
+
109
+ def get_rope_theta(self, layer_type):
110
+ params = self.rope_parameters.get(layer_type, {})
111
+ return params.get("rope_theta", 10000)
112
+
113
+ def get_partial_rotary_factor(self, layer_type):
114
+ params = self.rope_parameters.get(layer_type, {})
115
+ return params.get("partial_rotary_factor", 1.0)
116
+
117
+
118
+ __all__ = ["Spark2_5Config"]
generation_config.json ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 0,
3
+ "do_sample": true,
4
+ "eos_token_id": 1,
5
+ "frequency_penalty": 0,
6
+ "max_tokens": 1048576,
7
+ "pad_token_id": 2,
8
+ "presence_penalty": 0,
9
+ "top_k": null,
10
+ "top_p": 0.95,
11
+ "transformers_version": "4.57.1"
12
+ }
model-00001-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3cb598bdc133c5da35d7c498c43ac17d714c24e6232d5a2c1c7fa1b795c18edc
3
+ size 1982449512
model-00002-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd4f460f40f9587c62f75f1500582890eaa5927704c80dcef4c50136d337e016
3
+ size 1993132344
model-00003-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7341370a2757b4a23cbab5ff1b2b434b6836511c2f5091d517747959473e6367
3
+ size 1993225008
model-00004-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:05323035bc55ff5562cc44d5a98217ec08dd713c23b45c291b2f927cb6c1d4fb
3
+ size 1993132376
model-00005-of-00005.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c73bcd888485c412116880450a3f9a7746b1ee0c69eb8d752fc8abd8588f5bb
3
+ size 262252880
model.safetensors.index.json ADDED
@@ -0,0 +1,298 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "metadata": {
3
+ "total_parameters": 4112079360,
4
+ "total_size": 8224158720
5
+ },
6
+ "weight_map": {
7
+ "model.embedding.weight": "model-00001-of-00005.safetensors",
8
+ "model.layers.0.input_layernorm.weight": "model-00001-of-00005.safetensors",
9
+ "model.layers.0.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
10
+ "model.layers.0.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
11
+ "model.layers.0.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
12
+ "model.layers.0.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
13
+ "model.layers.0.self_attn.g_proj.weight": "model-00001-of-00005.safetensors",
14
+ "model.layers.0.self_attn.out_proj.weight": "model-00001-of-00005.safetensors",
15
+ "model.layers.0.self_attn.q_k_v_proj.weight": "model-00001-of-00005.safetensors",
16
+ "model.layers.1.input_layernorm.weight": "model-00001-of-00005.safetensors",
17
+ "model.layers.1.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
18
+ "model.layers.1.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
19
+ "model.layers.1.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
20
+ "model.layers.1.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
21
+ "model.layers.1.self_attn.g_proj.weight": "model-00001-of-00005.safetensors",
22
+ "model.layers.1.self_attn.out_proj.weight": "model-00001-of-00005.safetensors",
23
+ "model.layers.1.self_attn.q_k_v_proj.weight": "model-00001-of-00005.safetensors",
24
+ "model.layers.10.input_layernorm.weight": "model-00002-of-00005.safetensors",
25
+ "model.layers.10.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
26
+ "model.layers.10.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
27
+ "model.layers.10.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
28
+ "model.layers.10.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
29
+ "model.layers.10.self_attn.g_proj.weight": "model-00002-of-00005.safetensors",
30
+ "model.layers.10.self_attn.out_proj.weight": "model-00002-of-00005.safetensors",
31
+ "model.layers.10.self_attn.q_k_v_proj.weight": "model-00002-of-00005.safetensors",
32
+ "model.layers.11.input_layernorm.weight": "model-00002-of-00005.safetensors",
33
+ "model.layers.11.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
34
+ "model.layers.11.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
35
+ "model.layers.11.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
36
+ "model.layers.11.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
37
+ "model.layers.11.self_attn.g_proj.weight": "model-00002-of-00005.safetensors",
38
+ "model.layers.11.self_attn.out_proj.weight": "model-00002-of-00005.safetensors",
39
+ "model.layers.11.self_attn.q_k_v_proj.weight": "model-00002-of-00005.safetensors",
40
+ "model.layers.12.input_layernorm.weight": "model-00002-of-00005.safetensors",
41
+ "model.layers.12.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
42
+ "model.layers.12.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
43
+ "model.layers.12.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
44
+ "model.layers.12.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
45
+ "model.layers.12.self_attn.g_proj.weight": "model-00002-of-00005.safetensors",
46
+ "model.layers.12.self_attn.out_proj.weight": "model-00002-of-00005.safetensors",
47
+ "model.layers.12.self_attn.q_k_v_proj.weight": "model-00002-of-00005.safetensors",
48
+ "model.layers.13.input_layernorm.weight": "model-00002-of-00005.safetensors",
49
+ "model.layers.13.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
50
+ "model.layers.13.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
51
+ "model.layers.13.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
52
+ "model.layers.13.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
53
+ "model.layers.13.self_attn.g_proj.weight": "model-00002-of-00005.safetensors",
54
+ "model.layers.13.self_attn.out_proj.weight": "model-00002-of-00005.safetensors",
55
+ "model.layers.13.self_attn.q_k_v_proj.weight": "model-00002-of-00005.safetensors",
56
+ "model.layers.14.input_layernorm.weight": "model-00002-of-00005.safetensors",
57
+ "model.layers.14.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
58
+ "model.layers.14.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
59
+ "model.layers.14.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
60
+ "model.layers.14.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
61
+ "model.layers.14.self_attn.g_proj.weight": "model-00002-of-00005.safetensors",
62
+ "model.layers.14.self_attn.out_proj.weight": "model-00002-of-00005.safetensors",
63
+ "model.layers.14.self_attn.q_k_v_proj.weight": "model-00002-of-00005.safetensors",
64
+ "model.layers.15.input_layernorm.weight": "model-00003-of-00005.safetensors",
65
+ "model.layers.15.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
66
+ "model.layers.15.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
67
+ "model.layers.15.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
68
+ "model.layers.15.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
69
+ "model.layers.15.self_attn.g_proj.weight": "model-00002-of-00005.safetensors",
70
+ "model.layers.15.self_attn.out_proj.weight": "model-00002-of-00005.safetensors",
71
+ "model.layers.15.self_attn.q_k_v_proj.weight": "model-00002-of-00005.safetensors",
72
+ "model.layers.16.input_layernorm.weight": "model-00003-of-00005.safetensors",
73
+ "model.layers.16.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
74
+ "model.layers.16.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
75
+ "model.layers.16.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
76
+ "model.layers.16.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
77
+ "model.layers.16.self_attn.g_proj.weight": "model-00003-of-00005.safetensors",
78
+ "model.layers.16.self_attn.out_proj.weight": "model-00003-of-00005.safetensors",
79
+ "model.layers.16.self_attn.q_k_v_proj.weight": "model-00003-of-00005.safetensors",
80
+ "model.layers.17.input_layernorm.weight": "model-00003-of-00005.safetensors",
81
+ "model.layers.17.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
82
+ "model.layers.17.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
83
+ "model.layers.17.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
84
+ "model.layers.17.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
85
+ "model.layers.17.self_attn.g_proj.weight": "model-00003-of-00005.safetensors",
86
+ "model.layers.17.self_attn.out_proj.weight": "model-00003-of-00005.safetensors",
87
+ "model.layers.17.self_attn.q_k_v_proj.weight": "model-00003-of-00005.safetensors",
88
+ "model.layers.18.input_layernorm.weight": "model-00003-of-00005.safetensors",
89
+ "model.layers.18.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
90
+ "model.layers.18.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
91
+ "model.layers.18.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
92
+ "model.layers.18.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
93
+ "model.layers.18.self_attn.g_proj.weight": "model-00003-of-00005.safetensors",
94
+ "model.layers.18.self_attn.out_proj.weight": "model-00003-of-00005.safetensors",
95
+ "model.layers.18.self_attn.q_k_v_proj.weight": "model-00003-of-00005.safetensors",
96
+ "model.layers.19.input_layernorm.weight": "model-00003-of-00005.safetensors",
97
+ "model.layers.19.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
98
+ "model.layers.19.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
99
+ "model.layers.19.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
100
+ "model.layers.19.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
101
+ "model.layers.19.self_attn.g_proj.weight": "model-00003-of-00005.safetensors",
102
+ "model.layers.19.self_attn.out_proj.weight": "model-00003-of-00005.safetensors",
103
+ "model.layers.19.self_attn.q_k_v_proj.weight": "model-00003-of-00005.safetensors",
104
+ "model.layers.2.input_layernorm.weight": "model-00001-of-00005.safetensors",
105
+ "model.layers.2.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
106
+ "model.layers.2.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
107
+ "model.layers.2.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
108
+ "model.layers.2.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
109
+ "model.layers.2.self_attn.g_proj.weight": "model-00001-of-00005.safetensors",
110
+ "model.layers.2.self_attn.out_proj.weight": "model-00001-of-00005.safetensors",
111
+ "model.layers.2.self_attn.q_k_v_proj.weight": "model-00001-of-00005.safetensors",
112
+ "model.layers.20.input_layernorm.weight": "model-00003-of-00005.safetensors",
113
+ "model.layers.20.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
114
+ "model.layers.20.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
115
+ "model.layers.20.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
116
+ "model.layers.20.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
117
+ "model.layers.20.self_attn.g_proj.weight": "model-00003-of-00005.safetensors",
118
+ "model.layers.20.self_attn.out_proj.weight": "model-00003-of-00005.safetensors",
119
+ "model.layers.20.self_attn.q_k_v_proj.weight": "model-00003-of-00005.safetensors",
120
+ "model.layers.21.input_layernorm.weight": "model-00003-of-00005.safetensors",
121
+ "model.layers.21.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
122
+ "model.layers.21.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
123
+ "model.layers.21.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
124
+ "model.layers.21.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
125
+ "model.layers.21.self_attn.g_proj.weight": "model-00003-of-00005.safetensors",
126
+ "model.layers.21.self_attn.out_proj.weight": "model-00003-of-00005.safetensors",
127
+ "model.layers.21.self_attn.q_k_v_proj.weight": "model-00003-of-00005.safetensors",
128
+ "model.layers.22.input_layernorm.weight": "model-00003-of-00005.safetensors",
129
+ "model.layers.22.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
130
+ "model.layers.22.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
131
+ "model.layers.22.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
132
+ "model.layers.22.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
133
+ "model.layers.22.self_attn.g_proj.weight": "model-00003-of-00005.safetensors",
134
+ "model.layers.22.self_attn.out_proj.weight": "model-00003-of-00005.safetensors",
135
+ "model.layers.22.self_attn.q_k_v_proj.weight": "model-00003-of-00005.safetensors",
136
+ "model.layers.23.input_layernorm.weight": "model-00003-of-00005.safetensors",
137
+ "model.layers.23.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
138
+ "model.layers.23.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
139
+ "model.layers.23.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
140
+ "model.layers.23.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
141
+ "model.layers.23.self_attn.g_proj.weight": "model-00003-of-00005.safetensors",
142
+ "model.layers.23.self_attn.out_proj.weight": "model-00003-of-00005.safetensors",
143
+ "model.layers.23.self_attn.q_k_v_proj.weight": "model-00003-of-00005.safetensors",
144
+ "model.layers.24.input_layernorm.weight": "model-00003-of-00005.safetensors",
145
+ "model.layers.24.mlp.down_proj.weight": "model-00003-of-00005.safetensors",
146
+ "model.layers.24.mlp.gate_proj.weight": "model-00003-of-00005.safetensors",
147
+ "model.layers.24.mlp.up_proj.weight": "model-00003-of-00005.safetensors",
148
+ "model.layers.24.post_attention_layernorm.weight": "model-00003-of-00005.safetensors",
149
+ "model.layers.24.self_attn.g_proj.weight": "model-00003-of-00005.safetensors",
150
+ "model.layers.24.self_attn.out_proj.weight": "model-00003-of-00005.safetensors",
151
+ "model.layers.24.self_attn.q_k_v_proj.weight": "model-00003-of-00005.safetensors",
152
+ "model.layers.25.input_layernorm.weight": "model-00004-of-00005.safetensors",
153
+ "model.layers.25.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
154
+ "model.layers.25.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
155
+ "model.layers.25.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
156
+ "model.layers.25.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
157
+ "model.layers.25.self_attn.g_proj.weight": "model-00003-of-00005.safetensors",
158
+ "model.layers.25.self_attn.out_proj.weight": "model-00003-of-00005.safetensors",
159
+ "model.layers.25.self_attn.q_k_v_proj.weight": "model-00003-of-00005.safetensors",
160
+ "model.layers.26.input_layernorm.weight": "model-00004-of-00005.safetensors",
161
+ "model.layers.26.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
162
+ "model.layers.26.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
163
+ "model.layers.26.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
164
+ "model.layers.26.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
165
+ "model.layers.26.self_attn.g_proj.weight": "model-00004-of-00005.safetensors",
166
+ "model.layers.26.self_attn.out_proj.weight": "model-00004-of-00005.safetensors",
167
+ "model.layers.26.self_attn.q_k_v_proj.weight": "model-00004-of-00005.safetensors",
168
+ "model.layers.27.input_layernorm.weight": "model-00004-of-00005.safetensors",
169
+ "model.layers.27.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
170
+ "model.layers.27.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
171
+ "model.layers.27.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
172
+ "model.layers.27.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
173
+ "model.layers.27.self_attn.g_proj.weight": "model-00004-of-00005.safetensors",
174
+ "model.layers.27.self_attn.out_proj.weight": "model-00004-of-00005.safetensors",
175
+ "model.layers.27.self_attn.q_k_v_proj.weight": "model-00004-of-00005.safetensors",
176
+ "model.layers.28.input_layernorm.weight": "model-00004-of-00005.safetensors",
177
+ "model.layers.28.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
178
+ "model.layers.28.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
179
+ "model.layers.28.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
180
+ "model.layers.28.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
181
+ "model.layers.28.self_attn.g_proj.weight": "model-00004-of-00005.safetensors",
182
+ "model.layers.28.self_attn.out_proj.weight": "model-00004-of-00005.safetensors",
183
+ "model.layers.28.self_attn.q_k_v_proj.weight": "model-00004-of-00005.safetensors",
184
+ "model.layers.29.input_layernorm.weight": "model-00004-of-00005.safetensors",
185
+ "model.layers.29.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
186
+ "model.layers.29.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
187
+ "model.layers.29.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
188
+ "model.layers.29.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
189
+ "model.layers.29.self_attn.g_proj.weight": "model-00004-of-00005.safetensors",
190
+ "model.layers.29.self_attn.out_proj.weight": "model-00004-of-00005.safetensors",
191
+ "model.layers.29.self_attn.q_k_v_proj.weight": "model-00004-of-00005.safetensors",
192
+ "model.layers.3.input_layernorm.weight": "model-00001-of-00005.safetensors",
193
+ "model.layers.3.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
194
+ "model.layers.3.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
195
+ "model.layers.3.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
196
+ "model.layers.3.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
197
+ "model.layers.3.self_attn.g_proj.weight": "model-00001-of-00005.safetensors",
198
+ "model.layers.3.self_attn.out_proj.weight": "model-00001-of-00005.safetensors",
199
+ "model.layers.3.self_attn.q_k_v_proj.weight": "model-00001-of-00005.safetensors",
200
+ "model.layers.30.input_layernorm.weight": "model-00004-of-00005.safetensors",
201
+ "model.layers.30.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
202
+ "model.layers.30.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
203
+ "model.layers.30.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
204
+ "model.layers.30.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
205
+ "model.layers.30.self_attn.g_proj.weight": "model-00004-of-00005.safetensors",
206
+ "model.layers.30.self_attn.out_proj.weight": "model-00004-of-00005.safetensors",
207
+ "model.layers.30.self_attn.q_k_v_proj.weight": "model-00004-of-00005.safetensors",
208
+ "model.layers.31.input_layernorm.weight": "model-00004-of-00005.safetensors",
209
+ "model.layers.31.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
210
+ "model.layers.31.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
211
+ "model.layers.31.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
212
+ "model.layers.31.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
213
+ "model.layers.31.self_attn.g_proj.weight": "model-00004-of-00005.safetensors",
214
+ "model.layers.31.self_attn.out_proj.weight": "model-00004-of-00005.safetensors",
215
+ "model.layers.31.self_attn.q_k_v_proj.weight": "model-00004-of-00005.safetensors",
216
+ "model.layers.32.input_layernorm.weight": "model-00004-of-00005.safetensors",
217
+ "model.layers.32.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
218
+ "model.layers.32.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
219
+ "model.layers.32.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
220
+ "model.layers.32.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
221
+ "model.layers.32.self_attn.g_proj.weight": "model-00004-of-00005.safetensors",
222
+ "model.layers.32.self_attn.out_proj.weight": "model-00004-of-00005.safetensors",
223
+ "model.layers.32.self_attn.q_k_v_proj.weight": "model-00004-of-00005.safetensors",
224
+ "model.layers.33.input_layernorm.weight": "model-00004-of-00005.safetensors",
225
+ "model.layers.33.mlp.down_proj.weight": "model-00004-of-00005.safetensors",
226
+ "model.layers.33.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
227
+ "model.layers.33.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
228
+ "model.layers.33.post_attention_layernorm.weight": "model-00004-of-00005.safetensors",
229
+ "model.layers.33.self_attn.g_proj.weight": "model-00004-of-00005.safetensors",
230
+ "model.layers.33.self_attn.out_proj.weight": "model-00004-of-00005.safetensors",
231
+ "model.layers.33.self_attn.q_k_v_proj.weight": "model-00004-of-00005.safetensors",
232
+ "model.layers.34.input_layernorm.weight": "model-00005-of-00005.safetensors",
233
+ "model.layers.34.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
234
+ "model.layers.34.mlp.gate_proj.weight": "model-00004-of-00005.safetensors",
235
+ "model.layers.34.mlp.up_proj.weight": "model-00004-of-00005.safetensors",
236
+ "model.layers.34.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
237
+ "model.layers.34.self_attn.g_proj.weight": "model-00004-of-00005.safetensors",
238
+ "model.layers.34.self_attn.out_proj.weight": "model-00004-of-00005.safetensors",
239
+ "model.layers.34.self_attn.q_k_v_proj.weight": "model-00004-of-00005.safetensors",
240
+ "model.layers.35.input_layernorm.weight": "model-00005-of-00005.safetensors",
241
+ "model.layers.35.mlp.down_proj.weight": "model-00005-of-00005.safetensors",
242
+ "model.layers.35.mlp.gate_proj.weight": "model-00005-of-00005.safetensors",
243
+ "model.layers.35.mlp.up_proj.weight": "model-00005-of-00005.safetensors",
244
+ "model.layers.35.post_attention_layernorm.weight": "model-00005-of-00005.safetensors",
245
+ "model.layers.35.self_attn.g_proj.weight": "model-00005-of-00005.safetensors",
246
+ "model.layers.35.self_attn.out_proj.weight": "model-00005-of-00005.safetensors",
247
+ "model.layers.35.self_attn.q_k_v_proj.weight": "model-00005-of-00005.safetensors",
248
+ "model.layers.4.input_layernorm.weight": "model-00001-of-00005.safetensors",
249
+ "model.layers.4.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
250
+ "model.layers.4.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
251
+ "model.layers.4.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
252
+ "model.layers.4.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
253
+ "model.layers.4.self_attn.g_proj.weight": "model-00001-of-00005.safetensors",
254
+ "model.layers.4.self_attn.out_proj.weight": "model-00001-of-00005.safetensors",
255
+ "model.layers.4.self_attn.q_k_v_proj.weight": "model-00001-of-00005.safetensors",
256
+ "model.layers.5.input_layernorm.weight": "model-00001-of-00005.safetensors",
257
+ "model.layers.5.mlp.down_proj.weight": "model-00001-of-00005.safetensors",
258
+ "model.layers.5.mlp.gate_proj.weight": "model-00001-of-00005.safetensors",
259
+ "model.layers.5.mlp.up_proj.weight": "model-00001-of-00005.safetensors",
260
+ "model.layers.5.post_attention_layernorm.weight": "model-00001-of-00005.safetensors",
261
+ "model.layers.5.self_attn.g_proj.weight": "model-00001-of-00005.safetensors",
262
+ "model.layers.5.self_attn.out_proj.weight": "model-00001-of-00005.safetensors",
263
+ "model.layers.5.self_attn.q_k_v_proj.weight": "model-00001-of-00005.safetensors",
264
+ "model.layers.6.input_layernorm.weight": "model-00002-of-00005.safetensors",
265
+ "model.layers.6.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
266
+ "model.layers.6.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
267
+ "model.layers.6.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
268
+ "model.layers.6.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
269
+ "model.layers.6.self_attn.g_proj.weight": "model-00001-of-00005.safetensors",
270
+ "model.layers.6.self_attn.out_proj.weight": "model-00001-of-00005.safetensors",
271
+ "model.layers.6.self_attn.q_k_v_proj.weight": "model-00001-of-00005.safetensors",
272
+ "model.layers.7.input_layernorm.weight": "model-00002-of-00005.safetensors",
273
+ "model.layers.7.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
274
+ "model.layers.7.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
275
+ "model.layers.7.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
276
+ "model.layers.7.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
277
+ "model.layers.7.self_attn.g_proj.weight": "model-00002-of-00005.safetensors",
278
+ "model.layers.7.self_attn.out_proj.weight": "model-00002-of-00005.safetensors",
279
+ "model.layers.7.self_attn.q_k_v_proj.weight": "model-00002-of-00005.safetensors",
280
+ "model.layers.8.input_layernorm.weight": "model-00002-of-00005.safetensors",
281
+ "model.layers.8.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
282
+ "model.layers.8.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
283
+ "model.layers.8.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
284
+ "model.layers.8.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
285
+ "model.layers.8.self_attn.g_proj.weight": "model-00002-of-00005.safetensors",
286
+ "model.layers.8.self_attn.out_proj.weight": "model-00002-of-00005.safetensors",
287
+ "model.layers.8.self_attn.q_k_v_proj.weight": "model-00002-of-00005.safetensors",
288
+ "model.layers.9.input_layernorm.weight": "model-00002-of-00005.safetensors",
289
+ "model.layers.9.mlp.down_proj.weight": "model-00002-of-00005.safetensors",
290
+ "model.layers.9.mlp.gate_proj.weight": "model-00002-of-00005.safetensors",
291
+ "model.layers.9.mlp.up_proj.weight": "model-00002-of-00005.safetensors",
292
+ "model.layers.9.post_attention_layernorm.weight": "model-00002-of-00005.safetensors",
293
+ "model.layers.9.self_attn.g_proj.weight": "model-00002-of-00005.safetensors",
294
+ "model.layers.9.self_attn.out_proj.weight": "model-00002-of-00005.safetensors",
295
+ "model.layers.9.self_attn.q_k_v_proj.weight": "model-00002-of-00005.safetensors",
296
+ "model.norm.weight": "model-00005-of-00005.safetensors"
297
+ }
298
+ }
modeling_spark.py ADDED
@@ -0,0 +1,483 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import math
2
+
3
+ import torch
4
+ import torch.nn.functional as F
5
+ from torch import nn
6
+ from transformers.activations import ACT2FN
7
+ from transformers.cache_utils import Cache, DynamicCache
8
+ from transformers.generation import GenerationMixin
9
+ from transformers.masking_utils import create_causal_mask, create_sliding_window_causal_mask
10
+ from transformers.modeling_outputs import (
11
+ BaseModelOutputWithPast,
12
+ CausalLMOutputWithPast,
13
+ )
14
+ from transformers.modeling_utils import PreTrainedModel
15
+ from transformers.processing_utils import Unpack
16
+ from transformers.pytorch_utils import ALL_LAYERNORM_LAYERS
17
+ from transformers.utils import TransformersKwargs, can_return_tuple, logging
18
+
19
+ from .configuration_spark import Spark2_5Config
20
+
21
+ logger = logging.get_logger(__name__)
22
+
23
+ _CONFIG_FOR_DOC = "Spark2_5Config"
24
+
25
+ def rotate_half(x):
26
+ x1 = x[..., : x.shape[-1] // 2]
27
+ x2 = x[..., x.shape[-1] // 2 :]
28
+ return torch.cat((-x2, x1), dim=-1)
29
+
30
+
31
+ def compute_rope_cos_sin(positions, head_dim, rope_theta, partial_rotary_factor=1.0, device="cpu"):
32
+ rope_head_dim = int(head_dim * partial_rotary_factor)
33
+ inv_freq = 1.0 / (rope_theta ** (torch.arange(0, rope_head_dim, 2, dtype=torch.int64).to(device="cpu", dtype=torch.float) / rope_head_dim))
34
+ inv_freq = inv_freq.to(device)
35
+ t = positions.to(device=device, dtype=torch.float32)
36
+ freqs = torch.outer(t, inv_freq)
37
+ freqs = torch.cat([freqs, freqs], dim=-1)
38
+ cos = freqs.cos()
39
+ sin = freqs.sin()
40
+ return cos, sin
41
+
42
+
43
+ def apply_rotary_pos_emb(x, cos, sin):
44
+ rope_head_dim = cos.shape[-1]
45
+ x_f32 = x.float()
46
+ if x_f32.shape[-1] > rope_head_dim:
47
+ x_rot = x_f32[..., :rope_head_dim]
48
+ x_pass = x_f32[..., rope_head_dim:]
49
+ c = cos.unsqueeze(0).unsqueeze(0)
50
+ s = sin.unsqueeze(0).unsqueeze(0)
51
+ x_rot = x_rot * c + rotate_half(x_rot) * s
52
+ result = torch.cat([x_rot, x_pass], dim=-1)
53
+ else:
54
+ c = cos.unsqueeze(0).unsqueeze(0)
55
+ s = sin.unsqueeze(0).unsqueeze(0)
56
+ result = x_f32 * c + rotate_half(x_f32) * s
57
+ return result.to(x.dtype)
58
+
59
+
60
+ def repeat_kv(hidden_states: torch.Tensor, n_rep: int) -> torch.Tensor:
61
+ batch, num_key_value_heads, slen, head_dim = hidden_states.shape
62
+ if n_rep == 1:
63
+ return hidden_states
64
+ hidden_states = hidden_states[:, :, None, :, :].expand(batch, num_key_value_heads, n_rep, slen, head_dim)
65
+ return hidden_states.reshape(batch, num_key_value_heads * n_rep, slen, head_dim)
66
+
67
+
68
+ def eager_attention_forward(
69
+ module: nn.Module,
70
+ query: torch.Tensor,
71
+ key: torch.Tensor,
72
+ value: torch.Tensor,
73
+ attention_mask: torch.Tensor | None = None,
74
+ scaling: float | None = None,
75
+ dropout: float = 0.0,
76
+ **kwargs: Unpack[TransformersKwargs],
77
+ ):
78
+ key = repeat_kv(key, module.num_key_value_groups)
79
+ value = repeat_kv(value, module.num_key_value_groups)
80
+
81
+ if scaling is None:
82
+ scaling = 1.0 / math.sqrt(query.shape[-1])
83
+
84
+ attn_weights = torch.matmul(query, key.transpose(2, 3)) * scaling
85
+ if attention_mask is not None:
86
+ causal_mask = attention_mask[:, :, :, : key.shape[-2]]
87
+ attn_weights = attn_weights + causal_mask
88
+
89
+ attn_weights = attn_weights - attn_weights.max(dim=-1, keepdim=True).values
90
+ attn_weights = F.softmax(attn_weights, dim=-1, dtype=torch.float32).to(query.dtype)
91
+ attn_weights = nn.functional.dropout(attn_weights, p=dropout, training=module.training)
92
+ attn_output = torch.matmul(attn_weights, value)
93
+ return attn_output, attn_weights
94
+
95
+
96
+ class Spark2_5RMSNorm(nn.Module):
97
+ def __init__(self, hidden_size, eps=1e-6):
98
+ super().__init__()
99
+ self.weight = nn.Parameter(torch.ones(hidden_size))
100
+ self.variance_epsilon = eps
101
+
102
+ def forward(self, hidden_states):
103
+ input_dtype = hidden_states.dtype
104
+ hidden_states = hidden_states.to(torch.float32)
105
+ variance = hidden_states.pow(2).mean(-1, keepdim=True)
106
+ hidden_states = hidden_states * torch.rsqrt(variance + self.variance_epsilon)
107
+ return (self.weight.float() * hidden_states).to(input_dtype)
108
+
109
+ def extra_repr(self):
110
+ return f"{tuple(self.weight.shape)}, eps={self.variance_epsilon}"
111
+
112
+
113
+ ALL_LAYERNORM_LAYERS.append(Spark2_5RMSNorm)
114
+
115
+
116
+ class Spark2_5MLP(nn.Module):
117
+ def __init__(self, config):
118
+ super().__init__()
119
+ self.config = config
120
+ self.hidden_size = config.hidden_size
121
+ self.intermediate_size = config.intermediate_size
122
+ self.gate_proj = nn.Linear(self.hidden_size, self.intermediate_size, bias=config.mlp_bias)
123
+ self.up_proj = nn.Linear(self.hidden_size, self.intermediate_size, bias=config.mlp_bias)
124
+ self.down_proj = nn.Linear(self.intermediate_size, self.hidden_size, bias=config.mlp_bias)
125
+
126
+ if config.hidden_act != "gelu":
127
+ raise ValueError(f"只支持hidden_act='gelu',当前传入:{config.hidden_act}")
128
+
129
+ self.act_fn = ACT2FN[config.hidden_act]
130
+
131
+ def forward(self, x):
132
+ return self.down_proj(self.act_fn(self.gate_proj(x)) * self.up_proj(x))
133
+
134
+
135
+ class Spark2_5Attention(nn.Module):
136
+ def __init__(self, config: Spark2_5Config, layer_idx: int | None = None):
137
+ super().__init__()
138
+ self.config = config
139
+ self.layer_idx = layer_idx
140
+ self.attention_dropout = config.attention_dropout
141
+ self.hidden_size = config.hidden_size
142
+ self.num_heads = config.num_attention_heads
143
+ self.head_dim = config.head_dim
144
+ self.num_key_value_heads = config.num_key_value_heads
145
+ self.num_key_value_groups = self.num_heads // self.num_key_value_heads
146
+ self.scaling = 1.0 / math.sqrt(self.head_dim)
147
+ self.headwise_attn_output_gate = config.headwise_attn_output_gate
148
+ self.gate_attn_act_mode = config.gate_attn_act_mode
149
+ self.q_dim = self.num_heads * self.head_dim
150
+ self.kv_dim = self.num_key_value_heads * self.head_dim
151
+
152
+ qkv_out_dim = self.q_dim + 2 * self.kv_dim
153
+ self.q_k_v_proj = nn.Linear(self.hidden_size, qkv_out_dim, bias=config.attention_bias)
154
+ self.g_proj = nn.Linear(self.hidden_size, self.num_heads, bias=config.attention_bias) if self.headwise_attn_output_gate else None
155
+ self.out_proj = nn.Linear(self.num_heads * self.head_dim, self.hidden_size, bias=config.attention_bias)
156
+ self.sliding_window = None
157
+
158
+ def forward(
159
+ self,
160
+ hidden_states: torch.Tensor,
161
+ position_embeddings: tuple[torch.Tensor, torch.Tensor],
162
+ attention_mask: torch.Tensor | None = None,
163
+ past_key_values: Cache | None = None,
164
+ cache_position: torch.LongTensor | None = None,
165
+ **kwargs: Unpack[TransformersKwargs],
166
+ ) -> tuple[torch.Tensor, torch.Tensor]:
167
+ input_shape = hidden_states.shape[:-1]
168
+ bsz, seq_len = input_shape
169
+
170
+ qkv = self.q_k_v_proj(hidden_states)
171
+ q = qkv[..., :self.q_dim]
172
+ k = qkv[..., self.q_dim:self.q_dim + self.kv_dim]
173
+ v = qkv[..., self.q_dim + self.kv_dim:]
174
+ gate_score = self.g_proj(hidden_states) if self.g_proj is not None else None
175
+
176
+ q = q.view(bsz, seq_len, self.num_heads, self.head_dim).transpose(1, 2)
177
+ k = k.view(bsz, seq_len, self.num_key_value_heads, self.head_dim).transpose(1, 2)
178
+ v = v.view(bsz, seq_len, self.num_key_value_heads, self.head_dim).transpose(1, 2)
179
+ if gate_score is not None:
180
+ gate_score = gate_score.view(bsz, seq_len, self.num_heads, 1).transpose(1, 2)
181
+
182
+ cos, sin = position_embeddings
183
+ q = apply_rotary_pos_emb(q, cos, sin)
184
+ k = apply_rotary_pos_emb(k, cos, sin)
185
+
186
+
187
+ if past_key_values is not None:
188
+ cache_kwargs = {"sin": sin, "cos": cos, "cache_position": cache_position}
189
+ k, v = past_key_values.update(k, v, self.layer_idx, cache_kwargs)
190
+
191
+ attn_output, attn_weights = eager_attention_forward(
192
+ self, q, k, v,
193
+ attention_mask=attention_mask,
194
+ scaling=self.scaling,
195
+ dropout=self.attention_dropout if self.training else 0.0,
196
+ )
197
+
198
+ if gate_score is not None:
199
+ if self.gate_attn_act_mode == "sigmoid":
200
+ gate = torch.sigmoid(gate_score.float())
201
+ elif self.gate_attn_act_mode == "silu":
202
+ gate = F.silu(gate_score.float())
203
+ else:
204
+ raise ValueError(f"Unsupported gate_attn_act_mode: {self.gate_attn_act_mode}")
205
+ gate = gate.to(attn_output.dtype)
206
+ attn_output = attn_output * gate
207
+
208
+ attn_output = attn_output.transpose(1, 2).contiguous().view(bsz, seq_len, -1)
209
+ attn_output = self.out_proj(attn_output)
210
+
211
+ return attn_output, attn_weights
212
+
213
+
214
+ class Spark2_5DecoderLayer(nn.Module):
215
+ def __init__(self, config: Spark2_5Config, layer_idx: int):
216
+ super().__init__()
217
+ self.hidden_size = config.hidden_size
218
+
219
+ self.self_attn = Spark2_5Attention(config=config, layer_idx=layer_idx)
220
+ self.mlp = Spark2_5MLP(config)
221
+ self.input_layernorm = Spark2_5RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
222
+ self.post_attention_layernorm = Spark2_5RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
223
+
224
+ self.layer_type = config.layer_types[layer_idx] if layer_idx < len(config.layer_types) else "full_attention"
225
+ if self.layer_type == "sliding_attention" and config.sliding_window is not None:
226
+ self.self_attn.sliding_window = config.sliding_window
227
+ else:
228
+ self.self_attn.sliding_window = None
229
+ self.self_attn.partial_rotary_factor = config.get_partial_rotary_factor(self.layer_type)
230
+
231
+ def forward(
232
+ self,
233
+ hidden_states: torch.Tensor,
234
+ position_embeddings: tuple[torch.Tensor, torch.Tensor],
235
+ attention_mask: torch.Tensor | None = None,
236
+ past_key_values: Cache | None = None,
237
+ cache_position: torch.LongTensor | None = None,
238
+ position_ids: torch.LongTensor | None = None,
239
+ **kwargs: Unpack[TransformersKwargs]
240
+ ) -> torch.Tensor:
241
+
242
+ residual = hidden_states
243
+ hidden_states = self.input_layernorm(hidden_states)
244
+ hidden_states = hidden_states.to(self.mlp.gate_proj.weight.dtype)
245
+
246
+ hidden_states, _ = self.self_attn(
247
+ hidden_states=hidden_states,
248
+ position_embeddings=position_embeddings,
249
+ attention_mask=attention_mask,
250
+ past_key_values=past_key_values,
251
+ cache_position=cache_position,
252
+ position_ids=position_ids,
253
+ )
254
+ hidden_states = residual + hidden_states
255
+
256
+ residual = hidden_states
257
+ hidden_states = self.post_attention_layernorm(hidden_states)
258
+ hidden_states = hidden_states.to(self.mlp.gate_proj.weight.dtype)
259
+
260
+
261
+ hidden_states = self.mlp(hidden_states)
262
+ hidden_states = residual + hidden_states
263
+
264
+ return hidden_states
265
+
266
+
267
+ class Spark2_5PreTrainedModel(PreTrainedModel):
268
+ config_class = Spark2_5Config
269
+ base_model_prefix = "model"
270
+ supports_gradient_checkpointing = True
271
+ _no_split_modules = ["Spark2_5DecoderLayer"] # noqa: RUF012
272
+ _skip_keys_device_placement = ["past_key_values"] # noqa: RUF012
273
+
274
+ def _init_weights(self, module):
275
+ std = self.config.initializer_range
276
+ if isinstance(module, nn.Linear):
277
+ module.weight.data.normal_(mean=0.0, std=std)
278
+ if module.bias is not None:
279
+ module.bias.data.zero_()
280
+ elif isinstance(module, nn.Embedding):
281
+ module.weight.data.normal_(mean=0.0, std=std)
282
+ if module.padding_idx is not None:
283
+ module.weight.data[module.padding_idx].zero_()
284
+
285
+
286
+ class Spark2_5Model(Spark2_5PreTrainedModel):
287
+ def __init__(self, config: Spark2_5Config):
288
+ super().__init__(config)
289
+ self.padding_idx = config.pad_token_id
290
+ self.vocab_size = config.vocab_size
291
+
292
+ self.embedding = nn.Embedding(config.vocab_size, config.hidden_size, self.padding_idx)
293
+ self.layers = nn.ModuleList(
294
+ [Spark2_5DecoderLayer(config, layer_idx) for layer_idx in range(config.num_hidden_layers)]
295
+ )
296
+ self.norm = Spark2_5RMSNorm(config.hidden_size, eps=config.rms_norm_eps)
297
+ self.gradient_checkpointing = False
298
+ self.has_sliding_layers = "sliding_attention" in config.layer_types
299
+
300
+ self.post_init()
301
+
302
+ def get_input_embeddings(self):
303
+ return self.embedding
304
+
305
+ def set_input_embeddings(self, value):
306
+ self.embedding = value
307
+ def forward(
308
+ self,
309
+ input_ids: torch.LongTensor = None,
310
+ attention_mask: torch.Tensor | None = None,
311
+ position_ids: torch.LongTensor | None = None,
312
+ past_key_values: Cache | list[torch.FloatTensor] | None = None,
313
+ inputs_embeds: torch.FloatTensor | None = None,
314
+ use_cache: bool | None = None,
315
+ cache_position: torch.LongTensor | None = None,
316
+ token_type_ids: torch.LongTensor | None = None,
317
+ **kwargs: Unpack[TransformersKwargs],
318
+ ) -> BaseModelOutputWithPast:
319
+ use_cache = use_cache if use_cache is not None else self.config.use_cache
320
+ if (input_ids is None) ^ (inputs_embeds is not None):
321
+ raise ValueError(
322
+ "You cannot specify both input_ids and inputs_embeds at the same time, and must specify either one"
323
+ )
324
+
325
+ if self.gradient_checkpointing and self.training and use_cache:
326
+ logger.warning_once(
327
+ "`use_cache=True` is incompatible with gradient checkpointing. Setting `use_cache=False`."
328
+ )
329
+ use_cache = False
330
+
331
+ if inputs_embeds is None:
332
+ inputs_embeds = self.embedding(input_ids)
333
+
334
+ if use_cache and past_key_values is None:
335
+ past_key_values = DynamicCache(config=self.config)
336
+
337
+ if cache_position is None:
338
+ past_seen_tokens = past_key_values.get_seq_length() if past_key_values is not None else 0
339
+ cache_position = torch.arange(
340
+ past_seen_tokens, past_seen_tokens + inputs_embeds.shape[1], device=inputs_embeds.device
341
+ )
342
+
343
+ if position_ids is None:
344
+ position_ids = cache_position.unsqueeze(0)
345
+
346
+ if not isinstance(attention_mask, dict):
347
+ mask_kwargs = {
348
+ "config": self.config,
349
+ "input_embeds": inputs_embeds,
350
+ "attention_mask": attention_mask,
351
+ "cache_position": cache_position,
352
+ "past_key_values": past_key_values,
353
+ "position_ids": position_ids,
354
+ }
355
+ causal_mask_mapping = {
356
+ "full_attention": create_causal_mask(**mask_kwargs),
357
+ }
358
+ if self.has_sliding_layers:
359
+ causal_mask_mapping["sliding_attention"] = create_sliding_window_causal_mask(**mask_kwargs)
360
+ else:
361
+ causal_mask_mapping = attention_mask
362
+
363
+ hidden_states = inputs_embeds.float()
364
+
365
+ device = hidden_states.device
366
+ dtype = self.embedding.weight.dtype
367
+
368
+ head_dim = self.config.head_dim
369
+ rope_cache = {}
370
+ for lt in set(self.config.layer_types):
371
+ rope_theta = self.config.get_rope_theta(lt)
372
+ prf = self.config.get_partial_rotary_factor(lt)
373
+ cos, sin = compute_rope_cos_sin(cache_position, head_dim, rope_theta, partial_rotary_factor=prf, device=device)
374
+ rope_cache[lt] = (cos, sin)
375
+
376
+ for decoder_layer in self.layers:
377
+ layer_type = decoder_layer.layer_type
378
+ position_embeddings = rope_cache.get(layer_type, rope_cache.get("full_attention"))
379
+ layer_attention_mask = causal_mask_mapping.get(layer_type, causal_mask_mapping.get("full_attention"))
380
+
381
+ if self.gradient_checkpointing and self.training:
382
+ layer_outputs = self._gradient_checkpointing_func(
383
+ decoder_layer.__call__,
384
+ hidden_states,
385
+ position_embeddings,
386
+ layer_attention_mask,
387
+ )
388
+ hidden_states = layer_outputs[0] if isinstance(layer_outputs, tuple) else layer_outputs
389
+ else:
390
+ hidden_states = decoder_layer(
391
+ hidden_states,
392
+ position_embeddings=position_embeddings,
393
+ attention_mask=layer_attention_mask,
394
+ past_key_values=past_key_values,
395
+ cache_position=cache_position,
396
+ position_ids=position_ids,
397
+ )
398
+
399
+ hidden_states = self.norm(hidden_states)
400
+ hidden_states = hidden_states.to(dtype)
401
+
402
+ return BaseModelOutputWithPast(
403
+ last_hidden_state=hidden_states,
404
+ past_key_values=past_key_values if use_cache else None,
405
+ )
406
+
407
+ class Spark2_5ForCausalLM(Spark2_5PreTrainedModel, GenerationMixin):
408
+ _tied_weights_keys = ["lm_head.weight"] # noqa: RUF012
409
+
410
+ def __init__(self, config):
411
+ super().__init__(config)
412
+ self.model = Spark2_5Model(config)
413
+ self.vocab_size = config.vocab_size
414
+ self.lm_head = nn.Linear(config.hidden_size, config.vocab_size, bias=False)
415
+ self.post_init()
416
+
417
+ def get_input_embeddings(self):
418
+ return self.model.embedding
419
+
420
+ def set_input_embeddings(self, value):
421
+ self.model.embedding = value
422
+
423
+ def get_output_embeddings(self):
424
+ return self.lm_head
425
+
426
+ def set_output_embeddings(self, new_embeddings):
427
+ self.lm_head = new_embeddings
428
+
429
+ def set_decoder(self, decoder):
430
+ self.model = decoder
431
+
432
+ def get_decoder(self):
433
+ return self.model
434
+
435
+ @can_return_tuple
436
+ def forward(
437
+ self,
438
+ input_ids: torch.LongTensor = None,
439
+ attention_mask: torch.Tensor | None = None,
440
+ position_ids: torch.LongTensor | None = None,
441
+ past_key_values: Cache | list[torch.FloatTensor] | None = None,
442
+ inputs_embeds: torch.FloatTensor | None = None,
443
+ labels: torch.LongTensor | None = None,
444
+ use_cache: bool | None = None,
445
+ cache_position: torch.LongTensor | None = None,
446
+ logits_to_keep: int = 0,
447
+ token_type_ids: torch.LongTensor | None = None,
448
+ **kwargs: Unpack[TransformersKwargs],
449
+ ) -> CausalLMOutputWithPast:
450
+ outputs: BaseModelOutputWithPast = self.model(
451
+ input_ids=input_ids,
452
+ attention_mask=attention_mask,
453
+ position_ids=position_ids,
454
+ past_key_values=past_key_values,
455
+ inputs_embeds=inputs_embeds,
456
+ use_cache=use_cache,
457
+ cache_position=cache_position,
458
+ )
459
+
460
+ hidden_states = outputs.last_hidden_state
461
+ slice_indices = slice(-logits_to_keep, None) if isinstance(logits_to_keep, int) else logits_to_keep
462
+ hidden_states = hidden_states[:, slice_indices, :]
463
+
464
+ if self.config.tie_word_embeddings:
465
+ embed_weight = self.model.embedding.weight
466
+ logits = F.linear(hidden_states, embed_weight.to(hidden_states.device))
467
+ else:
468
+ logits = self.lm_head(hidden_states)
469
+
470
+ loss = None
471
+ if labels is not None:
472
+ loss = self.loss_function(logits=logits, labels=labels, vocab_size=self.config.vocab_size, **kwargs)
473
+
474
+ return CausalLMOutputWithPast(
475
+ loss=loss,
476
+ logits=logits,
477
+ past_key_values=outputs.past_key_values,
478
+ hidden_states=outputs.hidden_states,
479
+ attentions=outputs.attentions,
480
+ )
481
+
482
+
483
+ __all__ = ["Spark2_5Config", "Spark2_5ForCausalLM", "Spark2_5Model"]
special_tokens_map.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|start▁of▁sentence|>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|end▁of▁sentence|>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "<|▁pad▁|>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "unk_token": {
24
+ "content": "<unk>",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ }
30
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,920 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_eos_token": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<|start▁of▁sentence|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<|end▁of▁sentence|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "<|▁pad▁|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "3": {
30
+ "content": "<think>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": false
36
+ },
37
+ "4": {
38
+ "content": "</think>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": false
44
+ },
45
+ "5": {
46
+ "content": "<unk>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "6": {
54
+ "content": "<|start▁of▁text|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "7": {
62
+ "content": "<|end▁of▁text|>",
63
+ "lstrip": false,
64
+ "normalized": false,
65
+ "rstrip": false,
66
+ "single_word": false,
67
+ "special": true
68
+ },
69
+ "8": {
70
+ "content": "<User>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false,
75
+ "special": false
76
+ },
77
+ "9": {
78
+ "content": "<System>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": false
84
+ },
85
+ "10": {
86
+ "content": "<Bot>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": false
92
+ },
93
+ "11": {
94
+ "content": "<|fim▁begin|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": false
100
+ },
101
+ "12": {
102
+ "content": "<|fim▁hole|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": false
108
+ },
109
+ "13": {
110
+ "content": "<|fim▁end|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": false
116
+ },
117
+ "130972": {
118
+ "content": "<|System|>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": false
124
+ },
125
+ "130973": {
126
+ "content": "<|User|>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": false
132
+ },
133
+ "130974": {
134
+ "content": "<|Tool|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": false
140
+ },
141
+ "130975": {
142
+ "content": "<|Developer|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": false
148
+ },
149
+ "130976": {
150
+ "content": "<|Bot|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": false
156
+ },
157
+ "130977": {
158
+ "content": "<tool_call>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": false
164
+ },
165
+ "130978": {
166
+ "content": "<tool_response>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": false
172
+ },
173
+ "130979": {
174
+ "content": "</tool_response>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": false
180
+ },
181
+ "130980": {
182
+ "content": "<arg_key>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": false
188
+ },
189
+ "130981": {
190
+ "content": "</arg_key>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": false
196
+ },
197
+ "130982": {
198
+ "content": "<arg_value>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": false
204
+ },
205
+ "130983": {
206
+ "content": "</arg_value>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": false
212
+ },
213
+ "130984": {
214
+ "content": "</tool_call>",
215
+ "lstrip": false,
216
+ "normalized": false,
217
+ "rstrip": false,
218
+ "single_word": false,
219
+ "special": false
220
+ },
221
+ "130986": {
222
+ "content": "<||unused2||>",
223
+ "lstrip": false,
224
+ "normalized": false,
225
+ "rstrip": false,
226
+ "single_word": false,
227
+ "special": true
228
+ },
229
+ "130987": {
230
+ "content": "<||unused3||>",
231
+ "lstrip": false,
232
+ "normalized": false,
233
+ "rstrip": false,
234
+ "single_word": false,
235
+ "special": true
236
+ },
237
+ "130988": {
238
+ "content": "<||unused4||>",
239
+ "lstrip": false,
240
+ "normalized": false,
241
+ "rstrip": false,
242
+ "single_word": false,
243
+ "special": true
244
+ },
245
+ "130989": {
246
+ "content": "<||unused5||>",
247
+ "lstrip": false,
248
+ "normalized": false,
249
+ "rstrip": false,
250
+ "single_word": false,
251
+ "special": true
252
+ },
253
+ "130990": {
254
+ "content": "<||unused6||>",
255
+ "lstrip": false,
256
+ "normalized": false,
257
+ "rstrip": false,
258
+ "single_word": false,
259
+ "special": true
260
+ },
261
+ "130991": {
262
+ "content": "<||unused7||>",
263
+ "lstrip": false,
264
+ "normalized": false,
265
+ "rstrip": false,
266
+ "single_word": false,
267
+ "special": true
268
+ },
269
+ "130992": {
270
+ "content": "<||unused8||>",
271
+ "lstrip": false,
272
+ "normalized": false,
273
+ "rstrip": false,
274
+ "single_word": false,
275
+ "special": true
276
+ },
277
+ "130993": {
278
+ "content": "<||unused9||>",
279
+ "lstrip": false,
280
+ "normalized": false,
281
+ "rstrip": false,
282
+ "single_word": false,
283
+ "special": true
284
+ },
285
+ "130994": {
286
+ "content": "<||unused10||>",
287
+ "lstrip": false,
288
+ "normalized": false,
289
+ "rstrip": false,
290
+ "single_word": false,
291
+ "special": true
292
+ },
293
+ "130995": {
294
+ "content": "<||unused11||>",
295
+ "lstrip": false,
296
+ "normalized": false,
297
+ "rstrip": false,
298
+ "single_word": false,
299
+ "special": true
300
+ },
301
+ "130996": {
302
+ "content": "<||unused12||>",
303
+ "lstrip": false,
304
+ "normalized": false,
305
+ "rstrip": false,
306
+ "single_word": false,
307
+ "special": true
308
+ },
309
+ "130997": {
310
+ "content": "<||unused13||>",
311
+ "lstrip": false,
312
+ "normalized": false,
313
+ "rstrip": false,
314
+ "single_word": false,
315
+ "special": true
316
+ },
317
+ "130998": {
318
+ "content": "<||unused14||>",
319
+ "lstrip": false,
320
+ "normalized": false,
321
+ "rstrip": false,
322
+ "single_word": false,
323
+ "special": true
324
+ },
325
+ "130999": {
326
+ "content": "<||unused15||>",
327
+ "lstrip": false,
328
+ "normalized": false,
329
+ "rstrip": false,
330
+ "single_word": false,
331
+ "special": true
332
+ },
333
+ "131000": {
334
+ "content": "<||unused16||>",
335
+ "lstrip": false,
336
+ "normalized": false,
337
+ "rstrip": false,
338
+ "single_word": false,
339
+ "special": true
340
+ },
341
+ "131001": {
342
+ "content": "<||unused17||>",
343
+ "lstrip": false,
344
+ "normalized": false,
345
+ "rstrip": false,
346
+ "single_word": false,
347
+ "special": true
348
+ },
349
+ "131002": {
350
+ "content": "<||unused18||>",
351
+ "lstrip": false,
352
+ "normalized": false,
353
+ "rstrip": false,
354
+ "single_word": false,
355
+ "special": true
356
+ },
357
+ "131003": {
358
+ "content": "<||unused19||>",
359
+ "lstrip": false,
360
+ "normalized": false,
361
+ "rstrip": false,
362
+ "single_word": false,
363
+ "special": true
364
+ },
365
+ "131004": {
366
+ "content": "<||unused20||>",
367
+ "lstrip": false,
368
+ "normalized": false,
369
+ "rstrip": false,
370
+ "single_word": false,
371
+ "special": true
372
+ },
373
+ "131005": {
374
+ "content": "<||unused21||>",
375
+ "lstrip": false,
376
+ "normalized": false,
377
+ "rstrip": false,
378
+ "single_word": false,
379
+ "special": true
380
+ },
381
+ "131006": {
382
+ "content": "<||unused22||>",
383
+ "lstrip": false,
384
+ "normalized": false,
385
+ "rstrip": false,
386
+ "single_word": false,
387
+ "special": true
388
+ },
389
+ "131007": {
390
+ "content": "<||unused23||>",
391
+ "lstrip": false,
392
+ "normalized": false,
393
+ "rstrip": false,
394
+ "single_word": false,
395
+ "special": true
396
+ },
397
+ "131008": {
398
+ "content": "<||unused24||>",
399
+ "lstrip": false,
400
+ "normalized": false,
401
+ "rstrip": false,
402
+ "single_word": false,
403
+ "special": true
404
+ },
405
+ "131009": {
406
+ "content": "<||unused25||>",
407
+ "lstrip": false,
408
+ "normalized": false,
409
+ "rstrip": false,
410
+ "single_word": false,
411
+ "special": true
412
+ },
413
+ "131010": {
414
+ "content": "<||unused26||>",
415
+ "lstrip": false,
416
+ "normalized": false,
417
+ "rstrip": false,
418
+ "single_word": false,
419
+ "special": true
420
+ },
421
+ "131011": {
422
+ "content": "<||unused27||>",
423
+ "lstrip": false,
424
+ "normalized": false,
425
+ "rstrip": false,
426
+ "single_word": false,
427
+ "special": true
428
+ },
429
+ "131012": {
430
+ "content": "<||unused28||>",
431
+ "lstrip": false,
432
+ "normalized": false,
433
+ "rstrip": false,
434
+ "single_word": false,
435
+ "special": true
436
+ },
437
+ "131013": {
438
+ "content": "<||unused29||>",
439
+ "lstrip": false,
440
+ "normalized": false,
441
+ "rstrip": false,
442
+ "single_word": false,
443
+ "special": true
444
+ },
445
+ "131014": {
446
+ "content": "<||unused30||>",
447
+ "lstrip": false,
448
+ "normalized": false,
449
+ "rstrip": false,
450
+ "single_word": false,
451
+ "special": true
452
+ },
453
+ "131015": {
454
+ "content": "<||unused31||>",
455
+ "lstrip": false,
456
+ "normalized": false,
457
+ "rstrip": false,
458
+ "single_word": false,
459
+ "special": true
460
+ },
461
+ "131016": {
462
+ "content": "<||unused32||>",
463
+ "lstrip": false,
464
+ "normalized": false,
465
+ "rstrip": false,
466
+ "single_word": false,
467
+ "special": true
468
+ },
469
+ "131017": {
470
+ "content": "<||unused33||>",
471
+ "lstrip": false,
472
+ "normalized": false,
473
+ "rstrip": false,
474
+ "single_word": false,
475
+ "special": true
476
+ },
477
+ "131018": {
478
+ "content": "<||unused34||>",
479
+ "lstrip": false,
480
+ "normalized": false,
481
+ "rstrip": false,
482
+ "single_word": false,
483
+ "special": true
484
+ },
485
+ "131019": {
486
+ "content": "<||unused35||>",
487
+ "lstrip": false,
488
+ "normalized": false,
489
+ "rstrip": false,
490
+ "single_word": false,
491
+ "special": true
492
+ },
493
+ "131020": {
494
+ "content": "<||unused36||>",
495
+ "lstrip": false,
496
+ "normalized": false,
497
+ "rstrip": false,
498
+ "single_word": false,
499
+ "special": true
500
+ },
501
+ "131021": {
502
+ "content": "<||unused37||>",
503
+ "lstrip": false,
504
+ "normalized": false,
505
+ "rstrip": false,
506
+ "single_word": false,
507
+ "special": true
508
+ },
509
+ "131022": {
510
+ "content": "<||unused38||>",
511
+ "lstrip": false,
512
+ "normalized": false,
513
+ "rstrip": false,
514
+ "single_word": false,
515
+ "special": true
516
+ },
517
+ "131023": {
518
+ "content": "<||unused39||>",
519
+ "lstrip": false,
520
+ "normalized": false,
521
+ "rstrip": false,
522
+ "single_word": false,
523
+ "special": true
524
+ },
525
+ "131024": {
526
+ "content": "<||unused40||>",
527
+ "lstrip": false,
528
+ "normalized": false,
529
+ "rstrip": false,
530
+ "single_word": false,
531
+ "special": true
532
+ },
533
+ "131025": {
534
+ "content": "<||unused41||>",
535
+ "lstrip": false,
536
+ "normalized": false,
537
+ "rstrip": false,
538
+ "single_word": false,
539
+ "special": true
540
+ },
541
+ "131026": {
542
+ "content": "<||unused42||>",
543
+ "lstrip": false,
544
+ "normalized": false,
545
+ "rstrip": false,
546
+ "single_word": false,
547
+ "special": true
548
+ },
549
+ "131027": {
550
+ "content": "<||unused43||>",
551
+ "lstrip": false,
552
+ "normalized": false,
553
+ "rstrip": false,
554
+ "single_word": false,
555
+ "special": true
556
+ },
557
+ "131028": {
558
+ "content": "<||unused44||>",
559
+ "lstrip": false,
560
+ "normalized": false,
561
+ "rstrip": false,
562
+ "single_word": false,
563
+ "special": true
564
+ },
565
+ "131029": {
566
+ "content": "<||unused45||>",
567
+ "lstrip": false,
568
+ "normalized": false,
569
+ "rstrip": false,
570
+ "single_word": false,
571
+ "special": true
572
+ },
573
+ "131030": {
574
+ "content": "<||unused46||>",
575
+ "lstrip": false,
576
+ "normalized": false,
577
+ "rstrip": false,
578
+ "single_word": false,
579
+ "special": true
580
+ },
581
+ "131031": {
582
+ "content": "<||unused47||>",
583
+ "lstrip": false,
584
+ "normalized": false,
585
+ "rstrip": false,
586
+ "single_word": false,
587
+ "special": true
588
+ },
589
+ "131032": {
590
+ "content": "<||unused48||>",
591
+ "lstrip": false,
592
+ "normalized": false,
593
+ "rstrip": false,
594
+ "single_word": false,
595
+ "special": true
596
+ },
597
+ "131033": {
598
+ "content": "<||unused49||>",
599
+ "lstrip": false,
600
+ "normalized": false,
601
+ "rstrip": false,
602
+ "single_word": false,
603
+ "special": true
604
+ },
605
+ "131034": {
606
+ "content": "<||unused50||>",
607
+ "lstrip": false,
608
+ "normalized": false,
609
+ "rstrip": false,
610
+ "single_word": false,
611
+ "special": true
612
+ },
613
+ "131035": {
614
+ "content": "<||unused51||>",
615
+ "lstrip": false,
616
+ "normalized": false,
617
+ "rstrip": false,
618
+ "single_word": false,
619
+ "special": true
620
+ },
621
+ "131036": {
622
+ "content": "<||unused52||>",
623
+ "lstrip": false,
624
+ "normalized": false,
625
+ "rstrip": false,
626
+ "single_word": false,
627
+ "special": true
628
+ },
629
+ "131037": {
630
+ "content": "<||unused53||>",
631
+ "lstrip": false,
632
+ "normalized": false,
633
+ "rstrip": false,
634
+ "single_word": false,
635
+ "special": true
636
+ },
637
+ "131038": {
638
+ "content": "<||unused54||>",
639
+ "lstrip": false,
640
+ "normalized": false,
641
+ "rstrip": false,
642
+ "single_word": false,
643
+ "special": true
644
+ },
645
+ "131039": {
646
+ "content": "<||unused55||>",
647
+ "lstrip": false,
648
+ "normalized": false,
649
+ "rstrip": false,
650
+ "single_word": false,
651
+ "special": true
652
+ },
653
+ "131040": {
654
+ "content": "<||unused56||>",
655
+ "lstrip": false,
656
+ "normalized": false,
657
+ "rstrip": false,
658
+ "single_word": false,
659
+ "special": true
660
+ },
661
+ "131041": {
662
+ "content": "<||unused57||>",
663
+ "lstrip": false,
664
+ "normalized": false,
665
+ "rstrip": false,
666
+ "single_word": false,
667
+ "special": true
668
+ },
669
+ "131042": {
670
+ "content": "<||unused58||>",
671
+ "lstrip": false,
672
+ "normalized": false,
673
+ "rstrip": false,
674
+ "single_word": false,
675
+ "special": true
676
+ },
677
+ "131043": {
678
+ "content": "<||unused59||>",
679
+ "lstrip": false,
680
+ "normalized": false,
681
+ "rstrip": false,
682
+ "single_word": false,
683
+ "special": true
684
+ },
685
+ "131044": {
686
+ "content": "<||unused60||>",
687
+ "lstrip": false,
688
+ "normalized": false,
689
+ "rstrip": false,
690
+ "single_word": false,
691
+ "special": true
692
+ },
693
+ "131045": {
694
+ "content": "<||unused61||>",
695
+ "lstrip": false,
696
+ "normalized": false,
697
+ "rstrip": false,
698
+ "single_word": false,
699
+ "special": true
700
+ },
701
+ "131046": {
702
+ "content": "<||unused62||>",
703
+ "lstrip": false,
704
+ "normalized": false,
705
+ "rstrip": false,
706
+ "single_word": false,
707
+ "special": true
708
+ },
709
+ "131047": {
710
+ "content": "<||unused63||>",
711
+ "lstrip": false,
712
+ "normalized": false,
713
+ "rstrip": false,
714
+ "single_word": false,
715
+ "special": true
716
+ },
717
+ "131048": {
718
+ "content": "<||unused64||>",
719
+ "lstrip": false,
720
+ "normalized": false,
721
+ "rstrip": false,
722
+ "single_word": false,
723
+ "special": true
724
+ },
725
+ "131049": {
726
+ "content": "<||unused65||>",
727
+ "lstrip": false,
728
+ "normalized": false,
729
+ "rstrip": false,
730
+ "single_word": false,
731
+ "special": true
732
+ },
733
+ "131050": {
734
+ "content": "<||unused66||>",
735
+ "lstrip": false,
736
+ "normalized": false,
737
+ "rstrip": false,
738
+ "single_word": false,
739
+ "special": true
740
+ },
741
+ "131051": {
742
+ "content": "<||unused67||>",
743
+ "lstrip": false,
744
+ "normalized": false,
745
+ "rstrip": false,
746
+ "single_word": false,
747
+ "special": true
748
+ },
749
+ "131052": {
750
+ "content": "<||unused68||>",
751
+ "lstrip": false,
752
+ "normalized": false,
753
+ "rstrip": false,
754
+ "single_word": false,
755
+ "special": true
756
+ },
757
+ "131053": {
758
+ "content": "<||unused69||>",
759
+ "lstrip": false,
760
+ "normalized": false,
761
+ "rstrip": false,
762
+ "single_word": false,
763
+ "special": true
764
+ },
765
+ "131054": {
766
+ "content": "<||unused70||>",
767
+ "lstrip": false,
768
+ "normalized": false,
769
+ "rstrip": false,
770
+ "single_word": false,
771
+ "special": true
772
+ },
773
+ "131055": {
774
+ "content": "<||unused71||>",
775
+ "lstrip": false,
776
+ "normalized": false,
777
+ "rstrip": false,
778
+ "single_word": false,
779
+ "special": true
780
+ },
781
+ "131056": {
782
+ "content": "<||unused72||>",
783
+ "lstrip": false,
784
+ "normalized": false,
785
+ "rstrip": false,
786
+ "single_word": false,
787
+ "special": true
788
+ },
789
+ "131057": {
790
+ "content": "<||unused73||>",
791
+ "lstrip": false,
792
+ "normalized": false,
793
+ "rstrip": false,
794
+ "single_word": false,
795
+ "special": true
796
+ },
797
+ "131058": {
798
+ "content": "<||unused74||>",
799
+ "lstrip": false,
800
+ "normalized": false,
801
+ "rstrip": false,
802
+ "single_word": false,
803
+ "special": true
804
+ },
805
+ "131059": {
806
+ "content": "<||unused75||>",
807
+ "lstrip": false,
808
+ "normalized": false,
809
+ "rstrip": false,
810
+ "single_word": false,
811
+ "special": true
812
+ },
813
+ "131060": {
814
+ "content": "<||unused76||>",
815
+ "lstrip": false,
816
+ "normalized": false,
817
+ "rstrip": false,
818
+ "single_word": false,
819
+ "special": true
820
+ },
821
+ "131061": {
822
+ "content": "<||unused77||>",
823
+ "lstrip": false,
824
+ "normalized": false,
825
+ "rstrip": false,
826
+ "single_word": false,
827
+ "special": true
828
+ },
829
+ "131062": {
830
+ "content": "<||unused78||>",
831
+ "lstrip": false,
832
+ "normalized": false,
833
+ "rstrip": false,
834
+ "single_word": false,
835
+ "special": true
836
+ },
837
+ "131063": {
838
+ "content": "<||unused79||>",
839
+ "lstrip": false,
840
+ "normalized": false,
841
+ "rstrip": false,
842
+ "single_word": false,
843
+ "special": true
844
+ },
845
+ "131064": {
846
+ "content": "<||unused80||>",
847
+ "lstrip": false,
848
+ "normalized": false,
849
+ "rstrip": false,
850
+ "single_word": false,
851
+ "special": true
852
+ },
853
+ "131065": {
854
+ "content": "<||unused81||>",
855
+ "lstrip": false,
856
+ "normalized": false,
857
+ "rstrip": false,
858
+ "single_word": false,
859
+ "special": true
860
+ },
861
+ "131066": {
862
+ "content": "<||unused82||>",
863
+ "lstrip": false,
864
+ "normalized": false,
865
+ "rstrip": false,
866
+ "single_word": false,
867
+ "special": true
868
+ },
869
+ "131067": {
870
+ "content": "<||unused83||>",
871
+ "lstrip": false,
872
+ "normalized": false,
873
+ "rstrip": false,
874
+ "single_word": false,
875
+ "special": true
876
+ },
877
+ "131068": {
878
+ "content": "<||unused84||>",
879
+ "lstrip": false,
880
+ "normalized": false,
881
+ "rstrip": false,
882
+ "single_word": false,
883
+ "special": true
884
+ },
885
+ "131069": {
886
+ "content": "<||unused85||>",
887
+ "lstrip": false,
888
+ "normalized": false,
889
+ "rstrip": false,
890
+ "single_word": false,
891
+ "special": true
892
+ },
893
+ "131070": {
894
+ "content": "<||unused86||>",
895
+ "lstrip": false,
896
+ "normalized": false,
897
+ "rstrip": false,
898
+ "single_word": false,
899
+ "special": true
900
+ },
901
+ "131071": {
902
+ "content": "<||unused87||>",
903
+ "lstrip": false,
904
+ "normalized": false,
905
+ "rstrip": false,
906
+ "single_word": false,
907
+ "special": true
908
+ }
909
+ },
910
+ "bos_token": "<|start▁of▁sentence|>",
911
+ "clean_up_tokenization_spaces": false,
912
+ "eos_token": "<|end▁of▁sentence|>",
913
+ "extra_special_tokens": {},
914
+ "legacy": true,
915
+ "model_max_length": 131072,
916
+ "pad_token": "<|▁pad▁|>",
917
+ "sp_model_kwargs": {},
918
+ "tokenizer_class": "PreTrainedTokenizerFast",
919
+ "unk_token": "<unk>"
920
+ }