Text Generation
Transformers.js
ONNX
English
llama
code
python
maincoder
code-generation
reinforcement-learning
mcpo
conversational
Instructions to use shreyask/Maincoder-1B-ONNX-web with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use shreyask/Maincoder-1B-ONNX-web with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'shreyask/Maincoder-1B-ONNX-web');
Upload tokenizer_config.json with huggingface_hub
Browse files- tokenizer_config.json +3 -2
tokenizer_config.json
CHANGED
|
@@ -204,5 +204,6 @@
|
|
| 204 |
"pad_token": "<|endoftext|>",
|
| 205 |
"split_special_tokens": false,
|
| 206 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 207 |
-
"unk_token": null
|
| 208 |
-
}
|
|
|
|
|
|
| 204 |
"pad_token": "<|endoftext|>",
|
| 205 |
"split_special_tokens": false,
|
| 206 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 207 |
+
"unk_token": null,
|
| 208 |
+
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] \\!= 'system' %}<|im_start|>system\nYou are Maincoder, an expert code generation assistant.<|im_end|>\n{% endif %}<|im_start|>{{ message['role'] }}\n{{ message['content'] }}<|im_end|>\n{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}"
|
| 209 |
+
}
|