Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,46 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
license: mit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- ru
|
| 4 |
license: mit
|
| 5 |
+
tags:
|
| 6 |
+
- text-generation
|
| 7 |
+
- pytorch
|
| 8 |
+
- qwen2
|
| 9 |
+
- russian
|
| 10 |
+
- tensor
|
| 11 |
+
pipeline_tag: text-generation
|
| 12 |
---
|
| 13 |
+
|
| 14 |
+
# Tensor-2-40m-base
|
| 15 |
+
|
| 16 |
+
Tensor-2-40m-base is a Russian-language language model from the **Tensor** series, developed as part of the **GribAI** project. This is a base (pretrain) model without instruction tuning.
|
| 17 |
+
|
| 18 |
+
## Description
|
| 19 |
+
|
| 20 |
+
Compared to previous models in the series, Tensor-2-40m-base shows noticeably better text continuation and stronger understanding of the Russian language — both grammatically and in terms of semantic coherence between sentences.
|
| 21 |
+
|
| 22 |
+
## Training
|
| 23 |
+
|
| 24 |
+
The model was trained on **70 MB** of Russian-language text data.
|
| 25 |
+
|
| 26 |
+
## Usage
|
| 27 |
+
|
| 28 |
+
```python
|
| 29 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 30 |
+
|
| 31 |
+
model_name = "VGribAI/Tensor-2-40m-base"
|
| 32 |
+
|
| 33 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 34 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
| 35 |
+
|
| 36 |
+
prompt = "Привет, как дела"
|
| 37 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
| 38 |
+
output = model.generate(**inputs, max_new_tokens=100)
|
| 39 |
+
|
| 40 |
+
print(tokenizer.decode(output[0], skip_special_tokens=True))
|
| 41 |
+
```
|
| 42 |
+
|
| 43 |
+
## Limitations
|
| 44 |
+
|
| 45 |
+
This is a base (pretrain) model with no dialogue alignment — it's meant for text continuation, not for answering questions or following instructions.
|
| 46 |
+
**GribAI** project (VGribAI).
|