Upload folder using huggingface_hub
#2
by
madroid
- opened
- README.md +1 -1
- tokenizer.json +6 -16
- tokenizer_config.json +10 -1
README.md
CHANGED
@@ -6,7 +6,7 @@ tags:
|
|
6 |
|
7 |
# mlx-community/Mistral-7B-Instruct-v0.3-4bit
|
8 |
|
9 |
-
The Model [mlx-community/Mistral-7B-Instruct-v0.3-4bit](https://huggingface.co/mlx-community/Mistral-7B-Instruct-v0.3-4bit) was converted to MLX format from [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) using mlx-lm version **0.
|
10 |
|
11 |
## Use with mlx
|
12 |
|
|
|
6 |
|
7 |
# mlx-community/Mistral-7B-Instruct-v0.3-4bit
|
8 |
|
9 |
+
The Model [mlx-community/Mistral-7B-Instruct-v0.3-4bit](https://huggingface.co/mlx-community/Mistral-7B-Instruct-v0.3-4bit) was converted to MLX format from [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3) using mlx-lm version **0.14.3**.
|
10 |
|
11 |
## Use with mlx
|
12 |
|
tokenizer.json
CHANGED
@@ -6943,23 +6943,13 @@
|
|
6943 |
"special": true
|
6944 |
}
|
6945 |
],
|
6946 |
-
"normalizer":
|
6947 |
-
|
6948 |
-
"
|
6949 |
-
|
6950 |
-
|
6951 |
-
|
6952 |
-
},
|
6953 |
-
{
|
6954 |
-
"type": "Replace",
|
6955 |
-
"pattern": {
|
6956 |
-
"String": " "
|
6957 |
-
},
|
6958 |
-
"content": "▁"
|
6959 |
-
}
|
6960 |
-
]
|
6961 |
},
|
6962 |
-
"pre_tokenizer": null,
|
6963 |
"post_processor": {
|
6964 |
"type": "TemplateProcessing",
|
6965 |
"single": [
|
|
|
6943 |
"special": true
|
6944 |
}
|
6945 |
],
|
6946 |
+
"normalizer": null,
|
6947 |
+
"pre_tokenizer": {
|
6948 |
+
"type": "Metaspace",
|
6949 |
+
"replacement": "▁",
|
6950 |
+
"prepend_scheme": "first",
|
6951 |
+
"split": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6952 |
},
|
|
|
6953 |
"post_processor": {
|
6954 |
"type": "TemplateProcessing",
|
6955 |
"single": [
|
tokenizer_config.json
CHANGED
@@ -6173,7 +6173,16 @@
|
|
6173 |
}
|
6174 |
},
|
6175 |
"bos_token": "<s>",
|
6176 |
-
"chat_template":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6177 |
"clean_up_tokenization_spaces": false,
|
6178 |
"eos_token": "</s>",
|
6179 |
"legacy": false,
|
|
|
6173 |
}
|
6174 |
},
|
6175 |
"bos_token": "<s>",
|
6176 |
+
"chat_template": [
|
6177 |
+
{
|
6178 |
+
"name": "default",
|
6179 |
+
"template": "{{bos_token}}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ ' [INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ ' ' + message['content'] + ' ' + eos_token}}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}"
|
6180 |
+
},
|
6181 |
+
{
|
6182 |
+
"name": "tool_use",
|
6183 |
+
"template": "{{bos_token}}{% set user_messages = messages | selectattr('role', 'equalto', 'user') | list %}{% for message in messages %}{% if message['role'] == 'user' %}{% if message == user_messages[-1] %}{% if tools %}{{'[AVAILABLE_TOOLS]'+ tools|string + '[/AVAILABLE_TOOLS]'}}{% endif %}{{ '[INST]' + message['content'] + '[/INST]' }}{% else %}{{ '[INST]' + message['content'] + '[/INST]' }}{% endif %}{% elif message['role'] == 'assistant' %}{{ ' ' + message['content'] + ' ' + eos_token}}{% elif message['role'] == 'tool_results' %}{{'[TOOL_RESULTS]' + message['content']|string + '[/TOOL_RESULTS]'}}{% elif message['role'] == 'tool_calls' %}{{'[TOOL_CALLS]' + message['content']|string + eos_token}}{% endif %}{% endfor %}"
|
6184 |
+
}
|
6185 |
+
],
|
6186 |
"clean_up_tokenization_spaces": false,
|
6187 |
"eos_token": "</s>",
|
6188 |
"legacy": false,
|