File size: 1,029 Bytes
9fdfd34 bbf30e9 9fdfd34 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
---
language:
- ru
license: apache-2.0
pipeline_tag: text-generation
library_name: transformers
---
# Maral
<img src="Maral.jpg" width="700px">
## Description
Maral is a general-purpose generative language model that demonstrates excellent performance in tasks such as summarization and question-answering, specifically in the Russian language. Its advanced capabilities allow it to generate coherent and contextually accurate responses, making it highly effective for a wide range of natural language processing applications.
## 👨💻 Examples of usage
```python
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
tokenizer = AutoTokenizer.from_pretrained("MadShift/Maral")
model = AutoModelForCausalLM.from_pretrained("MadShift/Maral", device_map="auto")
input_text = "Введите свой текст здесь"
input_ids = tokenizer(input_text, return_tensors="pt").to(model.device)
outputs = model.generate(**input_ids, max_new_tokens=256)
print(tokenizer.decode(outputs[0]))
``` |