MeowFET commited on
Commit ·
d853013
1
Parent(s): fc8b8bd
fix conv_template config for qwen2 / phi-2 / cauchy
Browse files
bundle/Cauchy-3B-preview-MLC/mlc-chat-config.json
CHANGED
|
@@ -53,9 +53,9 @@
|
|
| 53 |
"strip_space_in_decode": false
|
| 54 |
},
|
| 55 |
"conv_template": {
|
| 56 |
-
"name": "
|
| 57 |
"system_template": "<|im_start|>system\n{system_message}<|im_end|>\n",
|
| 58 |
-
"system_message": "
|
| 59 |
"system_prefix_token_ids": null,
|
| 60 |
"add_role_after_system_message": true,
|
| 61 |
"roles": {
|
|
@@ -74,10 +74,12 @@
|
|
| 74 |
"role_content_sep": "\n",
|
| 75 |
"role_empty_sep": "\n",
|
| 76 |
"stop_str": [
|
|
|
|
| 77 |
"<|im_end|>"
|
| 78 |
],
|
| 79 |
"stop_token_ids": [
|
| 80 |
-
|
|
|
|
| 81 |
],
|
| 82 |
"function_string": "",
|
| 83 |
"use_function_calling": false
|
|
@@ -85,4 +87,4 @@
|
|
| 85 |
"pad_token_id": 0,
|
| 86 |
"bos_token_id": 151643,
|
| 87 |
"eos_token_id": 151645
|
| 88 |
-
}
|
|
|
|
| 53 |
"strip_space_in_decode": false
|
| 54 |
},
|
| 55 |
"conv_template": {
|
| 56 |
+
"name": "qwen2",
|
| 57 |
"system_template": "<|im_start|>system\n{system_message}<|im_end|>\n",
|
| 58 |
+
"system_message": "You are a helpful assistant.",
|
| 59 |
"system_prefix_token_ids": null,
|
| 60 |
"add_role_after_system_message": true,
|
| 61 |
"roles": {
|
|
|
|
| 74 |
"role_content_sep": "\n",
|
| 75 |
"role_empty_sep": "\n",
|
| 76 |
"stop_str": [
|
| 77 |
+
"<|endoftext|>",
|
| 78 |
"<|im_end|>"
|
| 79 |
],
|
| 80 |
"stop_token_ids": [
|
| 81 |
+
151643,
|
| 82 |
+
151645
|
| 83 |
],
|
| 84 |
"function_string": "",
|
| 85 |
"use_function_calling": false
|
|
|
|
| 87 |
"pad_token_id": 0,
|
| 88 |
"bos_token_id": 151643,
|
| 89 |
"eos_token_id": 151645
|
| 90 |
+
}
|
bundle/Phi-2-Tinytron-preview-MLC/mlc-chat-config.json
CHANGED
|
@@ -43,14 +43,14 @@
|
|
| 43 |
"strip_space_in_decode": false
|
| 44 |
},
|
| 45 |
"conv_template": {
|
| 46 |
-
"name": "
|
| 47 |
-
"system_template": "{system_message}",
|
| 48 |
-
"system_message": "",
|
| 49 |
"system_prefix_token_ids": null,
|
| 50 |
"add_role_after_system_message": true,
|
| 51 |
"roles": {
|
| 52 |
-
"user": "
|
| 53 |
-
"assistant": "
|
| 54 |
},
|
| 55 |
"role_templates": {
|
| 56 |
"user": "{user_message}",
|
|
@@ -59,15 +59,17 @@
|
|
| 59 |
},
|
| 60 |
"messages": [],
|
| 61 |
"seps": [
|
| 62 |
-
"\n"
|
| 63 |
],
|
| 64 |
-
"role_content_sep": "
|
| 65 |
-
"role_empty_sep": "
|
| 66 |
"stop_str": [
|
| 67 |
-
"<|endoftext|>"
|
|
|
|
| 68 |
],
|
| 69 |
"stop_token_ids": [
|
| 70 |
-
|
|
|
|
| 71 |
],
|
| 72 |
"function_string": "",
|
| 73 |
"use_function_calling": false
|
|
@@ -78,4 +80,4 @@
|
|
| 78 |
151645,
|
| 79 |
151643
|
| 80 |
]
|
| 81 |
-
}
|
|
|
|
| 43 |
"strip_space_in_decode": false
|
| 44 |
},
|
| 45 |
"conv_template": {
|
| 46 |
+
"name": "qwen2",
|
| 47 |
+
"system_template": "<|im_start|>system\n{system_message}<|im_end|>\n",
|
| 48 |
+
"system_message": "You are a helpful assistant.",
|
| 49 |
"system_prefix_token_ids": null,
|
| 50 |
"add_role_after_system_message": true,
|
| 51 |
"roles": {
|
| 52 |
+
"user": "<|im_start|>user",
|
| 53 |
+
"assistant": "<|im_start|>assistant"
|
| 54 |
},
|
| 55 |
"role_templates": {
|
| 56 |
"user": "{user_message}",
|
|
|
|
| 59 |
},
|
| 60 |
"messages": [],
|
| 61 |
"seps": [
|
| 62 |
+
"<|im_end|>\n"
|
| 63 |
],
|
| 64 |
+
"role_content_sep": "\n",
|
| 65 |
+
"role_empty_sep": "\n",
|
| 66 |
"stop_str": [
|
| 67 |
+
"<|endoftext|>",
|
| 68 |
+
"<|im_end|>"
|
| 69 |
],
|
| 70 |
"stop_token_ids": [
|
| 71 |
+
151643,
|
| 72 |
+
151645
|
| 73 |
],
|
| 74 |
"function_string": "",
|
| 75 |
"use_function_calling": false
|
|
|
|
| 80 |
151645,
|
| 81 |
151643
|
| 82 |
]
|
| 83 |
+
}
|
bundle/Qwen2-7B-Instruct-Tinytron-MLC/mlc-chat-config.json
CHANGED
|
@@ -42,9 +42,9 @@
|
|
| 42 |
"strip_space_in_decode": false
|
| 43 |
},
|
| 44 |
"conv_template": {
|
| 45 |
-
"name": "
|
| 46 |
"system_template": "<|im_start|>system\n{system_message}<|im_end|>\n",
|
| 47 |
-
"system_message": "
|
| 48 |
"system_prefix_token_ids": null,
|
| 49 |
"add_role_after_system_message": true,
|
| 50 |
"roles": {
|
|
@@ -63,10 +63,12 @@
|
|
| 63 |
"role_content_sep": "\n",
|
| 64 |
"role_empty_sep": "\n",
|
| 65 |
"stop_str": [
|
|
|
|
| 66 |
"<|im_end|>"
|
| 67 |
],
|
| 68 |
"stop_token_ids": [
|
| 69 |
-
|
|
|
|
| 70 |
],
|
| 71 |
"function_string": "",
|
| 72 |
"use_function_calling": false
|
|
@@ -74,4 +76,4 @@
|
|
| 74 |
"pad_token_id": 151643,
|
| 75 |
"bos_token_id": 151643,
|
| 76 |
"eos_token_id": 151645
|
| 77 |
-
}
|
|
|
|
| 42 |
"strip_space_in_decode": false
|
| 43 |
},
|
| 44 |
"conv_template": {
|
| 45 |
+
"name": "qwen2",
|
| 46 |
"system_template": "<|im_start|>system\n{system_message}<|im_end|>\n",
|
| 47 |
+
"system_message": "You are a helpful assistant.",
|
| 48 |
"system_prefix_token_ids": null,
|
| 49 |
"add_role_after_system_message": true,
|
| 50 |
"roles": {
|
|
|
|
| 63 |
"role_content_sep": "\n",
|
| 64 |
"role_empty_sep": "\n",
|
| 65 |
"stop_str": [
|
| 66 |
+
"<|endoftext|>",
|
| 67 |
"<|im_end|>"
|
| 68 |
],
|
| 69 |
"stop_token_ids": [
|
| 70 |
+
151643,
|
| 71 |
+
151645
|
| 72 |
],
|
| 73 |
"function_string": "",
|
| 74 |
"use_function_calling": false
|
|
|
|
| 76 |
"pad_token_id": 151643,
|
| 77 |
"bos_token_id": 151643,
|
| 78 |
"eos_token_id": 151645
|
| 79 |
+
}
|