y-ryan commited on
Commit
ca6aedf
·
verified ·
1 Parent(s): 1fc6cf8

Upload folder using huggingface_hub

Browse files
README.md ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: skt/A.X-4.0
3
+ quantized_by: tmfi-us
4
+ license: other
5
+ license_name: qwen
6
+ license_link: https://huggingface.co/skt/A.X-4.0/blob/main/LICENSE
7
+ language:
8
+ - en
9
+ - ko
10
+ pipeline_tag: text-generation
11
+ ---
12
+
13
+ ## About
14
+
15
+ FP8 w8a8 dynamic quants of [skt/A.X-4.0](https://huggingface.co/skt/A.X-4.0).
16
+
17
+ Used following Python script with [llmcompressor](https://github.com/vllm-project/llm-compressor) to generate:
18
+
19
+ ```python
20
+ from transformers import AutoTokenizer, AutoModelForCausalLM
21
+ from llmcompressor.transformers import oneshot
22
+ from llmcompressor.modifiers.quantization import QuantizationModifier
23
+
24
+ MODEL_ID = 'skt/A.X-4.0'
25
+
26
+ model = AutoModelForCausalLM.from_pretrained(
27
+ MODEL_ID, device_map="auto", torch_dtype="auto",
28
+ )
29
+ tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
30
+
31
+ # Configure the simple PTQ quantization
32
+ recipe = QuantizationModifier(
33
+ targets="Linear", scheme="FP8_DYNAMIC", ignore=["lm_head"])
34
+
35
+ # Apply the quantization algorithm.
36
+ oneshot(model=model, recipe=recipe)
37
+
38
+ # Save the model.
39
+ SAVE_DIR = MODEL_ID.split("/")[1] + "-FP8-Dynamic"
40
+ model.save_pretrained(SAVE_DIR)
41
+ tokenizer.save_pretrained(SAVE_DIR)
42
+ ```
43
+
44
+ Quantization recipe can be found in [`recipe.yaml`](recipe.yaml)
config.json ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen2ForCausalLM"
4
+ ],
5
+ "attention_dropout": 0.0,
6
+ "bos_token_id": 0,
7
+ "eos_token_id": 0,
8
+ "hidden_act": "silu",
9
+ "hidden_size": 8192,
10
+ "initializer_range": 0.02,
11
+ "intermediate_size": 29568,
12
+ "max_position_embeddings": 131072,
13
+ "max_window_layers": 28,
14
+ "model_type": "qwen2",
15
+ "num_attention_heads": 64,
16
+ "num_hidden_layers": 80,
17
+ "num_key_value_heads": 8,
18
+ "quantization_config": {
19
+ "config_groups": {
20
+ "group_0": {
21
+ "input_activations": {
22
+ "actorder": null,
23
+ "block_structure": null,
24
+ "dynamic": true,
25
+ "group_size": null,
26
+ "num_bits": 8,
27
+ "observer": null,
28
+ "observer_kwargs": {},
29
+ "strategy": "token",
30
+ "symmetric": true,
31
+ "type": "float"
32
+ },
33
+ "output_activations": null,
34
+ "targets": [
35
+ "Linear"
36
+ ],
37
+ "weights": {
38
+ "actorder": null,
39
+ "block_structure": null,
40
+ "dynamic": false,
41
+ "group_size": null,
42
+ "num_bits": 8,
43
+ "observer": "minmax",
44
+ "observer_kwargs": {},
45
+ "strategy": "channel",
46
+ "symmetric": true,
47
+ "type": "float"
48
+ }
49
+ }
50
+ },
51
+ "format": "float-quantized",
52
+ "global_compression_ratio": null,
53
+ "ignore": [
54
+ "lm_head"
55
+ ],
56
+ "kv_cache_scheme": null,
57
+ "quant_method": "compressed-tensors",
58
+ "quantization_status": "compressed"
59
+ },
60
+ "rms_norm_eps": 1e-05,
61
+ "rope_scaling": {
62
+ "factor": 2.0,
63
+ "original_max_position_embeddings": 131072,
64
+ "rope_type": "yarn",
65
+ "type": "yarn"
66
+ },
67
+ "rope_theta": 5000000,
68
+ "sliding_window": null,
69
+ "tie_word_embeddings": false,
70
+ "torch_dtype": "bfloat16",
71
+ "transformers_version": "4.50.3",
72
+ "use_cache": false,
73
+ "use_sliding_window": false,
74
+ "vocab_size": 102400
75
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 0,
3
+ "do_sample": true,
4
+ "eos_token_id": 27,
5
+ "pad_token_id": 1,
6
+ "temperature": 0.6,
7
+ "top_p": 0.95,
8
+ "transformers_version": "4.50.3"
9
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model-00001-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ff5f4a40e60e24b80019f3a0a613e55f133fba3dc97bf970cf008fa2b64107e
3
+ size 4946991480
model-00002-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:160b092a1fe60a9efa374dbe21a289bb9cea1e35c930a582ff0aeb10a3b2debe
3
+ size 4782749264
model-00003-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3db661d3323052592d4cc9d3daa029ed2579747b5a4a7c59b45fe74fa58e5b02
3
+ size 4873986008
model-00004-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1bc89828bc796c08941d26992557db57b3f9d0077ccabda73c38fda60eff4981
3
+ size 4782749368
model-00005-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8dbeac4c1a546cd4c11b5d7e4c1b814456989940d9457db74fe036a9e32ecf22
3
+ size 4873986032
model-00006-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30868576ff59f107e94176d37df7ee1281e36aece37d1620231947ce75bdb466
3
+ size 4782749368
model-00007-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89b5de72a28944c056c6d70e7f65c11ec05b3c96715146f70a9b5846b271cd1e
3
+ size 4873986032
model-00008-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb7bcd2dd2cce648eb22bcef6c5fb69b2509bbc078747d16aed34e6791b07ecf
3
+ size 4782749368
model-00009-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:145b0885ac498c8d8f308055a38768e078487555da39360aa671d12cf9698bc9
3
+ size 4873986032
model-00010-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f9f8b1b8aca84f268982f2bc00fad5b5907ce5c8c1df79f55d6d6aba2c0cbf0d
3
+ size 4782749368
model-00011-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c99983766f56d2c1e1559549308c953d832edc9543fd1659f7ba6976e9b165d
3
+ size 4873986032
model-00012-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:62433ea9c1dae60a130ae51ffea4912e8d9b1b5476809f0b13a13e057cacd3ba
3
+ size 4782749368
model-00013-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8a90e6e27460359b7662bff013f8654e4f6294c41ef785c6574e016a2234be9f
3
+ size 4873986032
model-00014-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24c2ef4f85dd0a9abf8db63058ea0cfa3f291fcca8d77470a3dac1bdeff6e480
3
+ size 4782749368
model-00015-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d6da2c3d3d1cc5923d33a1c44d016d86dbd9e4bf65e691793b4091416466cc7
3
+ size 4238388104
model-00016-of-00016.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e905e870c873a9672de4e03f4843de19575f00308f003994e5860b1cb8b88771
3
+ size 1677721728
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
recipe.yaml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ default_stage:
2
+ default_modifiers:
3
+ QuantizationModifier:
4
+ targets: [Linear]
5
+ ignore: [lm_head]
6
+ scheme: FP8_DYNAMIC
special_tokens_map.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|endoftext|>",
4
+ "<|pad|>",
5
+ "<|unk|>",
6
+ "<|sep|>",
7
+ "<|mask|>",
8
+ "<|cls|>",
9
+ "<|image|>",
10
+ "<|audio|>",
11
+ "<|user|>",
12
+ "<|system|>",
13
+ "<|assistant|>",
14
+ "<|extra_id_0|>",
15
+ "<|extra_id_1|>",
16
+ "<|extra_id_2|>",
17
+ "<|extra_id_3|>",
18
+ "<|extra_id_4|>",
19
+ "<|extra_id_5|>",
20
+ "<|extra_id_6|>",
21
+ "<|extra_id_7|>",
22
+ "<|extra_id_8|>",
23
+ "<|extra_id_9|>",
24
+ "<|extra_id_10|>",
25
+ "<|extra_id_11|>",
26
+ "<|extra_id_12|>",
27
+ "<|extra_id_13|>",
28
+ "<|im_start|>",
29
+ "<|im_sep|>",
30
+ "<|im_end|>",
31
+ "<|resident_reg|>",
32
+ "<|foreigner_reg|>",
33
+ "<|business_reg|>",
34
+ "<|credit_card|>",
35
+ "<|passport|>",
36
+ "<|driver_license|>",
37
+ "<|telephone|>",
38
+ "<|health_insurance|>",
39
+ "<|bank_account|>"
40
+ ],
41
+ "bos_token": {
42
+ "content": "<|endoftext|>",
43
+ "lstrip": false,
44
+ "normalized": false,
45
+ "rstrip": false,
46
+ "single_word": false
47
+ },
48
+ "cls_token": {
49
+ "content": "<|cls|>",
50
+ "lstrip": false,
51
+ "normalized": false,
52
+ "rstrip": false,
53
+ "single_word": false
54
+ },
55
+ "eos_token": {
56
+ "content": "<|im_end|>",
57
+ "lstrip": false,
58
+ "normalized": false,
59
+ "rstrip": false,
60
+ "single_word": false
61
+ },
62
+ "mask_token": {
63
+ "content": "<|mask|>",
64
+ "lstrip": false,
65
+ "normalized": false,
66
+ "rstrip": false,
67
+ "single_word": false
68
+ },
69
+ "pad_token": {
70
+ "content": "<|pad|>",
71
+ "lstrip": false,
72
+ "normalized": false,
73
+ "rstrip": false,
74
+ "single_word": false
75
+ },
76
+ "sep_token": {
77
+ "content": "<|sep|>",
78
+ "lstrip": false,
79
+ "normalized": false,
80
+ "rstrip": false,
81
+ "single_word": false
82
+ },
83
+ "unk_token": {
84
+ "content": "<|unk|>",
85
+ "lstrip": false,
86
+ "normalized": false,
87
+ "rstrip": false,
88
+ "single_word": false
89
+ }
90
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,391 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<|pad|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "<|unk|>",
23
+ "lstrip": false,
24
+ "normalized": false,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "3": {
30
+ "content": "<|sep|>",
31
+ "lstrip": false,
32
+ "normalized": false,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "4": {
38
+ "content": "<|mask|>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ },
45
+ "5": {
46
+ "content": "<|cls|>",
47
+ "lstrip": false,
48
+ "normalized": false,
49
+ "rstrip": false,
50
+ "single_word": false,
51
+ "special": true
52
+ },
53
+ "6": {
54
+ "content": "<|image|>",
55
+ "lstrip": false,
56
+ "normalized": false,
57
+ "rstrip": false,
58
+ "single_word": false,
59
+ "special": true
60
+ },
61
+ "7": {
62
+ "content": "<|audio|>",
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": true
76
+ },
77
+ "9": {
78
+ "content": "<|system|>",
79
+ "lstrip": false,
80
+ "normalized": false,
81
+ "rstrip": false,
82
+ "single_word": false,
83
+ "special": true
84
+ },
85
+ "10": {
86
+ "content": "<|assistant|>",
87
+ "lstrip": false,
88
+ "normalized": false,
89
+ "rstrip": false,
90
+ "single_word": false,
91
+ "special": true
92
+ },
93
+ "11": {
94
+ "content": "<|extra_id_0|>",
95
+ "lstrip": false,
96
+ "normalized": false,
97
+ "rstrip": false,
98
+ "single_word": false,
99
+ "special": true
100
+ },
101
+ "12": {
102
+ "content": "<|extra_id_1|>",
103
+ "lstrip": false,
104
+ "normalized": false,
105
+ "rstrip": false,
106
+ "single_word": false,
107
+ "special": true
108
+ },
109
+ "13": {
110
+ "content": "<|extra_id_2|>",
111
+ "lstrip": false,
112
+ "normalized": false,
113
+ "rstrip": false,
114
+ "single_word": false,
115
+ "special": true
116
+ },
117
+ "14": {
118
+ "content": "<|extra_id_3|>",
119
+ "lstrip": false,
120
+ "normalized": false,
121
+ "rstrip": false,
122
+ "single_word": false,
123
+ "special": true
124
+ },
125
+ "15": {
126
+ "content": "<|extra_id_4|>",
127
+ "lstrip": false,
128
+ "normalized": false,
129
+ "rstrip": false,
130
+ "single_word": false,
131
+ "special": true
132
+ },
133
+ "16": {
134
+ "content": "<|extra_id_5|>",
135
+ "lstrip": false,
136
+ "normalized": false,
137
+ "rstrip": false,
138
+ "single_word": false,
139
+ "special": true
140
+ },
141
+ "17": {
142
+ "content": "<|extra_id_6|>",
143
+ "lstrip": false,
144
+ "normalized": false,
145
+ "rstrip": false,
146
+ "single_word": false,
147
+ "special": true
148
+ },
149
+ "18": {
150
+ "content": "<|extra_id_7|>",
151
+ "lstrip": false,
152
+ "normalized": false,
153
+ "rstrip": false,
154
+ "single_word": false,
155
+ "special": true
156
+ },
157
+ "19": {
158
+ "content": "<|extra_id_8|>",
159
+ "lstrip": false,
160
+ "normalized": false,
161
+ "rstrip": false,
162
+ "single_word": false,
163
+ "special": true
164
+ },
165
+ "20": {
166
+ "content": "<|extra_id_9|>",
167
+ "lstrip": false,
168
+ "normalized": false,
169
+ "rstrip": false,
170
+ "single_word": false,
171
+ "special": true
172
+ },
173
+ "21": {
174
+ "content": "<|extra_id_10|>",
175
+ "lstrip": false,
176
+ "normalized": false,
177
+ "rstrip": false,
178
+ "single_word": false,
179
+ "special": true
180
+ },
181
+ "22": {
182
+ "content": "<|extra_id_11|>",
183
+ "lstrip": false,
184
+ "normalized": false,
185
+ "rstrip": false,
186
+ "single_word": false,
187
+ "special": true
188
+ },
189
+ "23": {
190
+ "content": "<|extra_id_12|>",
191
+ "lstrip": false,
192
+ "normalized": false,
193
+ "rstrip": false,
194
+ "single_word": false,
195
+ "special": true
196
+ },
197
+ "24": {
198
+ "content": "<|extra_id_13|>",
199
+ "lstrip": false,
200
+ "normalized": false,
201
+ "rstrip": false,
202
+ "single_word": false,
203
+ "special": true
204
+ },
205
+ "25": {
206
+ "content": "<|im_start|>",
207
+ "lstrip": false,
208
+ "normalized": false,
209
+ "rstrip": false,
210
+ "single_word": false,
211
+ "special": true
212
+ },
213
+ "26": {
214
+ "content": "<|im_sep|>",
215
+ "lstrip": false,
216
+ "normalized": false,
217
+ "rstrip": false,
218
+ "single_word": false,
219
+ "special": true
220
+ },
221
+ "27": {
222
+ "content": "<|im_end|>",
223
+ "lstrip": false,
224
+ "normalized": false,
225
+ "rstrip": false,
226
+ "single_word": false,
227
+ "special": true
228
+ },
229
+ "28": {
230
+ "content": "<|resident_reg|>",
231
+ "lstrip": false,
232
+ "normalized": false,
233
+ "rstrip": false,
234
+ "single_word": false,
235
+ "special": true
236
+ },
237
+ "29": {
238
+ "content": "<|foreigner_reg|>",
239
+ "lstrip": false,
240
+ "normalized": false,
241
+ "rstrip": false,
242
+ "single_word": false,
243
+ "special": true
244
+ },
245
+ "30": {
246
+ "content": "<|business_reg|>",
247
+ "lstrip": false,
248
+ "normalized": false,
249
+ "rstrip": false,
250
+ "single_word": false,
251
+ "special": true
252
+ },
253
+ "31": {
254
+ "content": "<|credit_card|>",
255
+ "lstrip": false,
256
+ "normalized": false,
257
+ "rstrip": false,
258
+ "single_word": false,
259
+ "special": true
260
+ },
261
+ "32": {
262
+ "content": "<|passport|>",
263
+ "lstrip": false,
264
+ "normalized": false,
265
+ "rstrip": false,
266
+ "single_word": false,
267
+ "special": true
268
+ },
269
+ "33": {
270
+ "content": "<|driver_license|>",
271
+ "lstrip": false,
272
+ "normalized": false,
273
+ "rstrip": false,
274
+ "single_word": false,
275
+ "special": true
276
+ },
277
+ "34": {
278
+ "content": "<|telephone|>",
279
+ "lstrip": false,
280
+ "normalized": false,
281
+ "rstrip": false,
282
+ "single_word": false,
283
+ "special": true
284
+ },
285
+ "35": {
286
+ "content": "<|health_insurance|>",
287
+ "lstrip": false,
288
+ "normalized": false,
289
+ "rstrip": false,
290
+ "single_word": false,
291
+ "special": true
292
+ },
293
+ "36": {
294
+ "content": "<|bank_account|>",
295
+ "lstrip": false,
296
+ "normalized": false,
297
+ "rstrip": false,
298
+ "single_word": false,
299
+ "special": true
300
+ },
301
+ "37": {
302
+ "content": "</tool_output>",
303
+ "lstrip": false,
304
+ "normalized": false,
305
+ "rstrip": false,
306
+ "single_word": false,
307
+ "special": false
308
+ },
309
+ "38": {
310
+ "content": "<tool_output>",
311
+ "lstrip": false,
312
+ "normalized": false,
313
+ "rstrip": false,
314
+ "single_word": false,
315
+ "special": false
316
+ },
317
+ "39": {
318
+ "content": "</tool_call>",
319
+ "lstrip": false,
320
+ "normalized": false,
321
+ "rstrip": false,
322
+ "single_word": false,
323
+ "special": false
324
+ },
325
+ "40": {
326
+ "content": "<tool_call>",
327
+ "lstrip": false,
328
+ "normalized": false,
329
+ "rstrip": false,
330
+ "single_word": false,
331
+ "special": false
332
+ }
333
+ },
334
+ "additional_special_tokens": [
335
+ "<|endoftext|>",
336
+ "<|pad|>",
337
+ "<|unk|>",
338
+ "<|sep|>",
339
+ "<|mask|>",
340
+ "<|cls|>",
341
+ "<|image|>",
342
+ "<|audio|>",
343
+ "<|user|>",
344
+ "<|system|>",
345
+ "<|assistant|>",
346
+ "<|extra_id_0|>",
347
+ "<|extra_id_1|>",
348
+ "<|extra_id_2|>",
349
+ "<|extra_id_3|>",
350
+ "<|extra_id_4|>",
351
+ "<|extra_id_5|>",
352
+ "<|extra_id_6|>",
353
+ "<|extra_id_7|>",
354
+ "<|extra_id_8|>",
355
+ "<|extra_id_9|>",
356
+ "<|extra_id_10|>",
357
+ "<|extra_id_11|>",
358
+ "<|extra_id_12|>",
359
+ "<|extra_id_13|>",
360
+ "<|im_start|>",
361
+ "<|im_sep|>",
362
+ "<|im_end|>",
363
+ "<|resident_reg|>",
364
+ "<|foreigner_reg|>",
365
+ "<|business_reg|>",
366
+ "<|credit_card|>",
367
+ "<|passport|>",
368
+ "<|driver_license|>",
369
+ "<|telephone|>",
370
+ "<|health_insurance|>",
371
+ "<|bank_account|>"
372
+ ],
373
+ "bos_token": "<|endoftext|>",
374
+ "chat_template": "{%- if tools is iterable and tools | length > 0 %}\n {{- '<|im_start|><|system|>'}}\n {{- '당신은 도구 호출 기능을 갖춘 유용한 도우미입니다. 사용자의 요청을 처리하기 위해서 필요한 도구가 주어진 목록에 있는 경우 도구 호출로 응답하세요.\n필요한 도구가 목록에 없는 경우에는 도구 호출 없이 사용자가 요구한 정보를 제공하세요.\n필요한 도구가 목록에 있지만 해당 도구를 호출하는데 필요한 argument 정보가 부족한 경우 해당 정보를 사용자에게 요청하세요.\n사용자의 요청을 처리하기 위해 여러번 도구를 호출할 수 있어야 합니다.\n도구 호출 이후 도구 실행 결과를 입력으로 받으면 해당 결과를 활용하여 답변을 생성하세요.\n\n다음은 접근할 수 있는 도구들의 목록 입니다:\n<tools>\n'}}\n {%- for t in tools %}\n {{- t | tojson }}\n {{- '\n' }}\n {%- endfor %}\n {{- '</tools>' }}\n {{- '\n\n도구를 호출하려면 아래의 JSON으로 응답하세요.\n도구 호출 형식: <tool_call>{\"name\": 도구 이름, \"arguments\": dictionary 형태의 도구 인자값}</tool_call>' }}\n {{- '<|im_end|>' }}\n {%- endif %}\n \n {%- for message in messages %}\n {%- if message.role == 'system' %}\n {{- '<|im_start|><|system|>' + message.content + '<|im_end|>'}}\n {%- elif message.role == 'user' %}\n {{- '<|im_start|><|user|>' + message.content + '<|im_end|>'}}\n {%- elif message.role == 'assistant' %}\n {{- '<|im_start|><|assistant|>'}}\n {%- set content = '' %}\n {%- if message.content is defined %}\n {%- set content = message.content %}\n {%- endif %}\n \n {%- if add_generation_prompt and not (message.reasoning_content is defined and message.reasoning_content is not none) %}\n {%- if '</think>' in message.content %}\n {%- set content = message.content.split('</think>'.strip())[-1].lstrip('\\n') %}\n {%- endif %}\n {%- endif %}\n \n {{- content}}\n {%- if message.tool_calls is defined %}\n {%- for tool_call in message.tool_calls %}\n {%- if tool_call.function is defined %}\n {%- set tool_call = tool_call.function %}\n {%- endif %}\n {{- '<tool_call>' }}\n {{- '{' }}\n {{- '\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\"' }}\n {%- if tool_call.arguments is defined %}\n {{- ', ' }}\n {{- '\"arguments\": ' }}\n {{- tool_call.arguments|tojson }}\n {%- endif %}\n {{- '}' }}\n {{- '</tool_call>' }}\n {%- endfor %}\n {%- endif %}\n {{- '<|im_end|>'}}\n \n {%- elif message.role == 'tool' %}\n {{- '<|im_start|><|extra_id_13|><tool_output>' + message.content + '</tool_output><|im_end|>'}}\n {%- endif %}\n {%- endfor %}\n \n {%- if add_generation_prompt %}\n {{- '<|im_start|><|assistant|>' }}\n {%- endif %}",
375
+ "clean_up_tokenization_spaces": true,
376
+ "cls_token": "<|cls|>",
377
+ "eod_token": "<|endoftext|>",
378
+ "eos_token": "<|im_end|>",
379
+ "errors": "replace",
380
+ "extra_special_tokens": {},
381
+ "mask_token": "<|mask|>",
382
+ "max_length": 7680,
383
+ "model_max_length": 262144,
384
+ "pad_token": "<|pad|>",
385
+ "padding_side": "right",
386
+ "sep_token": "<|sep|>",
387
+ "tokenizer_class": "GPT2Tokenizer",
388
+ "truncation_side": "left",
389
+ "unk_token": "<|unk|>",
390
+ "vocab_size": 102400
391
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff