Instructions to use onnx-community/DeepCoder-1.5B-Preview-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/DeepCoder-1.5B-Preview-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'onnx-community/DeepCoder-1.5B-Preview-ONNX');
Commit ·
8dcc13f
1
Parent(s): b4f49ab
added response_template (#1)
Browse files- added response_template to tokenizer_config.json (8a72fd785a8804ed502ac9a54f8cf8123e7688bf)
Co-authored-by: Nico Martin <nico-martin@users.noreply.huggingface.co>
- tokenizer_config.json +21 -1
tokenizer_config.json
CHANGED
|
@@ -191,5 +191,25 @@
|
|
| 191 |
"sp_model_kwargs": {},
|
| 192 |
"tokenizer_class": "LlamaTokenizerFast",
|
| 193 |
"unk_token": null,
|
| 194 |
-
"use_default_system_prompt": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 195 |
}
|
|
|
|
| 191 |
"sp_model_kwargs": {},
|
| 192 |
"tokenizer_class": "LlamaTokenizerFast",
|
| 193 |
"unk_token": null,
|
| 194 |
+
"use_default_system_prompt": false,
|
| 195 |
+
"response_template": {
|
| 196 |
+
"defaults": {
|
| 197 |
+
"role": "assistant"
|
| 198 |
+
},
|
| 199 |
+
"start_anchor": "<|Assistant|>",
|
| 200 |
+
"fields": {
|
| 201 |
+
"reasoning_content": {
|
| 202 |
+
"open": "<think>",
|
| 203 |
+
"close": [
|
| 204 |
+
"</think>",
|
| 205 |
+
"<|end▁of▁sentence|>"
|
| 206 |
+
],
|
| 207 |
+
"content": "text"
|
| 208 |
+
},
|
| 209 |
+
"content": {
|
| 210 |
+
"close": "<|end▁of▁sentence|>",
|
| 211 |
+
"content": "text"
|
| 212 |
+
}
|
| 213 |
+
}
|
| 214 |
+
}
|
| 215 |
}
|