Text Generation
Transformers.js
ONNX
English
Ukrainian
Russian
gemma3_text
text2text-generation
transformer
russian
flare
conversational
Instructions to use HaveAI/FlareNew with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use HaveAI/FlareNew with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'HaveAI/FlareNew');
Update config.json
Browse files- config.json +3 -0
config.json
CHANGED
|
@@ -1,4 +1,7 @@
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
| 2 |
"_name_or_path": "MBZUAI/LaMini-T5-61M",
|
| 3 |
"architectures": [
|
| 4 |
"T5ForConditionalGeneration"
|
|
|
|
| 1 |
{
|
| 2 |
+
const systemPrompt = "Ты — дружелюбный и умный ИИ-помощник Flare. Отвечай вежливо, логично и на русском языке.\n\nПользователь: " + userInput;
|
| 3 |
+
const output = await generator(systemPrompt, { max_new_tokens: 80 });
|
| 4 |
+
|
| 5 |
"_name_or_path": "MBZUAI/LaMini-T5-61M",
|
| 6 |
"architectures": [
|
| 7 |
"T5ForConditionalGeneration"
|