Text Generation
Transformers.js
ONNX
English
llama
code
python
maincoder
code-generation
reinforcement-learning
mcpo
conversational
Instructions to use Maincode/Maincoder-1B-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use Maincode/Maincoder-1B-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'Maincode/Maincoder-1B-ONNX');
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -139,7 +139,6 @@ import { AutoModelForCausalLM, AutoTokenizer } from '@huggingface/transformers';
|
|
| 139 |
// Load the tokenizer and model
|
| 140 |
const tokenizer = await AutoTokenizer.from_pretrained('Maincode/Maincoder-1B-ONNX');
|
| 141 |
const model = await AutoModelForCausalLM.from_pretrained('Maincode/Maincoder-1B-ONNX', {
|
| 142 |
-
local_files_only: true,
|
| 143 |
subfolder: '.',
|
| 144 |
model_file_name: 'decoder_with_past_model',
|
| 145 |
use_external_data_format: true,
|
|
|
|
| 139 |
// Load the tokenizer and model
|
| 140 |
const tokenizer = await AutoTokenizer.from_pretrained('Maincode/Maincoder-1B-ONNX');
|
| 141 |
const model = await AutoModelForCausalLM.from_pretrained('Maincode/Maincoder-1B-ONNX', {
|
|
|
|
| 142 |
subfolder: '.',
|
| 143 |
model_file_name: 'decoder_with_past_model',
|
| 144 |
use_external_data_format: true,
|