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 generation_config.json with huggingface_hub
Browse files- generation_config.json +4 -1
generation_config.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
| 1 |
{
|
| 2 |
-
"eos_token_id":
|
|
|
|
|
|
|
|
|
|
| 3 |
"pad_token_id": 151643,
|
| 4 |
"max_length": 2048,
|
| 5 |
"do_sample": false
|
|
|
|
| 1 |
{
|
| 2 |
+
"eos_token_id": [
|
| 3 |
+
151643,
|
| 4 |
+
151645
|
| 5 |
+
],
|
| 6 |
"pad_token_id": 151643,
|
| 7 |
"max_length": 2048,
|
| 8 |
"do_sample": false
|