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');
Download model/train_model.py from HaveAI/FlareNew: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/HaveAI/FlareNew/resolve/c5d4674054b9a5e5a8ca7ff00a2d8579f64bfb4e/model/train_model.py
- Command line
-
hf download hf://HaveAI/FlareNew@c5d4674054b9a5e5a8ca7ff00a2d8579f64bfb4e/model/train_model.py
-
curl -L -o train_model.py https://huggingface.co/HaveAI/FlareNew/resolve/c5d4674054b9a5e5a8ca7ff00a2d8579f64bfb4e/model/train_model.py
381 Bytes
| import json | |
| def load_data(): | |
| with open('data/train_data.json', 'r', encoding='utf-8') as f: | |
| return json.load(f) | |
| def train_model(data): | |
| for item in data: | |
| print(f"Обучаем модель на вопрос: {item['input']} -> Ответ: {item['output']}") | |
| def main(): | |
| data = load_data() | |
| train_model(data) | |
| if __name__ == "__main__": | |
| main() | |