Upload folder using huggingface_hub
Browse files- added_tokens.json +20 -1
- config.json +2 -2
- configuration.json +1 -4
- generation_config.json +4 -2
- model-00001-of-00031.safetensors +1 -1
- model-00002-of-00031.safetensors +1 -1
- model-00003-of-00031.safetensors +1 -1
- model-00004-of-00031.safetensors +1 -1
- model-00005-of-00031.safetensors +1 -1
- model-00006-of-00031.safetensors +1 -1
- model-00007-of-00031.safetensors +1 -1
- model-00008-of-00031.safetensors +1 -1
- model-00009-of-00031.safetensors +1 -1
- model-00010-of-00031.safetensors +1 -1
- model-00011-of-00031.safetensors +1 -1
- model-00012-of-00031.safetensors +1 -1
- model-00013-of-00031.safetensors +1 -1
- model-00014-of-00031.safetensors +1 -1
- model-00015-of-00031.safetensors +1 -1
- model-00016-of-00031.safetensors +1 -1
- model-00017-of-00031.safetensors +1 -1
- model-00018-of-00031.safetensors +1 -1
- model-00019-of-00031.safetensors +1 -1
- model-00020-of-00031.safetensors +1 -1
- model-00021-of-00031.safetensors +1 -1
- model-00022-of-00031.safetensors +1 -1
- model-00023-of-00031.safetensors +1 -1
- model-00024-of-00031.safetensors +1 -1
- model-00025-of-00031.safetensors +1 -1
- model-00026-of-00031.safetensors +1 -1
- model-00027-of-00031.safetensors +1 -1
- model-00028-of-00031.safetensors +1 -1
- model-00029-of-00031.safetensors +1 -1
- model-00030-of-00031.safetensors +1 -1
- model-00031-of-00031.safetensors +1 -1
- sft_args.json +52 -41
- special_tokens_map.json +12 -1
- tokenizer.json +171 -0
- tokenizer_config.json +166 -2
added_tokens.json
CHANGED
@@ -1,5 +1,24 @@
|
|
1 |
{
|
|
|
|
|
|
|
|
|
2 |
"<|endoftext|>": 151643,
|
|
|
|
|
|
|
|
|
|
|
3 |
"<|im_end|>": 151645,
|
4 |
-
"<|im_start|>": 151644
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
}
|
|
|
1 |
{
|
2 |
+
"</tool_call>": 151658,
|
3 |
+
"<tool_call>": 151657,
|
4 |
+
"<|box_end|>": 151649,
|
5 |
+
"<|box_start|>": 151648,
|
6 |
"<|endoftext|>": 151643,
|
7 |
+
"<|file_sep|>": 151664,
|
8 |
+
"<|fim_middle|>": 151660,
|
9 |
+
"<|fim_pad|>": 151662,
|
10 |
+
"<|fim_prefix|>": 151659,
|
11 |
+
"<|fim_suffix|>": 151661,
|
12 |
"<|im_end|>": 151645,
|
13 |
+
"<|im_start|>": 151644,
|
14 |
+
"<|image_pad|>": 151655,
|
15 |
+
"<|object_ref_end|>": 151647,
|
16 |
+
"<|object_ref_start|>": 151646,
|
17 |
+
"<|quad_end|>": 151651,
|
18 |
+
"<|quad_start|>": 151650,
|
19 |
+
"<|repo_name|>": 151663,
|
20 |
+
"<|video_pad|>": 151656,
|
21 |
+
"<|vision_end|>": 151653,
|
22 |
+
"<|vision_pad|>": 151654,
|
23 |
+
"<|vision_start|>": 151652
|
24 |
}
|
config.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
{
|
2 |
-
"_name_or_path": "/root/.cache/modelscope/hub/qwen/
|
3 |
"architectures": [
|
4 |
"Qwen2ForCausalLM"
|
5 |
],
|
@@ -11,7 +11,7 @@
|
|
11 |
"initializer_range": 0.02,
|
12 |
"intermediate_size": 29568,
|
13 |
"max_position_embeddings": 32768,
|
14 |
-
"max_window_layers":
|
15 |
"model_type": "qwen2",
|
16 |
"num_attention_heads": 64,
|
17 |
"num_hidden_layers": 80,
|
|
|
1 |
{
|
2 |
+
"_name_or_path": "/root/.cache/modelscope/hub/qwen/Qwen2___5-72B-Instruct",
|
3 |
"architectures": [
|
4 |
"Qwen2ForCausalLM"
|
5 |
],
|
|
|
11 |
"initializer_range": 0.02,
|
12 |
"intermediate_size": 29568,
|
13 |
"max_position_embeddings": 32768,
|
14 |
+
"max_window_layers": 70,
|
15 |
"model_type": "qwen2",
|
16 |
"num_attention_heads": 64,
|
17 |
"num_hidden_layers": 80,
|
configuration.json
CHANGED
@@ -1,4 +1 @@
|
|
1 |
-
{
|
2 |
-
"framework": "Pytorch",
|
3 |
-
"task": "text-generation"
|
4 |
-
}
|
|
|
1 |
+
{}
|
|
|
|
|
|
generation_config.json
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
{
|
|
|
2 |
"do_sample": true,
|
3 |
"eos_token_id": 151645,
|
4 |
"max_new_tokens": 2048,
|
5 |
"pad_token_id": 151643,
|
6 |
-
"
|
|
|
7 |
"top_k": 20,
|
8 |
-
"top_p": 0.
|
9 |
"transformers_version": "4.41.2"
|
10 |
}
|
|
|
1 |
{
|
2 |
+
"bos_token_id": 151643,
|
3 |
"do_sample": true,
|
4 |
"eos_token_id": 151645,
|
5 |
"max_new_tokens": 2048,
|
6 |
"pad_token_id": 151643,
|
7 |
+
"repetition_penalty": 1.05,
|
8 |
+
"temperature": 0.7,
|
9 |
"top_k": 20,
|
10 |
+
"top_p": 0.8,
|
11 |
"transformers_version": "4.41.2"
|
12 |
}
|
model-00001-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4548798728
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:183977221b774fc6b74b788b5d641abf9c40730a299afc36c789750c6a9dfc0d
|
3 |
size 4548798728
|
model-00002-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4964101384
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:783cfcc7d19aee474af26d99e0b3dbfeac21c601fd77655de471d57f172d46e7
|
3 |
size 4964101384
|
model-00003-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781637328
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:692a087d52c4c5d23b55ff041f7f7191fd30a19868ff8101c2490475d84aad97
|
3 |
size 4781637328
|
model-00004-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670320
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b9175c7ced898030e6bb46caa982688048de557487b09c993da9e01e97825ccf
|
3 |
size 4781670320
|
model-00005-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:42516c55390c588d324a55ed73d86cd46847489d19085af6bc4eb02e5c6f5332
|
3 |
size 4781670360
|
model-00006-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4964101416
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:1644657864597df1165bcad06235b29ace7af41a351a9adefcee9c9af25be4d2
|
3 |
size 4964101416
|
model-00007-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781637360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7163276dd5dea8cfa25b227f966cbdb60548c550ade1483f0f812d73b7013294
|
3 |
size 4781637360
|
model-00008-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cf513ba1c97f4d06e7e960094395e792e237d45f206683b284593c440ead7231
|
3 |
size 4781670360
|
model-00009-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:8a078e25cdd4990607f470a271d20c5af1db687a401039257cfe44dac4ce4eed
|
3 |
size 4781670360
|
model-00010-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4964101416
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0d59dd5858e18bec7a4a0bce3a1e5da3a295901412123ccc3cbf13b1e9b05fc5
|
3 |
size 4964101416
|
model-00011-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781637360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:9cc5af829b6bf99f8c891b30707289849513504e3c87f796bfaaea8d37d19db1
|
3 |
size 4781637360
|
model-00012-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c766bda4161c342e26bf0bb11827a60f273c8f1ec35cbdbdc4598165827c62ab
|
3 |
size 4781670360
|
model-00013-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f8b5cc8ded87c627bc7eeed87500d77eb54286a53e7f5dcc5c1b19047ef00a8a
|
3 |
size 4781670360
|
model-00014-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4964101416
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:142c289aa43877b9c78440ca907f0e01ee86a44992376a41b11b56a6c3572f66
|
3 |
size 4964101416
|
model-00015-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781637360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:17a41a25dfe3d33b4becbc756003353323d84fd6a4b1f42e925249f2d0dafe53
|
3 |
size 4781637360
|
model-00016-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3551c708511849eb71d7a134d25a3ca0fac0f67dfb6fe70e3667ba4eb5126220
|
3 |
size 4781670360
|
model-00017-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d7315e1d5a490dbdfe8b1934ad7e366ad32c9bc8225ee09616d3373a2280dad8
|
3 |
size 4781670360
|
model-00018-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4964101416
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d75ebe7889f70cf7f71858b6ffbe5bf9365d74cfeaaa6bb13fc25dfd70c82ba3
|
3 |
size 4964101416
|
model-00019-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781637360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a129ab89873549da1ab9af4f693793792c019bffc5c88da6cb008303925cce00
|
3 |
size 4781637360
|
model-00020-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:555fbfb9701a60dcb1dbd54b5ac258667e176bb305b0ba344c636fc16b409475
|
3 |
size 4781670360
|
model-00021-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e035809d8ce1b4acf3fd68cfb46497bed6da91a2c2ba91f4ff7f2dc737122ccc
|
3 |
size 4781670360
|
model-00022-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4964101416
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ccf96ad5e02a6d016d4035af9d7888d25897cc7de7496e23cdf0559b90e77b86
|
3 |
size 4964101416
|
model-00023-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781637360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c5740a22381c7dce1e598d2c5cc7c137482da517dc50bb5b3274a1837ea3b38c
|
3 |
size 4781637360
|
model-00024-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:126eab57ebe5b2cd479197d9dbb9182232316f05c1d09afe46efefde6b3a8eae
|
3 |
size 4781670360
|
model-00025-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:13c931d0169775ce7ff86154e8a2a3c57c14dc6121242994e969a66cc65b8267
|
3 |
size 4781670360
|
model-00026-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4964101416
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:7b7d3d8b8646bb502804835705a24daeeb7d6727b5ae4e07d818c95ae1191aaf
|
3 |
size 4964101416
|
model-00027-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781637360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:6875d3ec11a2760636d9dc94ae3073903f4f2c5b2676e8a74aa408e03aecdad8
|
3 |
size 4781637360
|
model-00028-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:291ce9cac316c735d67b32d607d45020718d4f54f8aafb183a7efbc051f67869
|
3 |
size 4781670360
|
model-00029-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 4781670360
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:34ee59c8130753d15299792fd9a8a6b2a54d23110a565c55a14dcf3a2ded14f8
|
3 |
size 4781670360
|
model-00030-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 3208747032
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:4fa8fd2a1f702e7e1591a00ea7f597abfab722ed0651799e4de2e9b621c0afe3
|
3 |
size 3208747032
|
model-00031-of-00031.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 2491416704
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cdbc8f91c574681655bd34786cb3923093027809999083ab1843ea595d8b9a49
|
3 |
size 2491416704
|
sft_args.json
CHANGED
@@ -1,17 +1,21 @@
|
|
1 |
{
|
2 |
-
"model_type": "
|
3 |
-
"model_id_or_path": "qwen/Qwen2-72B-Instruct",
|
4 |
"model_revision": "master",
|
|
|
5 |
"sft_type": "full",
|
6 |
-
"freeze_parameters":
|
|
|
|
|
7 |
"additional_trainable_parameters": [],
|
8 |
"tuner_backend": "peft",
|
9 |
-
"template_type": "
|
10 |
-
"output_dir": "/root/swift/esft/output/
|
11 |
"add_output_dir_suffix": true,
|
12 |
"ddp_backend": "nccl",
|
13 |
"ddp_find_unused_parameters": null,
|
14 |
"ddp_broadcast_buffers": null,
|
|
|
15 |
"seed": 42,
|
16 |
"resume_from_checkpoint": null,
|
17 |
"resume_only_model": false,
|
@@ -23,28 +27,17 @@
|
|
23 |
"pp": 1,
|
24 |
"min_lr": null,
|
25 |
"sequence_parallel": false,
|
|
|
|
|
26 |
"dataset": [
|
27 |
-
"dataset/moni_dataset.jsonl",
|
28 |
-
"dataset/moni_dataset.jsonl",
|
29 |
-
"dataset/moni_dataset.jsonl",
|
30 |
"dataset/moni_dataset.jsonl",
|
31 |
"dataset/moni_dataset_en.jsonl",
|
32 |
-
"dataset/moni_dataset_en.jsonl",
|
33 |
-
"dataset/covid_new.jsonl",
|
34 |
"dataset/covid_new.jsonl",
|
35 |
-
"dataset/covid_new.jsonl",
|
36 |
-
"dataset/covid_new.jsonl",
|
37 |
-
"dataset/ds_new.jsonl",
|
38 |
-
"dataset/ds_new.jsonl",
|
39 |
"dataset/ds_new.jsonl",
|
40 |
"dataset/ds_new.jsonl",
|
41 |
-
"
|
42 |
-
"
|
43 |
-
"
|
44 |
-
"HF::roleplay-base#1500",
|
45 |
-
"iic/MSAgent-MultiRole#1500",
|
46 |
-
"AI-ModelScope/ruozhiba#1000",
|
47 |
-
"modelscope/chinese-poetry-collection#500"
|
48 |
],
|
49 |
"val_dataset": [
|
50 |
"dataset/moni_dataset.jsonl#50"
|
@@ -55,7 +48,7 @@
|
|
55 |
"loss_scale_config_path": "/root/swift/swift_new/lib/python3.11/site-packages/swift/llm/agent/default_loss_scale_config.json",
|
56 |
"system": "None",
|
57 |
"tools_prompt": "react_en",
|
58 |
-
"max_length":
|
59 |
"truncation_strategy": "delete",
|
60 |
"check_dataset_strategy": "warning",
|
61 |
"streaming": false,
|
@@ -79,15 +72,19 @@
|
|
79 |
"bnb_4bit_quant_storage": null,
|
80 |
"rescale_image": -1,
|
81 |
"target_modules": [
|
82 |
-
"q_proj",
|
83 |
"k_proj",
|
84 |
-
"
|
|
|
|
|
|
|
|
|
|
|
85 |
],
|
86 |
"target_regex": null,
|
87 |
"modules_to_save": [],
|
88 |
"lora_rank": 16,
|
89 |
"lora_alpha": 32,
|
90 |
-
"lora_dropout": 0.
|
91 |
"lora_bias_trainable": "none",
|
92 |
"lora_dtype": null,
|
93 |
"lora_lr_ratio": null,
|
@@ -137,11 +134,18 @@
|
|
137 |
"neftune_backend": "transformers",
|
138 |
"lisa_activated_layers": 0,
|
139 |
"lisa_step_interval": 20,
|
|
|
|
|
|
|
|
|
|
|
|
|
140 |
"gradient_checkpointing": true,
|
141 |
"deepspeed": null,
|
142 |
-
"batch_size":
|
143 |
"eval_batch_size": 1,
|
144 |
-
"
|
|
|
145 |
"max_steps": -1,
|
146 |
"optim": "adamw_torch",
|
147 |
"adam_beta1": 0.9,
|
@@ -150,7 +154,7 @@
|
|
150 |
"learning_rate": 0.0001,
|
151 |
"weight_decay": 0.1,
|
152 |
"gradient_accumulation_steps": 16,
|
153 |
-
"max_grad_norm": 0
|
154 |
"predict_with_generate": false,
|
155 |
"lr_scheduler_type": "cosine",
|
156 |
"lr_scheduler_kwargs": {},
|
@@ -169,7 +173,7 @@
|
|
169 |
"hub_model_id": null,
|
170 |
"hub_token": null,
|
171 |
"hub_private_repo": false,
|
172 |
-
"
|
173 |
"test_oom_error": false,
|
174 |
"disable_tqdm": false,
|
175 |
"lazy_tokenize": false,
|
@@ -177,7 +181,7 @@
|
|
177 |
"use_flash_attn": true,
|
178 |
"ignore_args_error": false,
|
179 |
"check_model_is_latest": true,
|
180 |
-
"logging_dir": "/root/swift/esft/output/
|
181 |
"report_to": [
|
182 |
"tensorboard"
|
183 |
],
|
@@ -191,14 +195,14 @@
|
|
191 |
"local_repo_path": null,
|
192 |
"custom_register_path": null,
|
193 |
"custom_dataset_info": "/root/swift/dataset/ds_info.json",
|
194 |
-
"
|
195 |
"device_max_memory": [],
|
196 |
"max_new_tokens": 2048,
|
197 |
-
"do_sample":
|
198 |
-
"temperature":
|
199 |
-
"top_k":
|
200 |
-
"top_p":
|
201 |
-
"repetition_penalty":
|
202 |
"num_beams": 1,
|
203 |
"fsdp": "",
|
204 |
"fsdp_config": null,
|
@@ -221,11 +225,15 @@
|
|
221 |
"neftune_alpha": null,
|
222 |
"deepspeed_config_path": null,
|
223 |
"model_cache_dir": null,
|
224 |
-
"lora_dropout_p": 0.
|
225 |
"lora_target_modules": [
|
226 |
-
"q_proj",
|
227 |
"k_proj",
|
228 |
-
"
|
|
|
|
|
|
|
|
|
|
|
229 |
],
|
230 |
"lora_target_regex": null,
|
231 |
"lora_modules_to_save": [],
|
@@ -237,11 +245,13 @@
|
|
237 |
"ia3_modules_to_save": [],
|
238 |
"custom_train_dataset_path": [],
|
239 |
"custom_val_dataset_path": [],
|
|
|
|
|
240 |
"use_self_cognition": false,
|
241 |
"is_multimodal": false,
|
242 |
"is_vision": false,
|
243 |
"lora_use_embedding": false,
|
244 |
-
"lora_use_all":
|
245 |
"lora_m2s_use_embedding": false,
|
246 |
"lora_m2s_use_ln": false,
|
247 |
"torch_dtype": "torch.bfloat16",
|
@@ -255,5 +265,6 @@
|
|
255 |
"load_in_4bit": false,
|
256 |
"load_in_8bit": false,
|
257 |
"train_sampler_random": true,
|
258 |
-
"
|
|
|
259 |
}
|
|
|
1 |
{
|
2 |
+
"model_type": "qwen2_5-72b-instruct",
|
3 |
+
"model_id_or_path": "qwen/Qwen2.5-72B-Instruct",
|
4 |
"model_revision": "master",
|
5 |
+
"full_determinism": false,
|
6 |
"sft_type": "full",
|
7 |
+
"freeze_parameters": [],
|
8 |
+
"freeze_vit": false,
|
9 |
+
"freeze_parameters_ratio": 0.0,
|
10 |
"additional_trainable_parameters": [],
|
11 |
"tuner_backend": "peft",
|
12 |
+
"template_type": "qwen2_5",
|
13 |
+
"output_dir": "/root/swift/esft/output/qwen2_5-72b-instruct/v1-20240927-003554",
|
14 |
"add_output_dir_suffix": true,
|
15 |
"ddp_backend": "nccl",
|
16 |
"ddp_find_unused_parameters": null,
|
17 |
"ddp_broadcast_buffers": null,
|
18 |
+
"ddp_timeout": 1800,
|
19 |
"seed": 42,
|
20 |
"resume_from_checkpoint": null,
|
21 |
"resume_only_model": false,
|
|
|
27 |
"pp": 1,
|
28 |
"min_lr": null,
|
29 |
"sequence_parallel": false,
|
30 |
+
"model_kwargs": {},
|
31 |
+
"loss_name": null,
|
32 |
"dataset": [
|
|
|
|
|
|
|
33 |
"dataset/moni_dataset.jsonl",
|
34 |
"dataset/moni_dataset_en.jsonl",
|
|
|
|
|
35 |
"dataset/covid_new.jsonl",
|
|
|
|
|
|
|
|
|
36 |
"dataset/ds_new.jsonl",
|
37 |
"dataset/ds_new.jsonl",
|
38 |
+
"AI-ModelScope/deepctrl-sft-data:default#1600",
|
39 |
+
"AI-ModelScope/deepctrl-sft-data:en#1100",
|
40 |
+
"AI-ModelScope/ruozhiba#250"
|
|
|
|
|
|
|
|
|
41 |
],
|
42 |
"val_dataset": [
|
43 |
"dataset/moni_dataset.jsonl#50"
|
|
|
48 |
"loss_scale_config_path": "/root/swift/swift_new/lib/python3.11/site-packages/swift/llm/agent/default_loss_scale_config.json",
|
49 |
"system": "None",
|
50 |
"tools_prompt": "react_en",
|
51 |
+
"max_length": 1344,
|
52 |
"truncation_strategy": "delete",
|
53 |
"check_dataset_strategy": "warning",
|
54 |
"streaming": false,
|
|
|
72 |
"bnb_4bit_quant_storage": null,
|
73 |
"rescale_image": -1,
|
74 |
"target_modules": [
|
|
|
75 |
"k_proj",
|
76 |
+
"gate_proj",
|
77 |
+
"q_proj",
|
78 |
+
"down_proj",
|
79 |
+
"v_proj",
|
80 |
+
"o_proj",
|
81 |
+
"up_proj"
|
82 |
],
|
83 |
"target_regex": null,
|
84 |
"modules_to_save": [],
|
85 |
"lora_rank": 16,
|
86 |
"lora_alpha": 32,
|
87 |
+
"lora_dropout": 0.05,
|
88 |
"lora_bias_trainable": "none",
|
89 |
"lora_dtype": null,
|
90 |
"lora_lr_ratio": null,
|
|
|
134 |
"neftune_backend": "transformers",
|
135 |
"lisa_activated_layers": 0,
|
136 |
"lisa_step_interval": 20,
|
137 |
+
"reft_layer_key": null,
|
138 |
+
"reft_layers": null,
|
139 |
+
"reft_rank": 4,
|
140 |
+
"reft_intervention_type": "LoreftIntervention",
|
141 |
+
"reft_args": null,
|
142 |
+
"use_liger": false,
|
143 |
"gradient_checkpointing": true,
|
144 |
"deepspeed": null,
|
145 |
+
"batch_size": 2,
|
146 |
"eval_batch_size": 1,
|
147 |
+
"auto_find_batch_size": false,
|
148 |
+
"num_train_epochs": 20,
|
149 |
"max_steps": -1,
|
150 |
"optim": "adamw_torch",
|
151 |
"adam_beta1": 0.9,
|
|
|
154 |
"learning_rate": 0.0001,
|
155 |
"weight_decay": 0.1,
|
156 |
"gradient_accumulation_steps": 16,
|
157 |
+
"max_grad_norm": 1.0,
|
158 |
"predict_with_generate": false,
|
159 |
"lr_scheduler_type": "cosine",
|
160 |
"lr_scheduler_kwargs": {},
|
|
|
173 |
"hub_model_id": null,
|
174 |
"hub_token": null,
|
175 |
"hub_private_repo": false,
|
176 |
+
"hub_strategy": "every_save",
|
177 |
"test_oom_error": false,
|
178 |
"disable_tqdm": false,
|
179 |
"lazy_tokenize": false,
|
|
|
181 |
"use_flash_attn": true,
|
182 |
"ignore_args_error": false,
|
183 |
"check_model_is_latest": true,
|
184 |
+
"logging_dir": "/root/swift/esft/output/qwen2_5-72b-instruct/v1-20240927-003554/runs",
|
185 |
"report_to": [
|
186 |
"tensorboard"
|
187 |
],
|
|
|
195 |
"local_repo_path": null,
|
196 |
"custom_register_path": null,
|
197 |
"custom_dataset_info": "/root/swift/dataset/ds_info.json",
|
198 |
+
"device_map_config": null,
|
199 |
"device_max_memory": [],
|
200 |
"max_new_tokens": 2048,
|
201 |
+
"do_sample": null,
|
202 |
+
"temperature": null,
|
203 |
+
"top_k": null,
|
204 |
+
"top_p": null,
|
205 |
+
"repetition_penalty": null,
|
206 |
"num_beams": 1,
|
207 |
"fsdp": "",
|
208 |
"fsdp_config": null,
|
|
|
225 |
"neftune_alpha": null,
|
226 |
"deepspeed_config_path": null,
|
227 |
"model_cache_dir": null,
|
228 |
+
"lora_dropout_p": 0.05,
|
229 |
"lora_target_modules": [
|
|
|
230 |
"k_proj",
|
231 |
+
"gate_proj",
|
232 |
+
"q_proj",
|
233 |
+
"down_proj",
|
234 |
+
"v_proj",
|
235 |
+
"o_proj",
|
236 |
+
"up_proj"
|
237 |
],
|
238 |
"lora_target_regex": null,
|
239 |
"lora_modules_to_save": [],
|
|
|
245 |
"ia3_modules_to_save": [],
|
246 |
"custom_train_dataset_path": [],
|
247 |
"custom_val_dataset_path": [],
|
248 |
+
"device_map_config_path": null,
|
249 |
+
"push_hub_strategy": null,
|
250 |
"use_self_cognition": false,
|
251 |
"is_multimodal": false,
|
252 |
"is_vision": false,
|
253 |
"lora_use_embedding": false,
|
254 |
+
"lora_use_all": true,
|
255 |
"lora_m2s_use_embedding": false,
|
256 |
"lora_m2s_use_ln": false,
|
257 |
"torch_dtype": "torch.bfloat16",
|
|
|
265 |
"load_in_4bit": false,
|
266 |
"load_in_8bit": false,
|
267 |
"train_sampler_random": true,
|
268 |
+
"train_type": "sft",
|
269 |
+
"training_args": "Seq2SeqTrainingArguments(output_dir='/root/swift/esft/output/qwen2_5-72b-instruct/v1-20240927-003554', overwrite_output_dir=False, do_train=False, do_eval=True, do_predict=False, eval_strategy=<IntervalStrategy.STEPS: 'steps'>, prediction_loss_only=False, per_device_train_batch_size=2, per_device_eval_batch_size=1, per_gpu_train_batch_size=None, per_gpu_eval_batch_size=None, gradient_accumulation_steps=16, eval_accumulation_steps=None, eval_delay=0, learning_rate=0.0001, weight_decay=0.1, adam_beta1=0.9, adam_beta2=0.95, adam_epsilon=1e-08, max_grad_norm=1.0, num_train_epochs=20, max_steps=-1, lr_scheduler_type=<SchedulerType.COSINE: 'cosine'>, lr_scheduler_kwargs={}, warmup_ratio=0.03, warmup_steps=0, log_level='passive', log_level_replica='warning', log_on_each_node=True, logging_dir='/root/swift/esft/output/qwen2_5-72b-instruct/v1-20240927-003554/runs', logging_strategy=<IntervalStrategy.STEPS: 'steps'>, logging_first_step=True, logging_steps=5, logging_nan_inf_filter=True, save_strategy=<IntervalStrategy.STEPS: 'steps'>, save_steps=50, save_total_limit=None, save_safetensors=True, save_on_each_node=False, save_only_model=False, restore_callback_states_from_checkpoint=False, no_cuda=False, use_cpu=False, use_mps_device=False, seed=42, data_seed=42, jit_mode_eval=False, use_ipex=False, bf16=True, fp16=False, fp16_opt_level='O1', half_precision_backend='auto', bf16_full_eval=False, fp16_full_eval=False, tf32=None, local_rank=0, ddp_backend='nccl', tpu_num_cores=None, tpu_metrics_debug=False, debug=[], dataloader_drop_last=False, eval_steps=50, dataloader_num_workers=1, dataloader_prefetch_factor=None, past_index=-1, run_name='/root/swift/esft/output/qwen2_5-72b-instruct/v1-20240927-003554', disable_tqdm=False, remove_unused_columns=False, label_names=None, load_best_model_at_end=False, metric_for_best_model='loss', greater_is_better=False, ignore_data_skip=False, fsdp=[], fsdp_min_num_params=0, fsdp_config={'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}, fsdp_transformer_layer_cls_to_wrap=None, accelerator_config=AcceleratorConfig(split_batches=False, dispatch_batches=False, even_batches=True, use_seedable_sampler=True, non_blocking=False, gradient_accumulation_kwargs=None), deepspeed=None, label_smoothing_factor=0.0, optim=<OptimizerNames.ADAMW_TORCH: 'adamw_torch'>, optim_args=None, adafactor=False, group_by_length=False, length_column_name='length', report_to=['tensorboard'], ddp_find_unused_parameters=False, ddp_bucket_cap_mb=None, ddp_broadcast_buffers=False, dataloader_pin_memory=True, dataloader_persistent_workers=False, skip_memory_metrics=True, use_legacy_prediction_loop=False, push_to_hub=False, resume_from_checkpoint=None, hub_model_id=None, hub_strategy=<HubStrategy.EVERY_SAVE: 'every_save'>, hub_token=None, hub_private_repo=False, hub_always_push=False, gradient_checkpointing=True, gradient_checkpointing_kwargs=None, include_inputs_for_metrics=False, eval_do_concat_batches=True, fp16_backend='auto', evaluation_strategy=None, push_to_hub_model_id=None, push_to_hub_organization=None, push_to_hub_token=None, mp_parameters='', auto_find_batch_size=False, full_determinism=False, torchdynamo=None, ray_scope='last', ddp_timeout=1800, torch_compile=False, torch_compile_backend=None, torch_compile_mode=None, dispatch_batches=None, split_batches=None, include_tokens_per_second=False, include_num_input_tokens_seen=False, neftune_noise_alpha=None, optim_target_modules=None, batch_eval_metrics=False, sortish_sampler=False, predict_with_generate=False, generation_max_length=None, generation_num_beams=None, generation_config=GenerationConfig {\n \"bos_token_id\": 151643,\n \"do_sample\": true,\n \"eos_token_id\": 151645,\n \"max_new_tokens\": 2048,\n \"pad_token_id\": 151643,\n \"repetition_penalty\": 1.05,\n \"temperature\": 0.7,\n \"top_k\": 20,\n \"top_p\": 0.8\n}\n, acc_strategy='token', loss_name=None, additional_saved_files=[], train_sampler_random=True, metric_warmup_step=0, train_dataset_sample=-1)"
|
270 |
}
|
special_tokens_map.json
CHANGED
@@ -1,7 +1,18 @@
|
|
1 |
{
|
2 |
"additional_special_tokens": [
|
3 |
"<|im_start|>",
|
4 |
-
"<|im_end|>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
],
|
6 |
"eos_token": "<|im_end|>",
|
7 |
"pad_token": {
|
|
|
1 |
{
|
2 |
"additional_special_tokens": [
|
3 |
"<|im_start|>",
|
4 |
+
"<|im_end|>",
|
5 |
+
"<|object_ref_start|>",
|
6 |
+
"<|object_ref_end|>",
|
7 |
+
"<|box_start|>",
|
8 |
+
"<|box_end|>",
|
9 |
+
"<|quad_start|>",
|
10 |
+
"<|quad_end|>",
|
11 |
+
"<|vision_start|>",
|
12 |
+
"<|vision_end|>",
|
13 |
+
"<|vision_pad|>",
|
14 |
+
"<|image_pad|>",
|
15 |
+
"<|video_pad|>"
|
16 |
],
|
17 |
"eos_token": "<|im_end|>",
|
18 |
"pad_token": {
|
tokenizer.json
CHANGED
@@ -29,6 +29,177 @@
|
|
29 |
"rstrip": false,
|
30 |
"normalized": false,
|
31 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
}
|
33 |
],
|
34 |
"normalizer": {
|
|
|
29 |
"rstrip": false,
|
30 |
"normalized": false,
|
31 |
"special": true
|
32 |
+
},
|
33 |
+
{
|
34 |
+
"id": 151646,
|
35 |
+
"content": "<|object_ref_start|>",
|
36 |
+
"single_word": false,
|
37 |
+
"lstrip": false,
|
38 |
+
"rstrip": false,
|
39 |
+
"normalized": false,
|
40 |
+
"special": true
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"id": 151647,
|
44 |
+
"content": "<|object_ref_end|>",
|
45 |
+
"single_word": false,
|
46 |
+
"lstrip": false,
|
47 |
+
"rstrip": false,
|
48 |
+
"normalized": false,
|
49 |
+
"special": true
|
50 |
+
},
|
51 |
+
{
|
52 |
+
"id": 151648,
|
53 |
+
"content": "<|box_start|>",
|
54 |
+
"single_word": false,
|
55 |
+
"lstrip": false,
|
56 |
+
"rstrip": false,
|
57 |
+
"normalized": false,
|
58 |
+
"special": true
|
59 |
+
},
|
60 |
+
{
|
61 |
+
"id": 151649,
|
62 |
+
"content": "<|box_end|>",
|
63 |
+
"single_word": false,
|
64 |
+
"lstrip": false,
|
65 |
+
"rstrip": false,
|
66 |
+
"normalized": false,
|
67 |
+
"special": true
|
68 |
+
},
|
69 |
+
{
|
70 |
+
"id": 151650,
|
71 |
+
"content": "<|quad_start|>",
|
72 |
+
"single_word": false,
|
73 |
+
"lstrip": false,
|
74 |
+
"rstrip": false,
|
75 |
+
"normalized": false,
|
76 |
+
"special": true
|
77 |
+
},
|
78 |
+
{
|
79 |
+
"id": 151651,
|
80 |
+
"content": "<|quad_end|>",
|
81 |
+
"single_word": false,
|
82 |
+
"lstrip": false,
|
83 |
+
"rstrip": false,
|
84 |
+
"normalized": false,
|
85 |
+
"special": true
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"id": 151652,
|
89 |
+
"content": "<|vision_start|>",
|
90 |
+
"single_word": false,
|
91 |
+
"lstrip": false,
|
92 |
+
"rstrip": false,
|
93 |
+
"normalized": false,
|
94 |
+
"special": true
|
95 |
+
},
|
96 |
+
{
|
97 |
+
"id": 151653,
|
98 |
+
"content": "<|vision_end|>",
|
99 |
+
"single_word": false,
|
100 |
+
"lstrip": false,
|
101 |
+
"rstrip": false,
|
102 |
+
"normalized": false,
|
103 |
+
"special": true
|
104 |
+
},
|
105 |
+
{
|
106 |
+
"id": 151654,
|
107 |
+
"content": "<|vision_pad|>",
|
108 |
+
"single_word": false,
|
109 |
+
"lstrip": false,
|
110 |
+
"rstrip": false,
|
111 |
+
"normalized": false,
|
112 |
+
"special": true
|
113 |
+
},
|
114 |
+
{
|
115 |
+
"id": 151655,
|
116 |
+
"content": "<|image_pad|>",
|
117 |
+
"single_word": false,
|
118 |
+
"lstrip": false,
|
119 |
+
"rstrip": false,
|
120 |
+
"normalized": false,
|
121 |
+
"special": true
|
122 |
+
},
|
123 |
+
{
|
124 |
+
"id": 151656,
|
125 |
+
"content": "<|video_pad|>",
|
126 |
+
"single_word": false,
|
127 |
+
"lstrip": false,
|
128 |
+
"rstrip": false,
|
129 |
+
"normalized": false,
|
130 |
+
"special": true
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"id": 151657,
|
134 |
+
"content": "<tool_call>",
|
135 |
+
"single_word": false,
|
136 |
+
"lstrip": false,
|
137 |
+
"rstrip": false,
|
138 |
+
"normalized": false,
|
139 |
+
"special": false
|
140 |
+
},
|
141 |
+
{
|
142 |
+
"id": 151658,
|
143 |
+
"content": "</tool_call>",
|
144 |
+
"single_word": false,
|
145 |
+
"lstrip": false,
|
146 |
+
"rstrip": false,
|
147 |
+
"normalized": false,
|
148 |
+
"special": false
|
149 |
+
},
|
150 |
+
{
|
151 |
+
"id": 151659,
|
152 |
+
"content": "<|fim_prefix|>",
|
153 |
+
"single_word": false,
|
154 |
+
"lstrip": false,
|
155 |
+
"rstrip": false,
|
156 |
+
"normalized": false,
|
157 |
+
"special": false
|
158 |
+
},
|
159 |
+
{
|
160 |
+
"id": 151660,
|
161 |
+
"content": "<|fim_middle|>",
|
162 |
+
"single_word": false,
|
163 |
+
"lstrip": false,
|
164 |
+
"rstrip": false,
|
165 |
+
"normalized": false,
|
166 |
+
"special": false
|
167 |
+
},
|
168 |
+
{
|
169 |
+
"id": 151661,
|
170 |
+
"content": "<|fim_suffix|>",
|
171 |
+
"single_word": false,
|
172 |
+
"lstrip": false,
|
173 |
+
"rstrip": false,
|
174 |
+
"normalized": false,
|
175 |
+
"special": false
|
176 |
+
},
|
177 |
+
{
|
178 |
+
"id": 151662,
|
179 |
+
"content": "<|fim_pad|>",
|
180 |
+
"single_word": false,
|
181 |
+
"lstrip": false,
|
182 |
+
"rstrip": false,
|
183 |
+
"normalized": false,
|
184 |
+
"special": false
|
185 |
+
},
|
186 |
+
{
|
187 |
+
"id": 151663,
|
188 |
+
"content": "<|repo_name|>",
|
189 |
+
"single_word": false,
|
190 |
+
"lstrip": false,
|
191 |
+
"rstrip": false,
|
192 |
+
"normalized": false,
|
193 |
+
"special": false
|
194 |
+
},
|
195 |
+
{
|
196 |
+
"id": 151664,
|
197 |
+
"content": "<|file_sep|>",
|
198 |
+
"single_word": false,
|
199 |
+
"lstrip": false,
|
200 |
+
"rstrip": false,
|
201 |
+
"normalized": false,
|
202 |
+
"special": false
|
203 |
}
|
204 |
],
|
205 |
"normalizer": {
|
tokenizer_config.json
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
{
|
|
|
2 |
"add_prefix_space": false,
|
3 |
"added_tokens_decoder": {
|
4 |
"151643": {
|
@@ -24,14 +25,177 @@
|
|
24 |
"rstrip": false,
|
25 |
"single_word": false,
|
26 |
"special": true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
}
|
28 |
},
|
29 |
"additional_special_tokens": [
|
30 |
"<|im_start|>",
|
31 |
-
"<|im_end|>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
],
|
33 |
"bos_token": null,
|
34 |
-
"chat_template": "{%
|
35 |
"clean_up_tokenization_spaces": false,
|
36 |
"eos_token": "<|im_end|>",
|
37 |
"errors": "replace",
|
|
|
1 |
{
|
2 |
+
"add_bos_token": false,
|
3 |
"add_prefix_space": false,
|
4 |
"added_tokens_decoder": {
|
5 |
"151643": {
|
|
|
25 |
"rstrip": false,
|
26 |
"single_word": false,
|
27 |
"special": true
|
28 |
+
},
|
29 |
+
"151646": {
|
30 |
+
"content": "<|object_ref_start|>",
|
31 |
+
"lstrip": false,
|
32 |
+
"normalized": false,
|
33 |
+
"rstrip": false,
|
34 |
+
"single_word": false,
|
35 |
+
"special": true
|
36 |
+
},
|
37 |
+
"151647": {
|
38 |
+
"content": "<|object_ref_end|>",
|
39 |
+
"lstrip": false,
|
40 |
+
"normalized": false,
|
41 |
+
"rstrip": false,
|
42 |
+
"single_word": false,
|
43 |
+
"special": true
|
44 |
+
},
|
45 |
+
"151648": {
|
46 |
+
"content": "<|box_start|>",
|
47 |
+
"lstrip": false,
|
48 |
+
"normalized": false,
|
49 |
+
"rstrip": false,
|
50 |
+
"single_word": false,
|
51 |
+
"special": true
|
52 |
+
},
|
53 |
+
"151649": {
|
54 |
+
"content": "<|box_end|>",
|
55 |
+
"lstrip": false,
|
56 |
+
"normalized": false,
|
57 |
+
"rstrip": false,
|
58 |
+
"single_word": false,
|
59 |
+
"special": true
|
60 |
+
},
|
61 |
+
"151650": {
|
62 |
+
"content": "<|quad_start|>",
|
63 |
+
"lstrip": false,
|
64 |
+
"normalized": false,
|
65 |
+
"rstrip": false,
|
66 |
+
"single_word": false,
|
67 |
+
"special": true
|
68 |
+
},
|
69 |
+
"151651": {
|
70 |
+
"content": "<|quad_end|>",
|
71 |
+
"lstrip": false,
|
72 |
+
"normalized": false,
|
73 |
+
"rstrip": false,
|
74 |
+
"single_word": false,
|
75 |
+
"special": true
|
76 |
+
},
|
77 |
+
"151652": {
|
78 |
+
"content": "<|vision_start|>",
|
79 |
+
"lstrip": false,
|
80 |
+
"normalized": false,
|
81 |
+
"rstrip": false,
|
82 |
+
"single_word": false,
|
83 |
+
"special": true
|
84 |
+
},
|
85 |
+
"151653": {
|
86 |
+
"content": "<|vision_end|>",
|
87 |
+
"lstrip": false,
|
88 |
+
"normalized": false,
|
89 |
+
"rstrip": false,
|
90 |
+
"single_word": false,
|
91 |
+
"special": true
|
92 |
+
},
|
93 |
+
"151654": {
|
94 |
+
"content": "<|vision_pad|>",
|
95 |
+
"lstrip": false,
|
96 |
+
"normalized": false,
|
97 |
+
"rstrip": false,
|
98 |
+
"single_word": false,
|
99 |
+
"special": true
|
100 |
+
},
|
101 |
+
"151655": {
|
102 |
+
"content": "<|image_pad|>",
|
103 |
+
"lstrip": false,
|
104 |
+
"normalized": false,
|
105 |
+
"rstrip": false,
|
106 |
+
"single_word": false,
|
107 |
+
"special": true
|
108 |
+
},
|
109 |
+
"151656": {
|
110 |
+
"content": "<|video_pad|>",
|
111 |
+
"lstrip": false,
|
112 |
+
"normalized": false,
|
113 |
+
"rstrip": false,
|
114 |
+
"single_word": false,
|
115 |
+
"special": true
|
116 |
+
},
|
117 |
+
"151657": {
|
118 |
+
"content": "<tool_call>",
|
119 |
+
"lstrip": false,
|
120 |
+
"normalized": false,
|
121 |
+
"rstrip": false,
|
122 |
+
"single_word": false,
|
123 |
+
"special": false
|
124 |
+
},
|
125 |
+
"151658": {
|
126 |
+
"content": "</tool_call>",
|
127 |
+
"lstrip": false,
|
128 |
+
"normalized": false,
|
129 |
+
"rstrip": false,
|
130 |
+
"single_word": false,
|
131 |
+
"special": false
|
132 |
+
},
|
133 |
+
"151659": {
|
134 |
+
"content": "<|fim_prefix|>",
|
135 |
+
"lstrip": false,
|
136 |
+
"normalized": false,
|
137 |
+
"rstrip": false,
|
138 |
+
"single_word": false,
|
139 |
+
"special": false
|
140 |
+
},
|
141 |
+
"151660": {
|
142 |
+
"content": "<|fim_middle|>",
|
143 |
+
"lstrip": false,
|
144 |
+
"normalized": false,
|
145 |
+
"rstrip": false,
|
146 |
+
"single_word": false,
|
147 |
+
"special": false
|
148 |
+
},
|
149 |
+
"151661": {
|
150 |
+
"content": "<|fim_suffix|>",
|
151 |
+
"lstrip": false,
|
152 |
+
"normalized": false,
|
153 |
+
"rstrip": false,
|
154 |
+
"single_word": false,
|
155 |
+
"special": false
|
156 |
+
},
|
157 |
+
"151662": {
|
158 |
+
"content": "<|fim_pad|>",
|
159 |
+
"lstrip": false,
|
160 |
+
"normalized": false,
|
161 |
+
"rstrip": false,
|
162 |
+
"single_word": false,
|
163 |
+
"special": false
|
164 |
+
},
|
165 |
+
"151663": {
|
166 |
+
"content": "<|repo_name|>",
|
167 |
+
"lstrip": false,
|
168 |
+
"normalized": false,
|
169 |
+
"rstrip": false,
|
170 |
+
"single_word": false,
|
171 |
+
"special": false
|
172 |
+
},
|
173 |
+
"151664": {
|
174 |
+
"content": "<|file_sep|>",
|
175 |
+
"lstrip": false,
|
176 |
+
"normalized": false,
|
177 |
+
"rstrip": false,
|
178 |
+
"single_word": false,
|
179 |
+
"special": false
|
180 |
}
|
181 |
},
|
182 |
"additional_special_tokens": [
|
183 |
"<|im_start|>",
|
184 |
+
"<|im_end|>",
|
185 |
+
"<|object_ref_start|>",
|
186 |
+
"<|object_ref_end|>",
|
187 |
+
"<|box_start|>",
|
188 |
+
"<|box_end|>",
|
189 |
+
"<|quad_start|>",
|
190 |
+
"<|quad_end|>",
|
191 |
+
"<|vision_start|>",
|
192 |
+
"<|vision_end|>",
|
193 |
+
"<|vision_pad|>",
|
194 |
+
"<|image_pad|>",
|
195 |
+
"<|video_pad|>"
|
196 |
],
|
197 |
"bos_token": null,
|
198 |
+
"chat_template": "{%- if tools %}\n {{- '<|im_start|>system\\n' }}\n {%- if messages[0]['role'] == 'system' %}\n {{- messages[0]['content'] }}\n {%- else %}\n {{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}\n {%- endif %}\n {{- \"\\n\\n# Tools\\n\\nYou may call one or more functions to assist with the user query.\\n\\nYou are provided with function signatures within <tools></tools> XML tags:\\n<tools>\" }}\n {%- for tool in tools %}\n {{- \"\\n\" }}\n {{- tool | tojson }}\n {%- endfor %}\n {{- \"\\n</tools>\\n\\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\\n<tool_call>\\n{\\\"name\\\": <function-name>, \\\"arguments\\\": <args-json-object>}\\n</tool_call><|im_end|>\\n\" }}\n{%- else %}\n {%- if messages[0]['role'] == 'system' %}\n {{- '<|im_start|>system\\n' + messages[0]['content'] + '<|im_end|>\\n' }}\n {%- else %}\n {{- '<|im_start|>system\\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\\n' }}\n {%- endif %}\n{%- endif %}\n{%- for message in messages %}\n {%- if (message.role == \"user\") or (message.role == \"system\" and not loop.first) or (message.role == \"assistant\" and not message.tool_calls) %}\n {{- '<|im_start|>' + message.role + '\\n' + message.content + '<|im_end|>' + '\\n' }}\n {%- elif message.role == \"assistant\" %}\n {{- '<|im_start|>' + message.role }}\n {%- if message.content %}\n {{- '\\n' + message.content }}\n {%- endif %}\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 {{- '\\n<tool_call>\\n{\"name\": \"' }}\n {{- tool_call.name }}\n {{- '\", \"arguments\": ' }}\n {{- tool_call.arguments | tojson }}\n {{- '}\\n</tool_call>' }}\n {%- endfor %}\n {{- '<|im_end|>\\n' }}\n {%- elif message.role == \"tool\" %}\n {%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != \"tool\") %}\n {{- '<|im_start|>user' }}\n {%- endif %}\n {{- '\\n<tool_response>\\n' }}\n {{- message.content }}\n {{- '\\n</tool_response>' }}\n {%- if loop.last or (messages[loop.index0 + 1].role != \"tool\") %}\n {{- '<|im_end|>\\n' }}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{%- if add_generation_prompt %}\n {{- '<|im_start|>assistant\\n' }}\n{%- endif %}\n",
|
199 |
"clean_up_tokenization_spaces": false,
|
200 |
"eos_token": "<|im_end|>",
|
201 |
"errors": "replace",
|