Text Generation
Transformers.js
ONNX
Chinese
English
llama
webgpu
wasm
code-tape
subtitle-correction
chapter-generation
conversational
Instructions to use ceilf6/code-tape-subtitle-postprocessor-onnx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use ceilf6/code-tape-subtitle-postprocessor-onnx with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'ceilf6/code-tape-subtitle-postprocessor-onnx');
ceilf6 commited on
Commit ·
326468e
1
Parent(s): 4c09ddd
Publish v12 inputSegments q8 ONNX contract
Browse files- tokenizer_config.json +2 -1
tokenizer_config.json
CHANGED
|
@@ -150,5 +150,6 @@
|
|
| 150 |
"pad_token": "<|im_end|>",
|
| 151 |
"tokenizer_class": "GPT2Tokenizer",
|
| 152 |
"unk_token": "<|endoftext|>",
|
| 153 |
-
"vocab_size": 49152
|
|
|
|
| 154 |
}
|
|
|
|
| 150 |
"pad_token": "<|im_end|>",
|
| 151 |
"tokenizer_class": "GPT2Tokenizer",
|
| 152 |
"unk_token": "<|endoftext|>",
|
| 153 |
+
"vocab_size": 49152,
|
| 154 |
+
"chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>\n' }}{% endif %}{{ '<|im_start|>' + message['role'] + '\n' }}{% if message['role'] == 'assistant' %}{% generation %}{{ message['content'] }}{% endgeneration %}{% else %}{{ message['content'] }}{% endif %}{{ '<|im_end|>\n' }}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}"
|
| 155 |
}
|