Instructions to use mlc-ai/Qwen2-0.5B-Instruct-q0f16-MLC with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLC-LLM
How to use mlc-ai/Qwen2-0.5B-Instruct-q0f16-MLC with MLC-LLM:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- mlc-chat-config.json +6 -4
mlc-chat-config.json
CHANGED
|
@@ -26,6 +26,7 @@
|
|
| 26 |
"prefill_chunk_size": 2048,
|
| 27 |
"attention_sink_size": -1,
|
| 28 |
"tensor_parallel_shards": 1,
|
|
|
|
| 29 |
"temperature": 0.7,
|
| 30 |
"presence_penalty": 0.0,
|
| 31 |
"frequency_penalty": 0.0,
|
|
@@ -43,9 +44,9 @@
|
|
| 43 |
"strip_space_in_decode": false
|
| 44 |
},
|
| 45 |
"conv_template": {
|
| 46 |
-
"name": "
|
| 47 |
"system_template": "<|im_start|>system\n{system_message}<|im_end|>\n",
|
| 48 |
-
"system_message": "
|
| 49 |
"system_prefix_token_ids": null,
|
| 50 |
"add_role_after_system_message": true,
|
| 51 |
"roles": {
|
|
@@ -64,10 +65,11 @@
|
|
| 64 |
"role_content_sep": "\n",
|
| 65 |
"role_empty_sep": "\n",
|
| 66 |
"stop_str": [
|
| 67 |
-
"<|im_end|>"
|
| 68 |
],
|
| 69 |
"stop_token_ids": [
|
| 70 |
-
|
|
|
|
| 71 |
],
|
| 72 |
"function_string": "",
|
| 73 |
"use_function_calling": false
|
|
|
|
| 26 |
"prefill_chunk_size": 2048,
|
| 27 |
"attention_sink_size": -1,
|
| 28 |
"tensor_parallel_shards": 1,
|
| 29 |
+
"pipeline_parallel_stages": 1,
|
| 30 |
"temperature": 0.7,
|
| 31 |
"presence_penalty": 0.0,
|
| 32 |
"frequency_penalty": 0.0,
|
|
|
|
| 44 |
"strip_space_in_decode": false
|
| 45 |
},
|
| 46 |
"conv_template": {
|
| 47 |
+
"name": "qwen2",
|
| 48 |
"system_template": "<|im_start|>system\n{system_message}<|im_end|>\n",
|
| 49 |
+
"system_message": "You are a helpful assistant.",
|
| 50 |
"system_prefix_token_ids": null,
|
| 51 |
"add_role_after_system_message": true,
|
| 52 |
"roles": {
|
|
|
|
| 65 |
"role_content_sep": "\n",
|
| 66 |
"role_empty_sep": "\n",
|
| 67 |
"stop_str": [
|
| 68 |
+
"<|endoftext|>, <|im_end|>"
|
| 69 |
],
|
| 70 |
"stop_token_ids": [
|
| 71 |
+
151643,
|
| 72 |
+
151645
|
| 73 |
],
|
| 74 |
"function_string": "",
|
| 75 |
"use_function_calling": false
|